Package com.netscape.jndi.ldap
Class AttributesImpl
java.lang.Object
com.netscape.jndi.ldap.AttributesImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,Attributes
Wrapper for LDAPAttributeSet which implements JNDI Attribute interface
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) LDAPAttributeSet
(package private) static String[]
A list of predefined binary attribute name(package private) static String[]
A list of user defined binary attributes specified with the environment property java.naming.ldap.attributes.binary -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
getAll()
getIDs()
(package private) static boolean
isBinaryAttribute
(String attrID) Check if an attribute is a binary oneboolean
(package private) static LDAPAttributeSet
jndiAttrsToLdapAttrSet
(Attributes jndiAttrs) Convert a JNDI Attributes object into a LDAPAttributeSet(package private) static LDAPModificationSet
jndiAttrsToLdapModSet
(int modop, Attributes jndiAttrs) Create a LDAPModificationSet from a JNDI mod operation and JNDI Attributes(package private) static LDAPAttribute
jndiAttrToLdapAttr
(Attribute jndiAttr) Convert a JNDI Attribute to a LDAPAttribute(package private) static LDAPModificationSet
jndiModsToLdapModSet
(ModificationItem[] jndiMods) Convert and array of JNDI ModificationItem to a LDAPModificationSet(package private) static Attribute
Convert a LDAPAttribute to a JNDI Attributeint
size()
-
Field Details
-
m_attrSet
LDAPAttributeSet m_attrSet -
m_binaryAttrs
A list of predefined binary attribute name -
m_userBinaryAttrs
A list of user defined binary attributes specified with the environment property java.naming.ldap.attributes.binary
-
-
Constructor Details
-
AttributesImpl
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceAttributes
- Overrides:
clone
in classObject
-
get
- Specified by:
get
in interfaceAttributes
-
getAll
- Specified by:
getAll
in interfaceAttributes
-
getIDs
- Specified by:
getIDs
in interfaceAttributes
-
isCaseIgnored
public boolean isCaseIgnored()- Specified by:
isCaseIgnored
in interfaceAttributes
-
put
- Specified by:
put
in interfaceAttributes
-
put
- Specified by:
put
in interfaceAttributes
-
remove
- Specified by:
remove
in interfaceAttributes
-
size
public int size()- Specified by:
size
in interfaceAttributes
-
isBinaryAttribute
Check if an attribute is a binary one -
jndiAttrsToLdapAttrSet
Convert a JNDI Attributes object into a LDAPAttributeSet- Throws:
NamingException
-
jndiAttrToLdapAttr
Convert a JNDI Attribute to a LDAPAttribute- Throws:
NamingException
-
ldapAttrToJndiAttr
Convert a LDAPAttribute to a JNDI Attribute -
jndiModsToLdapModSet
Convert and array of JNDI ModificationItem to a LDAPModificationSet- Throws:
NamingException
-
jndiAttrsToLdapModSet
static LDAPModificationSet jndiAttrsToLdapModSet(int modop, Attributes jndiAttrs) throws NamingException Create a LDAPModificationSet from a JNDI mod operation and JNDI Attributes- Throws:
NamingException
-