|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ietf.ldap.LDAPAttribute
public class LDAPAttribute
Represents the name and values of one attribute of a directory entry.
Field Summary | |
---|---|
private LDAPAttribute |
attr
|
Constructor Summary | |
---|---|
LDAPAttribute(LDAPAttribute attr)
Constructs an attribute from a com.novell.ldap.LDAPAttribute |
|
LDAPAttribute(LDAPAttribute attr)
Constructs an attribute with copies of all values of the input attribute. |
|
LDAPAttribute(java.lang.String attrName)
Constructs an attribute with no values. |
|
LDAPAttribute(java.lang.String attrName,
byte[] attrBytes)
Constructs an attribute with a byte-formatted value. |
|
LDAPAttribute(java.lang.String attrName,
java.lang.String attrString)
Constructs an attribute that has a single string value. |
|
LDAPAttribute(java.lang.String attrName,
java.lang.String[] attrStrings)
Constructs an attribute that has an array of string values. |
Method Summary | |
---|---|
void |
addValue(byte[] attrBytes)
Adds a byte-formatted value to the attribute. |
void |
addValue(java.lang.String attrString)
Adds a string value to the attribute. |
java.lang.Object |
clone()
Returns a clone of this object |
int |
compareTo(java.lang.Object attribute)
Compares this object with the specified object for order. |
java.lang.String |
getBaseName()
Returns the base name of the attribute. |
static java.lang.String |
getBaseName(java.lang.String attrName)
Returns the base name of the specified attribute. |
byte[][] |
getByteValueArray()
Returns the values of the attribute as an array of bytes. |
java.util.Enumeration |
getByteValues()
Returns an enumerator for the values of the attribute in byte format. |
java.lang.String |
getLangSubtype()
Returns the language subtype of the attribute, if any. |
java.lang.String |
getName()
Returns the name of the attribute. |
java.lang.String[] |
getStringValueArray()
Returns the values of the attribute as an array of strings. |
java.util.Enumeration |
getStringValues()
Returns an enumerator for the string values of an attribute. |
java.lang.String[] |
getSubtypes()
Extracts the subtypes from the attribute name. |
static java.lang.String[] |
getSubtypes(java.lang.String attrName)
Extracts the subtypes from the specified attribute name. |
(package private) LDAPAttribute |
getWrappedObject()
Gets the Novell LDAPAttribute class |
boolean |
hasSubtype(java.lang.String subtype)
Reports if the attribute name contains the specified subtype. |
boolean |
hasSubtypes(java.lang.String[] subtypes)
Reports if the attribute name contains all the specified subtypes. |
void |
removeValue(byte[] attrBytes)
Removes a byte-formatted value from the attribute. |
void |
removeValue(java.lang.String attrString)
Removes a string value from the attribute. |
int |
size()
Returns the number of values in the attribute. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LDAPAttribute attr
Constructor Detail |
---|
LDAPAttribute(LDAPAttribute attr)
public LDAPAttribute(LDAPAttribute attr)
public LDAPAttribute(java.lang.String attrName)
public LDAPAttribute(java.lang.String attrName, byte[] attrBytes)
public LDAPAttribute(java.lang.String attrName, java.lang.String attrString)
public LDAPAttribute(java.lang.String attrName, java.lang.String[] attrStrings)
Method Detail |
---|
LDAPAttribute getWrappedObject()
public void addValue(java.lang.String attrString)
public void addValue(byte[] attrBytes)
public java.util.Enumeration getByteValues()
public java.util.Enumeration getStringValues()
public byte[][] getByteValueArray()
public java.lang.String[] getStringValueArray()
public java.lang.String getLangSubtype()
public java.lang.String getBaseName()
public static java.lang.String getBaseName(java.lang.String attrName)
public java.lang.String getName()
public java.lang.String[] getSubtypes()
public static java.lang.String[] getSubtypes(java.lang.String attrName)
public boolean hasSubtype(java.lang.String subtype)
public boolean hasSubtypes(java.lang.String[] subtypes)
public void removeValue(java.lang.String attrString)
public void removeValue(byte[] attrBytes)
public int size()
public int compareTo(java.lang.Object attribute)
compareTo
in interface java.lang.Comparable
public java.lang.Object clone()
clone
in class java.lang.Object
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |