Package de.xima.fc.logic.dom
Class GagawaNodeTreeAccessor
- java.lang.Object
-
- de.xima.fc.logic.dom.GagawaNodeTreeAccessor
-
- All Implemented Interfaces:
ITreeAccessor<com.hp.gagawa.java.Node,com.hp.gagawa.java.Node>
public final class GagawaNodeTreeAccessor extends Object implements ITreeAccessor<com.hp.gagawa.java.Node,com.hp.gagawa.java.Node>
AITreeAccessor
for Gagawa DOMNode
s.- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static ITreeAccessor<com.hp.gagawa.java.Node,?>
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.hp.gagawa.java.Node>
getChildren(com.hp.gagawa.java.Node node)
com.hp.gagawa.java.Node
getId(com.hp.gagawa.java.Node node)
-
-
-
Field Detail
-
INSTANCE
public static final ITreeAccessor<com.hp.gagawa.java.Node,?> INSTANCE
-
-
Method Detail
-
getChildren
public List<com.hp.gagawa.java.Node> getChildren(com.hp.gagawa.java.Node node)
- Specified by:
getChildren
in interfaceITreeAccessor<com.hp.gagawa.java.Node,com.hp.gagawa.java.Node>
- Parameters:
node
- The node for which to get the children.- Returns:
- A list of all children of the given tree node, empty array if it is a leaf node.
-
getId
public com.hp.gagawa.java.Node getId(com.hp.gagawa.java.Node node)
- Specified by:
getId
in interfaceITreeAccessor<com.hp.gagawa.java.Node,com.hp.gagawa.java.Node>
- Parameters:
node
- A node for which to retrieve its ID.- Returns:
- The (unique) identifier of the given tree node.
-
-