com.googlecode.lightest.core.filter
Class AnnotationContainsFilter

java.lang.Object
  extended by com.googlecode.lightest.core.filter.ComparisonFilter
      extended by com.googlecode.lightest.core.filter.AnnotationFilter
          extended by com.googlecode.lightest.core.filter.AnnotationContainsFilter
All Implemented Interfaces:
ITestFilter, groovy.lang.GroovyObject

public class AnnotationContainsFilter
extends AnnotationFilter
implements groovy.lang.GroovyObject

Filters based on annotation value contents as defined by contains(), or indexOf() in the case of Strings.


Constructor Summary
AnnotationContainsFilter()
           
 
Method Summary
 boolean compare(Object value, Object attributeValue)
          Returns true if the comparison criteria is satisfied, false otherwise.
 String filterString()
          Returns a canonical String representation of the filter.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class com.googlecode.lightest.core.filter.AnnotationFilter
getAttributeValue, setField
 
Methods inherited from class com.googlecode.lightest.core.filter.ComparisonFilter
getField, getValue, isCaseSensitive, setCaseSensitive, setValue, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationContainsFilter

public AnnotationContainsFilter()
Method Detail

compare

public boolean compare(Object value,
                       Object attributeValue)
Description copied from class: ComparisonFilter
Returns true if the comparison criteria is satisfied, false otherwise.

Specified by:
compare in class ComparisonFilter
Parameters:
value - the value to compare against
attributeValue - the value being compared

filterString

public String filterString()
Description copied from interface: ITestFilter
Returns a canonical String representation of the filter.

Specified by:
filterString in interface ITestFilter

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AnnotationFilter

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AnnotationFilter

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AnnotationFilter

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AnnotationFilter

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AnnotationFilter


Copyright © 2009. All Rights Reserved.