public class NodeImpl extends Object implements Node, Serializable
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() |
String |
toString() |
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–2016 David R. Smith. All rights reserved.