com.googlecode.androidannotations.validation
Class PrefValidator

java.lang.Object
  extended by com.googlecode.androidannotations.validation.PrefValidator
All Implemented Interfaces:
HasTarget, ElementValidator

public class PrefValidator
extends java.lang.Object
implements ElementValidator


Constructor Summary
PrefValidator(javax.annotation.processing.ProcessingEnvironment processingEnv)
           
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation> getTarget()
           
 boolean validate(javax.lang.model.element.Element element, AnnotationElements validatedElements)
          Method used to filter validated elements from annotated elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefValidator

public PrefValidator(javax.annotation.processing.ProcessingEnvironment processingEnv)
Method Detail

getTarget

public java.lang.Class<? extends java.lang.annotation.Annotation> getTarget()
Specified by:
getTarget in interface HasTarget

validate

public boolean validate(javax.lang.model.element.Element element,
                        AnnotationElements validatedElements)
Description copied from interface: ElementValidator
Method used to filter validated elements from annotated elements

Specified by:
validate in interface ElementValidator
Parameters:
element - the element to validate
validatedElements - to already validated elements
Returns:
true if the element should be added to the validatedElements, false otherwise


Copyright © 2010-2012. All Rights Reserved.