public class ParentIdAndRdn extends Object implements Externalizable, Comparable<ParentIdAndRdn>
Modifier and Type | Field and Description |
---|---|
protected int |
nbChildren
Number of direct children
|
protected int |
nbDescendants
Number of global descendant
|
protected String |
parentId
The entry ID
|
protected org.apache.directory.api.ldap.model.name.Rdn[] |
rdns
The list of Rdn for this instance
|
Constructor and Description |
---|
ParentIdAndRdn()
Serializable constructor.
|
ParentIdAndRdn(String parentId,
List<org.apache.directory.api.ldap.model.name.Rdn> rdns)
Creates a new instance of ParentIdAndRdn.
|
ParentIdAndRdn(String parentId,
org.apache.directory.api.ldap.model.name.Rdn... rdns)
Creates a new instance of ParentIdAndRdn.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ParentIdAndRdn that) |
boolean |
equals(Object obj) |
int |
getNbChildren() |
int |
getNbDescendants() |
String |
getParentId()
Gets the parent ID.
|
org.apache.directory.api.ldap.model.name.Rdn[] |
getRdns()
Gets the RDNs.
|
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
setNbChildren(int nbChildren)
Sets the number of children this entry has
|
void |
setNbDescendants(int nbDescendants)
Sets the number of descendants this entry has
|
void |
setParentId(String parentId)
Sets the parent ID.
|
void |
setRdns(org.apache.directory.api.ldap.model.name.Rdn... rdns)
Sets the Rdn.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
protected org.apache.directory.api.ldap.model.name.Rdn[] rdns
protected int nbChildren
protected int nbDescendants
public ParentIdAndRdn()
public ParentIdAndRdn(String parentId, org.apache.directory.api.ldap.model.name.Rdn... rdns)
parentId
- the parent IDrdns
- the RDNspublic ParentIdAndRdn(String parentId, List<org.apache.directory.api.ldap.model.name.Rdn> rdns)
parentId
- the parent IDrdns
- the RDNspublic String getParentId()
public void setParentId(String parentId)
parentId
- the new parent IDpublic org.apache.directory.api.ldap.model.name.Rdn[] getRdns()
public void setRdns(org.apache.directory.api.ldap.model.name.Rdn... rdns)
rdns
- the new Rdnpublic int compareTo(ParentIdAndRdn that)
compareTo
in interface Comparable<ParentIdAndRdn>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public int getNbChildren()
public void setNbChildren(int nbChildren)
nbChildren
- The number of childrenpublic int getNbDescendants()
public void setNbDescendants(int nbDescendants)
nbChildren
- The number of descendantsCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.