com.sri.emo.dbobj.model_tree
Class NoParentNode

java.lang.Object
  extended by com.sri.emo.dbobj.model_tree.NoParentNode
All Implemented Interfaces:
ModelNode

 class NoParentNode
extends Object
implements ModelNode

Special Case instance for no parents in a model. Access through the Model interface instead of directly.

Author:
Michael Rimov

Field Summary
 
Fields inherited from interface com.sri.emo.dbobj.model_tree.ModelNode
NO_CHILDREN, NO_LINK, NO_PARENT
 
Constructor Summary
NoParentNode()
          Default constructor
 
Method Summary
 Serializable getAdditionalInfo()
          Does nothing.
 List getChildren()
          Throws UnsupportedOperationException - not implemented for obvious reasons.
 String getLabel()
          Retrieve the label assigned to the node.
 Transition getLink()
          Retrieve the link to get to the node for editing.
 ModelFillStatus getModelFillStatus()
          Default implementation of fill status.
 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
 ModelNode getParent()
          Throws UnsupportedOperationException - not implemented for obvious reasons.
 ModelVisitable getVisitable()
          Throws UnsupportedOperationException - not implemented for obvious reasons.
 void setAdditionalInfo(Serializable newInfo)
          Sets the additional tag information to be associated with this node.
 void setNodeCompletionStatus(NodeCompletionStatus newStatus)
          Sets the node completion status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoParentNode

public NoParentNode()
Default constructor

Method Detail

getChildren

public List getChildren()
Throws UnsupportedOperationException - not implemented for obvious reasons.

Specified by:
getChildren in interface ModelNode
Returns:
nothing, throws UnsupportedOperationException

getParent

public ModelNode getParent()
Throws UnsupportedOperationException - not implemented for obvious reasons.

Specified by:
getParent in interface ModelNode
Returns:
nothing, throws UnsupportedOperationException

getVisitable

public ModelVisitable getVisitable()
Throws UnsupportedOperationException - not implemented for obvious reasons.

Specified by:
getVisitable in interface ModelNode
Returns:
nothing, throws UnsupportedOperationException

getLabel

public String getLabel()
Retrieve the label assigned to the node.

Specified by:
getLabel in interface ModelNode
Returns:
String label.

getLink

public Transition getLink()
Retrieve the link to get to the node for editing. (Similar to IViewable)

Specified by:
getLink in interface ModelNode
Returns:
Transition.

getModelFillStatus

public ModelFillStatus getModelFillStatus()
Default implementation of fill status.

Specified by:
getModelFillStatus in interface ModelNode
Returns:
ModelNode

getAdditionalInfo

public Serializable getAdditionalInfo()
Does nothing.

Specified by:
getAdditionalInfo in interface ModelNode
Returns:
Serializable

setAdditionalInfo

public void setAdditionalInfo(Serializable newInfo)
Sets the additional tag information to be associated with this node.

Specified by:
setAdditionalInfo in interface ModelNode
Parameters:
newInfo - the new application-specific information.

getNodeCompletionStatus

public 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

Specified by:
getNodeCompletionStatus in interface ModelNode
Returns:
NodeCompletionStatus

setNodeCompletionStatus

public void setNodeCompletionStatus(NodeCompletionStatus newStatus)
Sets the node completion status. They can either be Undefined, Complete, or Recursive -- pointing to another model node in the tree.

Parameters:
newStatus - NodeCompletionStatus
See Also:
NodeCompletionStatus


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.