|
Oracle Internet Directory API Reference 11g Release 1 (11.1.1) E10664-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ldap.util.LDIFRecord
public class 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 |
add(java.lang.String attrName, java.lang.String attrVal, int chgType) Adds an attribute to this record. |
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 |
removeAttribute(java.lang.String attrName) Removes the LDIFAttribute object of the specified attribute name. |
void |
removeAttribute(java.lang.String attrName, boolean baseName) Returns the LDIFAttribute object of the specified attribute name. |
void |
setChangeType(int changeType) set the record change type. |
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, finalize, 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 void add(java.lang.String attrName, java.lang.String attrVal, int chgType)
attrName
- attribute nameattrVal
- attribute valuechgType
- attribute change typepublic 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 void removeAttribute(java.lang.String attrName)
attrName
- Name of the attribute.public void removeAttribute(java.lang.String attrName, boolean baseName)
attrName
- Name of the attribute.baseName
- whether the attrName is a basename or with subtypespublic LDIFAttribute getAttribute(int index)
index
- - an index into this ldifrecordjava.lang.ArrayIndexOutOfBoundsException
- if an invalid index was given.public java.util.Enumeration getAll()
public boolean contains(java.lang.String attrName)
attrName
- the attribute Namepublic java.util.Enumeration getIDs()
String
objects.public int getChangeType()
public void setChangeType(int changeType)
changeType
- record change type.public int size()
public java.lang.Object clone()
clone
in class java.lang.Object
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
|
Oracle Internet Directory API Reference 11g Release 1 (11.1.1) E10664-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |