netscape.ldap.util
Class LDIFAddContent
- LDIFContent, java.io.Serializable
public class LDIFAddContent
An object of this class represents the content of an LDIF record that
specifies a new entry to be added. This class implements the
LDIFContent
interface.
To get this object from an
LDIFRecord
object,
use the
getContent
method and cast the return value as
LDIFAddContent
.
LDIFAddContent(attrs[] ) - Constructs a new
LDIFAddContent object with
the specified attributes.
|
LDAPAttribute[] | getAttributes() - Retrieves the list of the attributes specified in the content
of the LDIF record.
|
int | getType() - Returns the content type.
|
String | toString() - Returns the string representation of the content of the LDIF record.
|
LDIFAddContent
public LDIFAddContent(attrs[] )
Constructs a new LDIFAddContent
object with
the specified attributes.
getAttributes
public LDAPAttribute[] getAttributes()
Retrieves the list of the attributes specified in the content
of the LDIF record.
- an array of
LDAPAttribute
objects that
represent the attributes specified in the content of the LDIF record.
getType
public int getType()
Returns the content type. You can use this with the
getContent
method of the LDIFRecord
object to determine the type of content specified in the record.
- getType in interface LDIFContent
- the content type (which is
LDIFContent.ADD_CONTENT
).
toString
public String toString()
Returns the string representation of the content of the LDIF record.
- toString in interface LDIFContent
- the string representation of the content of the LDIF record.