Package org.xwiki.validator
Class HTML5Validator
- java.lang.Object
-
- org.xwiki.validator.HTML5Validator
-
-
Constructor Summary
Constructors Constructor Description HTML5Validator()
-
Method Summary
All Methods Instance Methods Concrete 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
public void setDocument(InputStream document)
Description copied from interface:Validator
Set document to validate.- Specified by:
setDocument
in interfaceValidator
- Parameters:
document
- document to validate
-
validate
public List<ValidationError> validate()
Description copied from interface:Validator
Run validation.
-
getErrors
public List<ValidationError> getErrors()
Description copied from interface:Validator
Get the list of validation errors.
-
clear
public void clear()
Description copied from interface:Validator
Clear the list of validation errors.
-
-