public class LDIFAttributeContent extends LDIFBaseContent
LDIFContent interface.
To get this object from an LDIFRecord object,
use the getContent method and cast the return value as
LDIFAttributeContent.
LDIFRecord.getContent(),
Serialized FormADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT| Constructor and Description |
|---|
LDIFAttributeContent()
Constructs an empty
LDIFAttributeContent object with
no attributes specified. |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(LDAPAttribute attr)
Adds an attribute to the content of the LDIF record.
|
LDAPAttribute[] |
getAttributes()
Retrieves the list of the attributes specified in the content
of the LDIF record.
|
int |
getType()
Returns the content type.
|
java.lang.String |
toString()
Returns the string representation of the content of the LDIF record.
|
getControls, getControlString, setControlspublic LDIFAttributeContent()
LDIFAttributeContent object with
no attributes specified. You can use the addElement
method to add attributes to this object.public int getType()
getContent method of the LDIFRecord
object to determine the type of content specified in the record.LDIFContent.ATTRIBUTE_CONTENT).LDIFRecord.getContent()public void addElement(LDAPAttribute attr)
attr - the attribute to addpublic LDAPAttribute[] getAttributes()
LDAPAttribute objects that
represent the attributes specified in the content of the LDIF record.public java.lang.String toString()
toString in interface LDIFContenttoString in class java.lang.Object