org.faktorips.runtime.modeltype
Class TypeHierarchyVisitor

java.lang.Object
  extended by org.faktorips.runtime.modeltype.TypeHierarchyVisitor

public abstract class TypeHierarchyVisitor
extends Object

A visitor that allows to implement functions on a type's hierarchy. As we don't have an explizit type hierarchy class, not the typicall implementation with accept/visit methods, but still a visitor.

Author:
Jan Ortmann

Constructor Summary
TypeHierarchyVisitor()
           
 
Method Summary
 void visitHierarchy(IModelType type)
          Visits the given type and all it's super types.
abstract  boolean visitType(IModelType type)
          Visits the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeHierarchyVisitor

public TypeHierarchyVisitor()
Method Detail

visitHierarchy

public void visitHierarchy(IModelType type)
Visits the given type and all it's super types. Does nothing if the type is null .


visitType

public abstract boolean visitType(IModelType type)
Visits the given type.

Parameters:
type - The type to visit.
Returns:
true if the visitor should continue to visit the supertypes, false if not.


Copyright © 2015. All rights reserved.