de.smartics.properties.report.qdox
Class PropertyDescriptorSearcher

Package class diagram package PropertyDescriptorSearcher
java.lang.Object
  extended by de.smartics.properties.report.qdox.PropertyDescriptorSearcher
All Implemented Interfaces:
com.thoughtworks.qdox.Searcher

public final class PropertyDescriptorSearcher
     
     
extends Object
implements com.thoughtworks.qdox.Searcher

Filters interfaces that are annotated with the PropertySet annotation.


Constructor Summary
PropertyDescriptorSearcher()
           
 
Method Summary
 boolean eval(com.thoughtworks.qdox.model.JavaClass cls)
          
static boolean hasPropertyAnnotation(com.thoughtworks.qdox.model.JavaClass javaClass)
          Checks if the given class provides the PropertySet annotation that identifies an interfaces as declaring a property set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDescriptorSearcher

public PropertyDescriptorSearcher()
Method Detail

eval

public boolean eval(com.thoughtworks.qdox.model.JavaClass cls)
             throws de.smartics.util.lang.NullArgumentException

Specified by:
eval in interface com.thoughtworks.qdox.Searcher
Throws:
de.smartics.util.lang.NullArgumentException - if cls is null.
See Also:
Searcher.eval(com.thoughtworks.qdox.model.JavaClass)

hasPropertyAnnotation

public static boolean hasPropertyAnnotation(com.thoughtworks.qdox.model.JavaClass javaClass)
                                     throws de.smartics.util.lang.NullArgumentException
Checks if the given class provides the PropertySet annotation that identifies an interfaces as declaring a property set.

Parameters:
javaClass - the class to check for being an interface and providing the PropertySet annotation.
Returns:
true if the class is a property set interface, false otherwise.
Throws:
de.smartics.util.lang.NullArgumentException - if javaClass is null.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.