V
- The value object classpublic class ValueNode<V> extends Object
Modifier and Type | Method and Description |
---|---|
void |
addChild(ValueNode<V> node)
Adds a child object to this node
|
List<ValueNode<V>> |
getChildren()
Returns a children for this node
|
List<V> |
getChildrenValues()
Returns all children's values
|
V |
getValue()
Returns the value object of this node
|
boolean |
hasChildren()
Checks if this node has children
|
boolean |
isLeaf()
Checks if the node is a leaf node
|
void |
setChildren(List<ValueNode<V>> aChildren)
Sets the children for this node
|
void |
setValue(V aValue)
Sets the value object of this node
|
public ValueNode(V aValue)
public V getValue()
public void setValue(V aValue)
aValue
- the value.public List<ValueNode<V>> getChildren()
public List<V> getChildrenValues()
public void setChildren(List<ValueNode<V>> aChildren)
aChildren
- the children.public void addChild(ValueNode<V> node)
node
- the child object.public boolean hasChildren()
public boolean isLeaf()
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.