| Package | Description |
|---|---|
| org.apache.directory.api.ldap.util.tree |
| Modifier and Type | Field and Description |
|---|---|
private DnNode<N> |
DnNode.parent
The parent, if any
|
| Modifier and Type | Field and Description |
|---|---|
private Map<String,DnNode<N>> |
DnNode.children
Stores the list of all the descendant
|
| Modifier and Type | Method and Description |
|---|---|
DnNode<N> |
DnNode.add(org.apache.directory.api.ldap.model.name.Dn dn)
Add a new node in the tree.
|
DnNode<N> |
DnNode.add(org.apache.directory.api.ldap.model.name.Dn dn,
N element)
Add a new node in the tree.
|
private DnNode<N> |
DnNode.createNode(org.apache.directory.api.ldap.model.name.Dn dn,
N element,
int nbRdns)
Create a new DnNode, recursively creating all the intermediate nodes.
|
DnNode<N> |
DnNode.getChild(org.apache.directory.api.ldap.model.name.Rdn rdn)
Get's a child using an rdn string.
|
DnNode<N> |
DnNode.getNode(org.apache.directory.api.ldap.model.name.Dn dn)
Get the Node for a given Dn, if present in the tree.
For instance, if we have stored dc=acme, dc=org into the tree, the Dn: ou=example, dc=acme, dc=org will have a parent, and dc=acme, dc=org will be returned. |
DnNode<N> |
DnNode.getParent() |
DnNode<N> |
DnNode.getParentWithElement()
Get the closest Node for a given Dn which has an element, if present in the tree.
For instance, if we have stored dc=acme, dc=org into the tree, the Dn: ou=example, dc=acme, dc=org will have a parent, and dc=acme, dc=org will be returned if it has an associated element. |
DnNode<N> |
DnNode.getParentWithElement(org.apache.directory.api.ldap.model.name.Dn dn)
Get the closest Node for a given Dn which has an element, if present in the tree.
For instance, if we have stored dc=acme, dc=org into the tree, the Dn: ou=example, dc=acme, dc=org will have a parent, and dc=acme, dc=org will be returned if it has an associated element. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,DnNode<N>> |
DnNode.getChildren() |
| Modifier and Type | Method and Description |
|---|---|
private void |
DnNode.getDescendantElements(DnNode<N> node,
List<N> descendants)
recursively get all the elements from nodes having an element
|
private boolean |
DnNode.hasDescendantElement(DnNode<N> node)
recursively check if the node has a descendant having an element
|
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.