|
||||||||||
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 com.sri.emo.dbobj.model_tree.DefaultModelNode
public class DefaultModelNode
Default Model node used for nesting ModelVisitable data.
Field Summary |
---|
Fields inherited from interface com.sri.emo.dbobj.model_tree.ModelNode |
---|
NO_CHILDREN, NO_LINK, NO_PARENT |
Constructor Summary | |
---|---|
DefaultModelNode(ModelVisitable data)
Constructor used for a root node. |
|
DefaultModelNode(ModelVisitable data,
MutableModelNode nodeParent)
Constructor to indicate a nested node. |
Method Summary | |
---|---|
Serializable |
getAdditionalInfo()
This is a method to allow 'tagging' particular nodes with application specific information and processing the node differently based on that information. |
ModelFillStatus |
getModelFillStatus()
Contains status about the node itself -- are all parts and subparts completely filled? |
NodeCompletionStatus |
getNodeCompletionStatus()
Returns a node completion status which represents whether the factory was able to build a non-recursive complete model for the given node in question or |
ModelVisitable |
getVisitable()
Retrieve the viewable interface of what we are dealing with. |
void |
setAdditionalInfo(Serializable newInfo)
Sets the additional tag information to be associated with this node. |
void |
setModelFilledStatus(ModelFillStatus newStatus)
Set the model status in terms of 'filled parts'. |
void |
setNodeCompletionStatus(NodeCompletionStatus newStatus)
Sets the node completion status. |
Methods inherited from class com.sri.emo.dbobj.model_tree.AbstractModelNode |
---|
addChild, getChildren, getLabel, getLink, getParent, iterator, setLabel, setLink |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultModelNode(ModelVisitable data)
data
- The data to be attached.public DefaultModelNode(ModelVisitable data, MutableModelNode nodeParent)
nodeParent
- ModelCompositeNode nodeParent.addChild() is automatically
called by the base class implementation.data
- the data to be attached to the node.Method Detail |
---|
public ModelVisitable getVisitable()
public ModelFillStatus getModelFillStatus()
public void setModelFilledStatus(ModelFillStatus newStatus)
newStatus
- ModelStatuspublic Serializable getAdditionalInfo()
public void setAdditionalInfo(Serializable newInfo)
newInfo
- the new application-specific information.public NodeCompletionStatus getNodeCompletionStatus()
public void setNodeCompletionStatus(NodeCompletionStatus newStatus)
newStatus
- NodeCompletionStatusNodeCompletionStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |