|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.partition.tree.BranchNode
public class BranchNode
The Partition Container holds entries which can be either Partitions or Containers. We can see them as directories, where Partitions are the files.
Constructor Summary | |
---|---|
BranchNode()
Creates a new instance of a BranchNode. |
Method Summary | |
---|---|
BranchNode |
addNode(java.lang.String rdn,
Node child)
Directly adds a new child Node to the current BranchNode. |
boolean |
contains(java.lang.String rdn)
Tells if the current BranchNode contains another node associated with an rdn. |
Node |
getChild(java.lang.String rdn)
Get's a child using an rdn string. |
boolean |
isLeaf()
Tells if the implementation is a leaf node. |
BranchNode |
recursivelyAddPartition(BranchNode current,
org.apache.directory.shared.ldap.name.LdapDN dn,
int index,
Partition partition)
Recursively adds new nodes to the partition lookup tree data structure. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BranchNode()
Method Detail |
---|
public boolean isLeaf()
Node
isLeaf
in interface Node
true
if the class is a leaf node, false otherwise.Node.isLeaf()
public BranchNode recursivelyAddPartition(BranchNode current, org.apache.directory.shared.ldap.name.LdapDN dn, int index, Partition partition) throws javax.naming.NamingException
current
- The current node having a partition added to itdn
- The DN associated with the partitionindex
- The index of the current RDN being processedpartition
- The associated partition to add as a tree node
javax.naming.NamingException
public BranchNode addNode(java.lang.String rdn, Node child)
rdn
- The rdn of the child node to addchild
- The child node to add
public boolean contains(java.lang.String rdn)
rdn
- The name we are looking for
true
if the PartitionStructure instance contains this namepublic Node getChild(java.lang.String rdn)
rdn
- the rdn to use as the node key
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |