|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.ldif.Entry
public class Entry
A entry to be populated by an ldif parser. We will have different kind of entries : - added entries - deleted entries - modified entries - RDN modified entries - DN modified entries
Field Summary | |
---|---|
static int |
ADD
The possible change types |
static int |
DELETE
|
static int |
MODDN
|
static int |
MODIFY
|
static int |
MODRDN
|
Constructor Summary | |
---|---|
Entry()
Creates a new Entry object. |
Method Summary | |
---|---|
void |
addAttribute(Attribute attr)
Add an attribute to the entry |
void |
addAttribute(String id,
Object value)
Add an attribute to the entry |
void |
addModificationItem(int modOp,
Attribute attr)
Add a modification item (used by modify operations) |
void |
addModificationItem(int modOp,
String id,
Object value)
Add a modification item |
void |
addModificationItem(ModificationItemImpl modification)
Add a modification item (used by modify operations) |
Object |
clone()
Clone method |
Attribute |
get(String attributeId)
Returns a attribute given it's id |
Attributes |
getAttributes()
Get the entry's attributes |
int |
getChangeType()
Get the change type |
Control |
getControl()
|
String |
getDn()
|
List |
getModificationItems()
|
String |
getNewRdn()
|
String |
getNewSuperior()
|
boolean |
isChangeAdd()
|
boolean |
isChangeDelete()
|
boolean |
isChangeModDn()
|
boolean |
isChangeModify()
|
boolean |
isChangeModRdn()
|
boolean |
isDeleteOldRdn()
|
boolean |
isEntry()
|
void |
putAttribute(String id,
Object value)
Add an attribute value to an existing attribute |
void |
setChangeType(int changeType)
Set the modification type |
void |
setChangeType(String changeType)
Set the change type |
void |
setControl(Control control)
Add a control to the entry |
void |
setDeleteOldRdn(boolean deleteOldRdn)
Set the flage deleteOldRdn |
void |
setDn(String dn)
Set the Distinguished Name |
void |
setNewRdn(String newRdn)
Set the new RDN |
void |
setNewSuperior(String newSuperior)
Set the new superior |
int |
size()
|
String |
toString()
Return a String representing the Entry |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ADD
public static final int MODIFY
public static final int MODDN
public static final int MODRDN
public static final int DELETE
Constructor Detail |
---|
public Entry()
Method Detail |
---|
public void setDn(String dn)
dn
- The Distinguished Namepublic void setChangeType(int changeType)
changeType
- The change typepublic void setChangeType(String changeType)
changeType
- The change typepublic void addModificationItem(ModificationItemImpl modification)
modification
- The modification to be addedpublic void addModificationItem(int modOp, Attribute attr) throws NamingException
modOp
- The operation. One of : DirContext.ADD_ATTRIBUTE
DirContext.REMOVE_ATTRIBUTE DirContext.REPLACE_ATTRIBUTEattr
- The attribute to be added
NamingException
public void addModificationItem(int modOp, String id, Object value) throws NamingException
modOp
- The operation. One of : DirContext.ADD_ATTRIBUTE
DirContext.REMOVE_ATTRIBUTE DirContext.REPLACE_ATTRIBUTEid
- The attribute's IDvalue
- The attribute's value
NamingException
public void addAttribute(Attribute attr)
attr
- The attribute to be addedpublic void addAttribute(String id, Object value)
id
- The attribute IDvalue
- The attribute valuepublic void putAttribute(String id, Object value)
id
- The attribute IDvalue
- The attribute valuepublic int getChangeType()
public List getModificationItems()
public String getDn()
public int size()
public Attribute get(String attributeId)
attributeId
- The attribute Id
public Attributes getAttributes()
public boolean isDeleteOldRdn()
public void setDeleteOldRdn(boolean deleteOldRdn)
deleteOldRdn
- True if the old RDN should be deletedpublic String getNewRdn()
public void setNewRdn(String newRdn)
newRdn
- The new RDNpublic String getNewSuperior()
public void setNewSuperior(String newSuperior)
newSuperior
- The new Superiorpublic boolean isChangeAdd()
public boolean isChangeDelete()
public boolean isChangeModDn()
public boolean isChangeModRdn()
public boolean isChangeModify()
public boolean isEntry()
public Control getControl()
public void setControl(Control control)
control
- The controlpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |