public class NodeImpl extends Object implements Node, Serializable
Used to represent the properties keys as a tree. Not all properties may effectively use this representation, they must meet the requirements of the XML spec
OutputAdapter,
NodeVisitor,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
(package private) List<Node> |
children |
(package private) String |
name |
private static long |
serialVersionUID |
(package private) ValueModel |
value |
| Constructor and Description |
|---|
NodeImpl(String name) |
NodeImpl(String name,
String value) |
NodeImpl(String name,
ValueModel model) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Node child) |
void |
addChild(String name,
String value) |
void |
addChild(String name,
ValueModel model) |
boolean |
equals(Object obj) |
String |
get() |
Node |
getChild(String nodeName) |
List<Node> |
getChildren() |
Node |
getDescendant(String nodePath) |
String |
getName() |
ValueModel |
getValue() |
int |
hashCode() |
boolean |
hasValue() |
private static final long serialVersionUID
final String name
ValueModel value
NodeImpl(String name)
NodeImpl(String name, ValueModel model)
public void addChild(String name, ValueModel model)
public Node getDescendant(String nodePath)
getDescendant in interface Nodepublic List<Node> getChildren()
getChildren in interface Nodepublic ValueModel getValue()
Copyright © 2011-2014 David R. Smith. All Rights Reserved.