public class LDIFAddContent extends LDIFBaseContent
LDIFContent interface.
To get this object from an LDIFRecord object,
use the getContent method and cast the return value as
LDIFAddContent.
LDIFRecord.getContent(),
Serialized FormADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT| Constructor and Description |
|---|
LDIFAddContent(LDAPAttribute[] attrs)
Constructs a new
LDIFAddContent object with
the specified attributes. |
| Modifier and Type | Method and Description |
|---|---|
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 LDIFAddContent(LDAPAttribute[] attrs)
LDIFAddContent object with
the specified attributes.attrs - an array of LDAPAttribute objects
representing the attributes of the entry to be addedpublic int getType()
getContent method of the LDIFRecord
object to determine the type of content specified in the record.LDIFContent.ADD_CONTENT).LDIFRecord.getContent()public 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