org.jboss.logging.validation
Interface ElementValidator
- All Known Implementing Classes:
- BundleReturnTypeValidator, LoggerReturnTypeValidator, MessageAnnotationValidator, MessageIdValidator, MethodParameterValidator
public interface ElementValidator
Used to validate various aspects of an interface to make sure the classes can
be implemented the code model.
- Author:
- James R. Perkins, Kevin Pollet - SERLI - (kevin.pollet@serli.com)
validate
Collection<ValidationMessage> validate(TypeElement element,
Collection<ExecutableElement> elementMethods)
- Validates the collection of methods that were passed.
- Parameters:
element - the root element, generally the interface.elementMethods - the methods of the interface.
- Returns:
- a collection of messages or a an empty collection if no errors or warnings were found.
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.