public interface Attribute
AttributeSet
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseName()
Extracts the base name from the attribute name of the current Attribute object.
|
byte[] |
getByteValue()
Returns an enumerator for the values of the attribute in byte[] format.
|
byte[][] |
getByteValueArray()
Returns the values of the attribute in an array of byte[] format.
|
java.util.Enumeration |
getByteValues()
Returns an enumerator for the values of the attribute in byte[] format.
|
java.lang.String |
getLangSubtype()
Extracts the language subtype from the attribute name of the LDAPAttribute object, if any.
|
java.lang.String |
getName()
Returns the name of the attribute.
|
java.lang.String |
getStringValue()
Returns the string value of an attribute.
|
java.lang.String[] |
getStringValueArray()
Returns the values of the attribute as an array of String objects.
|
java.util.Enumeration |
getStringValues()
Returns an enumerator for the string values of an attribute.
|
java.lang.String[] |
getSubtypes()
Extracts the subtypes from the specified attribute name.
|
java.lang.String[] |
getSubtypes(java.lang.String attrName)
Extracts the subtypes from the specified attribute name.
|
boolean |
hasSubtype(java.lang.String subtype)
Reports whether the attribute name contains the specified subtype.
|
boolean |
hasSubtypes(java.lang.String[] subtypes)
Reports if the attribute name contains all specified subtypes For example, if you check for the subtypes lang-en and phonetic and the attribute name is cn;lang-en;phonetic, this method returns true.
|
int |
size()
Returns the number of values of the attribute.
|
java.lang.String |
toString()
Retrieves the string representation of an attribute in an LDAP entry.
|
java.lang.String getBaseName()
getSubtypes(java.lang.String)
byte[] getByteValue()
byte[][] getByteValueArray()
java.util.Enumeration getByteValues()
java.lang.String getLangSubtype()
java.lang.String getName()
java.lang.String getStringValue()
java.lang.String[] getStringValueArray()
java.util.Enumeration getStringValues()
java.lang.String[] getSubtypes()
java.lang.String[] getSubtypes(java.lang.String attrName)
attrName
- name of the attribute from which to extract the subtypesboolean hasSubtype(java.lang.String subtype)
subtype
- the single subtype for which you want to checkgetSubtypes(java.lang.String)
boolean hasSubtypes(java.lang.String[] subtypes)
subtypes
- an array of subtypes to checkint size()
java.lang.String toString()
toString
in class java.lang.Object