com.tensegrity.generic.attribute.meta
Interface AttributeTypeSetVisitor


public interface AttributeTypeSetVisitor

This interface defines a visitor for objects of type AttributeTypeSet. It can be used for the traversal of an attributes typeset hierarchy.

Version:
$Id: AttributeTypeSetVisitor.java,v 1.7 2003/09/15 12:08:58 AndreasEbbert Exp $
Author:
M. Kegel
See Also:
AttributeTypeSet

Method Summary
 void beginVisit()
          This method is invoked at the start of the traversal of an AttributeTypeSet - hierarchy.
 void endVisit()
          This method is invoked at the end of the traversal of an AttributeTypeSet - hierarchy.
 void enterType(AttributeType type, int level)
          This method is envoked during the traversal of an AttributeTypeSet - hierarchy when the specified type is encountered.
 void enterTypeSet(AttributeTypeSet typeSet, int level)
          This method is envoked during the traversal of an AttributeTypeSet - hierarchy.
 void leaveType(AttributeType type, int level)
          This method is envoked during the traversal of an AttributeTypeSet - hierarchy when the specified type is encountered..
 void leaveTypeSet(AttributeTypeSet typeSet, int level)
          This method is envoked during the traversal of an AttributeTypeSet- hierarchy.
 

Method Detail

beginVisit

public void beginVisit()
This method is invoked at the start of the traversal of an AttributeTypeSet - hierarchy. Needed initializations can be done here.


endVisit

public void endVisit()
This method is invoked at the end of the traversal of an AttributeTypeSet - hierarchy. Needed cleanup work can be done here.


enterType

public void enterType(AttributeType type,
                      int level)
This method is envoked during the traversal of an AttributeTypeSet - hierarchy when the specified type is encountered. Every time the specified AttributeType is reached this method is called before the attribute type is visited.

Parameters:
type - the reached AttributeType.
level - the level in the tree hierarchy.
See Also:
leaveType(AttributeType, int)

leaveType

public void leaveType(AttributeType type,
                      int level)
This method is envoked during the traversal of an AttributeTypeSet - hierarchy when the specified type is encountered.. Every time the specified AttributeType is reached this method is called after the attribute type has been visited.

Parameters:
type - the reached AttributeType.
level - the level in the tree hierarchy.
See Also:
enterType(AttributeType, int)

enterTypeSet

public void enterTypeSet(AttributeTypeSet typeSet,
                         int level)
This method is envoked during the traversal of an AttributeTypeSet - hierarchy. Every time the specified AttributeTypeSet is reached this method is called before the type set is visited.

Parameters:
typeSet - the reached AttributeTypeSet.
level - the level in the tree hierarchy.

leaveTypeSet

public void leaveTypeSet(AttributeTypeSet typeSet,
                         int level)
This method is envoked during the traversal of an AttributeTypeSet- hierarchy. Every time the specified AttributeTypeSet is reached this method is called after the type set has been visited.

Parameters:
typeSet - the reached AttributeTypeSet.
level - the level in the tree hierarchy.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.