|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.state.NodeState
public final class NodeState
A node of a state.
Constructor Summary | |
---|---|
NodeState(java.lang.String name)
Construct a new NodeState. |
|
NodeState(java.lang.String name,
java.lang.String text)
Construct a new NodeState. |
Method Summary | |
---|---|
void |
addSimpleChildValue(java.lang.String name,
java.lang.String value)
Add a simple child value. |
java.util.Collection<NodeStateAttribute> |
getAttributes()
Return the attributes of the node. |
java.lang.String |
getAttributeValue(java.lang.String key)
Return the attribute value. |
java.util.Collection<NodeState> |
getChildrens()
Return the childrens of the node. |
java.lang.String |
getName()
Return the name of the node. |
java.lang.String |
getText()
Return the text of the node. |
boolean |
hasAttribute()
Indicate if the node has attribute or not. |
boolean |
hasChildren()
Indicate if the node has children or not. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set an attribute. |
void |
setAttributes(java.util.Collection<NodeStateAttribute> attributes)
Set the attributes of the node. |
void |
setChildrens(java.util.Collection<NodeState> childrens)
Set the childrens of the node. |
void |
setText(java.lang.String text)
Set the text of the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeState(java.lang.String name)
name
- The name of the node.public NodeState(java.lang.String name, java.lang.String text)
name
- The name of the node.text
- The text of the node.Method Detail |
---|
public java.lang.String getName()
public java.util.Collection<NodeState> getChildrens()
public void setChildrens(java.util.Collection<NodeState> childrens)
childrens
- The childrens.public void addSimpleChildValue(java.lang.String name, java.lang.String value)
name
- The name of the node.value
- The value of the node.public java.lang.String getText()
public void setText(java.lang.String text)
text
- The text of the node.public java.util.Collection<NodeStateAttribute> getAttributes()
public void setAttributes(java.util.Collection<NodeStateAttribute> attributes)
attributes
- A List containing all the attributes.public boolean hasChildren()
public boolean hasAttribute()
public void setAttribute(java.lang.String key, java.lang.String value)
key
- The key of the attribute.value
- The value of the attribute.public java.lang.String getAttributeValue(java.lang.String key)
key
- The name of the attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |