org.jagatoo.util.classes
Class SuperClassCriterium

java.lang.Object
  extended by org.jagatoo.util.classes.SuperClassCriterium
All Implemented Interfaces:
ClassSearchCriterium

public class SuperClassCriterium
extends java.lang.Object
implements ClassSearchCriterium

This is a ClassSearcher Criterium, that ensures, that checked class is a sub type of a certain super class.


Constructor Summary
SuperClassCriterium(java.lang.Class<?> supa, boolean allowAbstract)
           
 
Method Summary
 boolean check(java.lang.Class<?> clazz)
          Tests the given Class for a specific constraint.
 java.lang.Class<?> getSuper()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperClassCriterium

public SuperClassCriterium(java.lang.Class<?> supa,
                           boolean allowAbstract)
Method Detail

getSuper

public java.lang.Class<?> getSuper()

check

public boolean check(java.lang.Class<?> clazz)
Tests the given Class for a specific constraint.

Specified by:
check in interface ClassSearchCriterium
Returns:
true, if the test is successful