org.jboss.logging.validation
Class Validator
java.lang.Object
org.jboss.logging.validation.Validator
public final class Validator
- extends Object
- Author:
- Kevin Pollet - SERLI - (kevin.pollet@serli.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buildValidator
public static Validator buildValidator(ProcessingEnvironment pev)
validate
public Collection<ValidationMessage> validate(Collection<? extends TypeElement> typeElements)
- Validates the collection of elements and returns validation messages.
- Parameters:
typeElements - the elements to validate.
- Returns:
- the collection of validator messages.
addElementValidator
public void addElementValidator(ElementValidator elementValidator)
- Adds an element validator to validate the elements with.
- Parameters:
elementValidator - the element validator.
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.