public class BaseNode extends java.lang.Object implements IBaseNode
Constructor and Description |
---|
BaseNode()
Default constructor.
|
BaseNode(IBaseNode other)
Copy Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChildNode(IBaseNode childNode) |
IBaseNode |
clone() |
java.util.ArrayList<IBaseNode> |
getChildren() |
<T extends IBaseNode> |
getNode(java.lang.Class<T> nodeType,
java.lang.String property,
java.lang.String value)
Fetch the first node in the child structure by a depth first search that
corresponds to the given NodeType and fulfills the property constraint.
|
NodeType |
getNodeType() |
IBaseNode |
getParent() |
void |
setParent(IBaseNode parent) |
boolean |
structurallyEquals(IBaseNode other) |
java.lang.String |
toString() |
void |
update(IBaseNode other) |
public BaseNode()
public BaseNode(IBaseNode other)
other
- - the BaseNode to copypublic NodeType getNodeType()
getNodeType
in interface IBaseNode
public java.util.ArrayList<IBaseNode> getChildren()
getChildren
in interface IBaseNode
public boolean addChildNode(IBaseNode childNode)
public IBaseNode clone()
public boolean structurallyEquals(IBaseNode other)
structurallyEquals
in interface IBaseNode
public <T extends IBaseNode> T getNode(java.lang.Class<T> nodeType, java.lang.String property, java.lang.String value)
IBaseNode
getNode
in interface IBaseNode
T
- - the intended node typenodeType
- - the intended node typeproperty
- - a property of the node that should be checked or null if
no check should be performedvalue
- - the value which the specified property should containpublic java.lang.String toString()
toString
in class java.lang.Object