|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.dbobj.model_tree.AbstractModelNode
public abstract class AbstractModelNode
Simple base class of all the mutable nodes. Allows for adding and subtracting any types of nodes we wish. Just derive to add your specific type and factory.
Field Summary |
---|
Fields inherited from interface com.sri.emo.dbobj.model_tree.ModelNode |
---|
NO_CHILDREN, NO_LINK, NO_PARENT |
Constructor Summary | |
---|---|
AbstractModelNode()
Constructor for when there is no parent. |
|
AbstractModelNode(MutableModelNode nodeParent)
Constructor for when we want to attach to a parent. |
Method Summary | |
---|---|
void |
addChild(ModelNode newNode)
Add a child node to the given mutable model. |
List |
getChildren()
Retrieve the items in the composite model. |
String |
getLabel()
Retrieve the label assigned to the node. |
Transition |
getLink()
Retrieve the edit link |
ModelNode |
getParent()
Retrieves the parent or returns NO_PARENT if we are already at the top of the node. |
Iterator |
iterator()
Allows for iteration of the contents of the node, possibly removing them if the iterator supports removal. |
void |
setLabel(String label)
Set the label of the node. |
void |
setLink(Transition link)
Set the transition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sri.emo.dbobj.model_tree.ModelNode |
---|
getAdditionalInfo, getModelFillStatus, getNodeCompletionStatus, getVisitable, setAdditionalInfo |
Constructor Detail |
---|
public AbstractModelNode()
public AbstractModelNode(MutableModelNode nodeParent)
nodeParent
- MutableModelNodeMethod Detail |
---|
public void addChild(ModelNode newNode)
addChild
in interface MutableModelNode
newNode
- ModelCompositeNodepublic List getChildren()
getChildren
in interface ModelNode
public ModelNode getParent()
getParent
in interface ModelNode
public Iterator iterator()
iterator
in interface MutableModelNode
public String getLabel()
getLabel
in interface ModelNode
public Transition getLink()
getLink
in interface ModelNode
public void setLabel(String label)
label
- Stringpublic void setLink(Transition link)
link
- Transition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |