public class LDAPAttribute extends RawAttribute
| Constructor and Description |
|---|
LDAPAttribute(Attribute attribute)
Creates a new LDAP attribute from the provided attribute.
|
LDAPAttribute(String attributeType)
Creates a new LDAP attribute with the provided type and no values.
|
LDAPAttribute(String attributeType,
ArrayList<org.forgerock.opendj.ldap.ByteString> values)
Creates a new LDAP attribute with the provided type and values.
|
LDAPAttribute(String attributeType,
org.forgerock.opendj.ldap.ByteString value)
Creates a new LDAP attribute with the provided type and no values.
|
LDAPAttribute(String attributeType,
List<String> values)
Creates a new LDAP attribute with the provided type and values.
|
LDAPAttribute(String attributeType,
String value)
Creates a new LDAP attribute with the provided type and no values.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeType()
Retrieves the attribute type for this attribute.
|
List<org.forgerock.opendj.ldap.ByteString> |
getValues()
Retrieves the set of values for this attribute.
|
void |
setAttributeType(String attributeType)
Specifies the attribute type for this attribute.
|
Attribute |
toAttribute()
Retrieves a core attribute containing the information for this LDAP
attribute.
|
String |
toString()
Retrieves a string representation of this attribute.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this attribute to the provided buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP attribute to the
provided buffer.
|
public LDAPAttribute(String attributeType)
attributeType - The attribute type for this attribute.public LDAPAttribute(String attributeType, String value)
attributeType - The attribute type for this attribute.value - The value to use for this attribute.public LDAPAttribute(String attributeType, org.forgerock.opendj.ldap.ByteString value)
attributeType - The attribute type for this attribute.value - The value to use for this attribute.public LDAPAttribute(String attributeType, List<String> values)
attributeType - The attribute type for this attribute.values - The set of values for this attribute.public LDAPAttribute(String attributeType, ArrayList<org.forgerock.opendj.ldap.ByteString> 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.public String getAttributeType()
getAttributeType in class RawAttributepublic void setAttributeType(String attributeType)
setAttributeType in class RawAttributeattributeType - The attribute type for this attribute.public List<org.forgerock.opendj.ldap.ByteString> getValues()
getValues in class RawAttributepublic Attribute toAttribute() throws LDAPException
toAttribute in class RawAttributeLDAPException - If the provided value is invalid according to the
attribute syntax.public String toString()
toString in class RawAttributepublic void toString(StringBuilder buffer)
toString in class RawAttributebuffer - The buffer to which the information should be appended.public void toString(StringBuilder buffer, int indent)
toString in class RawAttributebuffer - The buffer to which the information should be appended.indent - The number of spaces from the margin that the lines should
be indented.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.