|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ldap.util.LDIFRecord
LDIFRecord represents a single entry in an LDIF file, consisting of a distinguished name (DN) and zero or more attributes.
Constructor Summary | |
LDIFRecord()
Constructs a LDIFRecord object without dn and attribute values set. |
|
LDIFRecord(java.lang.String dn)
Constructs a record with the specified dn. |
Method Summary | |
void |
addAttribute(LDIFAttribute atr)
Adds an attribute to this record. |
java.lang.Object |
clone()
to create a replica of this object. |
boolean |
contains(java.lang.String attrName)
Returns true if the ldifrecord contains the specified attribute. |
java.util.Enumeration |
getAll()
Returns an Enumeration of the attributes in this record. |
LDIFAttribute |
getAttribute(int index)
Returns the LDIFAttribute object at the specified index in a record |
LDIFAttribute |
getAttribute(java.lang.String attrName)
Returns the LDIFAttribute object of the specified attribute name. |
int |
getChangeType()
Retrieves the change type of this record. |
boolean |
getDeleteOldRdn()
Returns true if deleteOldRdn is set. |
java.lang.String |
getDN()
Returns the distinguished name of the current record. |
java.util.Enumeration |
getIDs()
Retrieves an enumeration of the ids of the attributes in this record as String objects. |
javax.naming.directory.Attributes |
getJNDIAttributes()
Use this method to Obtain all the attriubtes of an LDIFRecord represented as javax.naming.directory.Attributes object. |
javax.naming.directory.ModificationItem[] |
getJNDIModificationItems()
Use this method to Obtain all the attriubtes of an LDIFRecord represented as an array of javax.naming.directory.ModificationItem objects. |
java.lang.String |
getNewRdn()
Returns the newRdn if the record change type is moddn |
java.lang.String |
getNewSuperior()
Returns the newSuperior if the record change type is moddn |
void |
setDN(java.lang.String dn)
Set the Dn of this record. |
int |
size()
Returns the number of attributes in this record. |
java.lang.String |
toString()
A string representation of this object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LDIFRecord()
public LDIFRecord(java.lang.String dn)
dn
- the distinguished name of the new entryMethod Detail |
public java.lang.String getNewRdn()
LDIFRecord
. If the change
type of the record is not moddn/modrdn then null is returned.public java.lang.String getNewSuperior()
LDIFRecord
. If the change
type of the record is not moddn/modrdn then null is returned.public boolean getDeleteOldRdn()
public void addAttribute(LDIFAttribute atr)
atr
- The LDIFAttribute object which is to be added.public java.lang.String getDN()
public void setDN(java.lang.String dn)
dn
- the distinguished name that will be set in the current record.public LDIFAttribute getAttribute(java.lang.String attrName)
attrName
- Name of the attribute.public LDIFAttribute getAttribute(int index)
index
- - an index into this ldifrecordArrayIndexOutOfBoundsException
- if an invalid index was given.public boolean contains(java.lang.String attrName)
attrName
- the attribute Namepublic java.util.Enumeration getAll()
public java.util.Enumeration getIDs()
String
objects.public int getChangeType()
public int size()
public java.lang.Object clone()
public javax.naming.directory.Attributes getJNDIAttributes()
javax.naming.directory.Attributes
object.null
if this
record does not contain any attribute.public javax.naming.directory.ModificationItem[] getJNDIModificationItems()
javax.naming.directory.ModificationItem
objects.null
if this
record does not contain any attribute.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |