|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetscape.ldap.util.LDIFBaseContent
netscape.ldap.util.LDIFAttributeContent
An object of this class represents the content of an LDIF record that
specifies an entry and its attributes. This class implements the
LDIFContent
interface.
To get this object from an LDIFRecord
object,
use the getContent
method and cast the return value as
LDIFAttributeContent
.
LDIFRecord.getContent()
,
Serialized FormField Summary |
Fields inherited from interface netscape.ldap.util.LDIFContent |
ADD_CONTENT, ATTRIBUTE_CONTENT, DELETE_CONTENT, MODDN_CONTENT, MODIFICATION_CONTENT |
Constructor Summary | |
LDIFAttributeContent()
Constructs an empty LDIFAttributeContent object with
no attributes specified. |
Method Summary | |
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. |
Methods inherited from class netscape.ldap.util.LDIFBaseContent |
getControls, getControlString, setControls |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LDIFAttributeContent()
LDIFAttributeContent
object with
no attributes specified. You can use the addElement
method to add attributes to this object.
addElement(netscape.ldap.LDAPAttribute)
Method Detail |
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |