com.ptc.windchill.upgrade.directives
Class ForEachPersistentDescendant

java.lang.Object
  extended bycom.ptc.windchill.upgrade.directives.ForEachPersistentDescendant

public class ForEachPersistentDescendant
extends Object


Nested Class Summary
static interface ForEachPersistentDescendant.ClassInfoVisitor
           
 class ForEachPersistentDescendant.ClassNotPersistableException
          Thrown if you try to specify a non persistable class for the algorithm.
 
Field Summary
private  Class persistableClass_
           
private  boolean shouldVisitAbstractTypes_
           
private  boolean shouldVisitConcreteTypes_
           
 
Constructor Summary
ForEachPersistentDescendant(Class persistable_class)
           
 
Method Summary
 Class getPersistableClass()
           
 void setVisitAbstractTypes(boolean visit)
           
 void setVisitConcreteTypes(boolean visit)
           
private  boolean shouldVisit(ClassInfo ci)
           
 void traverseFor(ForEachPersistentDescendant.ClassInfoVisitor visitor)
          Visits each concrete and abstract descendant of.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

persistableClass_

private Class persistableClass_

shouldVisitConcreteTypes_

private boolean shouldVisitConcreteTypes_

shouldVisitAbstractTypes_

private boolean shouldVisitAbstractTypes_
Constructor Detail

ForEachPersistentDescendant

public ForEachPersistentDescendant(Class persistable_class)
                            throws IllegalArgumentException
Method Detail

setVisitConcreteTypes

public void setVisitConcreteTypes(boolean visit)

setVisitAbstractTypes

public void setVisitAbstractTypes(boolean visit)

getPersistableClass

public Class getPersistableClass()

traverseFor

public void traverseFor(ForEachPersistentDescendant.ClassInfoVisitor visitor)
                 throws WTIntrospectionException
Visits each concrete and abstract descendant of.

Throws:
WTIntrospectionException

shouldVisit

private boolean shouldVisit(ClassInfo ci)