|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.types.RawAttribute
org.opends.server.protocols.ldap.LDAPAttribute
public class LDAPAttribute
This class defines the data structures and methods to use when interacting with an LDAP attribute, which is the basic unit of information in an LDAP entry.
Constructor Summary | |
---|---|
LDAPAttribute(Attribute attribute)
Creates a new LDAP attribute from the provided attribute. |
|
LDAPAttribute(java.lang.String attributeType)
Creates a new LDAP attribute with the provided type and no values. |
|
LDAPAttribute(java.lang.String attributeType,
java.util.ArrayList<ASN1OctetString> values)
Creates a new LDAP attribute with the provided type and values. |
|
LDAPAttribute(java.lang.String attributeType,
ASN1OctetString value)
Creates a new LDAP attribute with the provided type and no values. |
|
LDAPAttribute(java.lang.String attributeType,
java.util.List<java.lang.String> values)
Creates a new LDAP attribute with the provided type and values. |
|
LDAPAttribute(java.lang.String attributeType,
java.lang.String value)
Creates a new LDAP attribute with the provided type and no values. |
Method Summary | |
---|---|
java.lang.String |
getAttributeType()
Retrieves the attribute type for this attribute. |
java.util.ArrayList<ASN1OctetString> |
getValues()
Retrieves the set of values for this attribute. |
void |
setAttributeType(java.lang.String attributeType)
Specifies the attribute type for this attribute. |
Attribute |
toAttribute()
Retrieves a core attribute containing the information for this LDAP attribute. |
java.lang.String |
toString()
Retrieves a string representation of this attribute. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this attribute to the provided buffer. |
void |
toString(java.lang.StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP attribute to the provided buffer. |
Methods inherited from class org.opends.server.types.RawAttribute |
---|
create, create, create, create, create, decode, encode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LDAPAttribute(java.lang.String attributeType)
attributeType
- The attribute type for this attribute.public LDAPAttribute(java.lang.String attributeType, java.lang.String value)
attributeType
- The attribute type for this attribute.value
- The value to use for this attribute.public LDAPAttribute(java.lang.String attributeType, ASN1OctetString value)
attributeType
- The attribute type for this attribute.value
- The value to use for this attribute.public LDAPAttribute(java.lang.String attributeType, java.util.List<java.lang.String> values)
attributeType
- The attribute type for this attribute.values
- The set of values for this attribute.public LDAPAttribute(java.lang.String attributeType, java.util.ArrayList<ASN1OctetString> values)
attributeType
- The attribute type for this attribute.values
- The set of values for this attribute.public LDAPAttribute(Attribute attribute)
attribute
- The attribute to use to create this LDAP attribute.Method Detail |
---|
public java.lang.String getAttributeType()
getAttributeType
in class RawAttribute
public void setAttributeType(java.lang.String attributeType)
setAttributeType
in class RawAttribute
attributeType
- The attribute type for this attribute.public java.util.ArrayList<ASN1OctetString> getValues()
getValues
in class RawAttribute
public Attribute toAttribute() throws LDAPException
toAttribute
in class RawAttribute
LDAPException
- If the provided value is invalid according to the
attribute syntax.public java.lang.String toString()
toString
in class RawAttribute
public void toString(java.lang.StringBuilder buffer)
toString
in class RawAttribute
buffer
- The buffer to which the information should be appended.public void toString(java.lang.StringBuilder buffer, int indent)
toString
in class RawAttribute
buffer
- The buffer to which the information should be appended.indent
- The number of spaces from the margin that the lines should
be indented.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |