com.sri.emo.dbobj.model_tree
Interface ModelVisitor

All Known Implementing Classes:
TreeViewVisitor

public interface ModelVisitor

Visitor that allows for visiting of IViewable interface objects. Because of the nature of the Visitor pattern, every time a new object is added that derives from IViewable, you need to modify the ViewVisitor interface appropriately.

Each visit may throw a ViewVisitorException which is a runtime exception. You may catch it while processing the nodes if you wish.

Author:
Michael Rimov

Method Summary
 void visitAttribute(Attribute attribute)
          Visits an attribute.
 void visitNode(Node node)
          Visits a Node.
 void visitNodeType(NodeType nodeType)
          Visits a NodeType
 void visitPart(Part part)
          Visits a Part
 void visitPickList(PickList picklist)
          Visits a picklist.
 void visitRelation(Relation relation)
          Visits a Relation
 

Method Detail

visitAttribute

void visitAttribute(Attribute attribute)
Visits an attribute.

Parameters:
attribute - Attribute
Throws:
ViewVisitorException - upon error.

visitNode

void visitNode(Node node)
Visits a Node.

Parameters:
node - Node
Throws:
ViewVisitorException - upon error.

visitNodeType

void visitNodeType(NodeType nodeType)
Visits a NodeType

Parameters:
nodeType - NodeType
Throws:
ViewVisitorException - upon error.

visitPart

void visitPart(Part part)
Visits a Part

Parameters:
part - Part
Throws:
ViewVisitorException - upon error.

visitPickList

void visitPickList(PickList picklist)
Visits a picklist.

Parameters:
picklist - PickList
Throws:
ViewVisitorException - upon error.

visitRelation

void visitRelation(Relation relation)
Visits a Relation

Parameters:
relation - Relation
Throws:
ViewVisitorException - upon error.


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