public class ParentIdAndRdn extends java.lang.Object implements java.io.Externalizable, java.lang.Comparable<ParentIdAndRdn>
| Modifier and Type | Field and Description |
|---|---|
protected int |
nbChildren
Number of direct children
|
protected int |
nbDescendants
Number of global descendant
|
protected java.lang.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(java.lang.String parentId,
java.util.List<org.apache.directory.api.ldap.model.name.Rdn> rdns)
Creates a new instance of ParentIdAndRdn.
|
ParentIdAndRdn(java.lang.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(java.lang.Object obj) |
int |
getNbChildren() |
int |
getNbDescendants() |
java.lang.String |
getParentId()
Gets the parent ID.
|
org.apache.directory.api.ldap.model.name.Rdn[] |
getRdns()
Gets the RDNs.
|
int |
hashCode() |
void |
readExternal(java.io.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(java.lang.String parentId)
Sets the parent ID.
|
void |
setRdns(org.apache.directory.api.ldap.model.name.Rdn... rdns)
Sets the Rdn.
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
protected java.lang.String parentId
protected org.apache.directory.api.ldap.model.name.Rdn[] rdns
protected int nbChildren
protected int nbDescendants
public ParentIdAndRdn()
public ParentIdAndRdn(java.lang.String parentId,
org.apache.directory.api.ldap.model.name.Rdn... rdns)
parentId - the parent IDrdns - the RDNspublic ParentIdAndRdn(java.lang.String parentId,
java.util.List<org.apache.directory.api.ldap.model.name.Rdn> rdns)
parentId - the parent IDrdns - the RDNspublic java.lang.String getParentId()
public void setParentId(java.lang.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 hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(ParentIdAndRdn that)
compareTo in interface java.lang.Comparable<ParentIdAndRdn>public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic int getNbChildren()
public void setNbChildren(int nbChildren)
nbChildren - The number of childrenpublic int getNbDescendants()
public void setNbDescendants(int nbDescendants)
nbChildren - The number of descendantspublic java.lang.String toString()
toString in class java.lang.Object