com.sri.emo.dbobj.model_tree
Interface MutableModelNode

All Superinterfaces:
ModelNode
All Known Implementing Classes:
AbstractModelNode, DefaultModelNode

public interface MutableModelNode
extends ModelNode

A node in the model tree that can have its children modified

Author:
Michael Rimov

Field Summary
 
Fields inherited from interface com.sri.emo.dbobj.model_tree.ModelNode
NO_CHILDREN, NO_LINK, NO_PARENT
 
Method Summary
 void addChild(ModelNode newNode)
          Add a child node to the given mutable model.
 Iterator iterator()
          Allows for iteration of the contents of the node, possibly removing them if the iterator supports removal.
 
Methods inherited from interface com.sri.emo.dbobj.model_tree.ModelNode
getAdditionalInfo, getChildren, getLabel, getLink, getModelFillStatus, getNodeCompletionStatus, getParent, getVisitable, setAdditionalInfo
 

Method Detail

addChild

void addChild(ModelNode newNode)
Add a child node to the given mutable model.

Parameters:
newNode - ModelCompositeNode

iterator

Iterator iterator()
Allows for iteration of the contents of the node, possibly removing them if the iterator supports removal. (Default case is iterating an ArrayList which is possible)

Returns:
Iterator that returns MutableModelNode instances.


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