|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.xml.policy.xacl.HierarchyImpl
This is an implementation of Hierarchy. You can create an object from an XML document describing an hierarchical data structure, which can be used to describe both gropu and role hierarchies. Here is an example of group hierarchy.
<node-definition name="all">
<short-description>
The root node (including all)
</short-description>
<child-nodes>
<node-definition name="personnel">
<short-description>
Personnel
</short-description>
<child-nodes>
<node-definition name="research">
<short-description>
Research
</short-description>
</node-definition>
<node-definition name="developement">
<short-description>
Developement
</short-description>
</node-definition>
</child-nodes>
</node-definition>
<node-definition name="non-personnel">
<short-description>
Non-personnel
</short-description>
</node-definition>
</child-nodes>
</node-definition>
|
| Constructor Summary | |
HierarchyImpl(org.w3c.dom.Document doc)
Constructor. |
|
| Method Summary | |
boolean |
isAncestorOrEqual(java.lang.String ancestor_node,
java.lang.String node)
Check whether a node is an ancestor of another node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HierarchyImpl(org.w3c.dom.Document doc)
doc - an XML document descibing a hierarchical data structure.| Method Detail |
public boolean isAncestorOrEqual(java.lang.String ancestor_node,
java.lang.String node)
isAncestorOrEqual in interface Hierarchyancestor_node - node -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||