public class TypeHierarchyNode extends POSetNode
| Modifier and Type | Field and Description |
|---|---|
private ArrayList<String> |
values
The original versions of this type label
|
childNodes, parentNodes| Constructor and Description |
|---|
TypeHierarchyNode(String key,
String value)
Considers the key to be the node's identity, but keeps the value too.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(String value)
If the value is not already one of the type labels represented in this
node, then it's added.
|
String |
getKey() |
String |
getValue()
Get the first value in the list, arbitrarily.
|
ArrayList<String> |
getValues()
Returns the entire set of values for this particular node.
|
String |
toString() |
String |
toString(boolean deep) |
addChild, addParent, getChildNodes, getParentNodes, hasChild, hasDirectChild, hasDirectParent, hasIndirectChild, hasIndirectParent, hasParent, removeChild, removeParent, setPosetKeypublic TypeHierarchyNode(String key,
String value)
key - the identity of the nodevalue - the first value stored with this node.public String getValue()
public ArrayList<String> getValues()
public void addValue(String value)
TypeMatchingRulespublic String toString()
toString in class Objectpublic String toString(boolean deep)
deep - Whether to list parent and child nodes recursively or not