com.sri.emo.dbobj.model_tree
Interface Model

All Known Implementing Classes:
DefaultModel

public interface Model

This represents the 'public' interface for traversing the model and reading it. It does not consider mutability since that is really for the consideration of the model builder only. Look at MutableModelNode if you need for some reason to modify the model at runtime.

Author:
Michael Rimov

Method Summary
 ModelNode getRoot()
          Retrieves the root of the tree hierarchy to allow for manual manipulation if needed.
 Iterator iterator()
          Allows for the client to visit the nodes one-by-one.
 Iterator iterator(TreeTraversalListener eventListener)
          Allows for client to visit the nodes one-by-one but still engage in the semantics of tree traversal by firing an event whenever a 'level' in the tree is entered and exited.
 

Method Detail

iterator

Iterator iterator()
Allows for the client to visit the nodes one-by-one.

Returns:
Iterator

iterator

Iterator iterator(TreeTraversalListener eventListener)
Allows for client to visit the nodes one-by-one but still engage in the semantics of tree traversal by firing an event whenever a 'level' in the tree is entered and exited.

Parameters:
eventListener - TreeTraversalListener the target for the events
Returns:
Iterator

getRoot

ModelNode getRoot()
Retrieves the root of the tree hierarchy to allow for manual manipulation if needed. Otherwise, use iterator().

Returns:
ModelNode instance.


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