asia.redact.bracket.properties
Class NodeImpl
java.lang.Object
asia.redact.bracket.properties.NodeImpl
- All Implemented Interfaces:
- Node
public class NodeImpl
- extends Object
- implements Node
Used to represent the properties as a tree.
Not all properties may effectively use this representation
- Author:
- Dave
name
final String name
children
final List<Node> children
value
ValueModel value
NodeImpl
NodeImpl(String name)
NodeImpl
NodeImpl(String name,
String value)
NodeImpl
NodeImpl(String name,
ValueModel model)
addChild
public void addChild(Node child)
- Specified by:
addChild in interface Node
addChild
public void addChild(String name,
String value)
- Specified by:
addChild in interface Node
addChild
public void addChild(String name,
ValueModel model)
- Specified by:
addChild in interface Node
getChild
public Node getChild(String nodeName)
- Specified by:
getChild in interface Node
getDescendant
public Node getDescendant(String nodePath)
- Specified by:
getDescendant in interface Node
hasValue
public boolean hasValue()
- Specified by:
hasValue in interface Node
get
public String get()
- Specified by:
get in interface Node
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getName
public String getName()
- Specified by:
getName in interface Node
getChildren
public List<Node> getChildren()
- Specified by:
getChildren in interface Node
getValue
public ValueModel getValue()
- Specified by:
getValue in interface Node
Copyright © 2011-2013 David R. Smith. All Rights Reserved.