JBoss Logging I18n Tools 1.0.0.Beta7

org.jboss.logging.validation
Class Validator

java.lang.Object
  extended by org.jboss.logging.validation.Validator

public final class Validator
extends Object

Author:
Kevin Pollet - SERLI - (kevin.pollet@serli.com)

Method Summary
 void addElementValidator(ElementValidator elementValidator)
          Adds an element validator to validate the elements with.
static Validator buildValidator(ProcessingEnvironment pev)
           
 Collection<ValidationMessage> validate(Collection<? extends TypeElement> typeElements)
          Validates the collection of elements and returns validation messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.

JBoss Logging I18n Tools 1.0.0.Beta7

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.