Package org.xwiki.validator
Interface Validator
-
- All Known Implementing Classes:
AbstractHTML5Validator
,AbstractXMLValidator
,HTML5DutchWebGuidelinesValidator
,HTML5Validator
,RSSValidator
,XWikiValidator
public interface Validator
Common Validator interface.- Version:
- $Id: 162da489475f284b6ee6858a60a50a82f0d66ab8 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear the list of validation errors.List<ValidationError>
getErrors()
Get the list of validation errors.String
getName()
void
setDocument(InputStream document)
Set document to validate.List<ValidationError>
validate()
Run validation.
-
-
-
Method Detail
-
setDocument
void setDocument(InputStream document)
Set document to validate.- Parameters:
document
- document to validate
-
validate
List<ValidationError> validate()
Run validation.- Returns:
- a list of validation errors
-
getErrors
List<ValidationError> getErrors()
Get the list of validation errors.- Returns:
- a list of validation errors.
-
clear
void clear()
Clear the list of validation errors.
-
getName
String getName()
- Returns:
- the name of the validator
-
-