public interface LDAPAttribute
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.lang.String |
getName()
Returns the name of the attribute which may include zero or more attribute options.
|
java.util.Set<java.lang.String> |
getOptions()
Returns the set of options for this attribute.
|
java.util.Set<java.lang.String> |
getOptions(java.lang.String attrName)
Extracts the attribute options from the specified attribute name.
|
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.
|
boolean |
hasOption(java.lang.String option)
Reports whether this attribute contains the specified attribute option.
|
boolean |
hasOptions()
Reports whether this attribute has any attribute options.
|
boolean |
hasOptions(java.lang.String[] options)
Reports whether this attribute contains all of the specified attribute options.
|
boolean |
hasValue()
Reports whether this attribute contains at least one value.
|
boolean |
hasValue(byte[] value)
Reports whether this attribute contains the specified value.
|
boolean |
hasValue(java.lang.String value)
Reports whether this attribute contains the specified value.
|
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()
getOptions(java.lang.String)
boolean hasValue()
boolean hasValue(byte[] value)
value
- value for which to make the check. It must not be null.boolean hasValue(java.lang.String value)
value
- value for which to make the check. It must not be null.byte[] getByteValue()
byte[][] getByteValueArray()
java.lang.String getName()
java.lang.String getStringValue()
java.lang.String[] getStringValueArray()
boolean hasOptions()
boolean hasOption(java.lang.String option)
option
- attribute option for which to make the check.boolean hasOptions(java.lang.String[] options)
options
- attribute options for which to make the check.java.util.Set<java.lang.String> getOptions()
java.util.Set<java.lang.String> getOptions(java.lang.String attrName)
attrName
- attribute name from which to extract the attribute options.int size()
java.lang.String toString()
toString
in class java.lang.Object