Package com.jcabi.w3c
Interface ValidationResponse
-
public interface ValidationResponseResponse of HTML or CSS validation.See
ValidatorBuilderfor explanation of how to get an instance of this interface.Implementation may be mutable but thread-safe.
- Since:
- 0.1
- See Also:
ValidatorBuilder,Validator.validate(String), W3C API, HTML, W3C API, CSS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Charsetcharset()Charset of the document, if detected by the server (may be empty if charset is not detected or it's a CSS document).URIcheckedBy()Who checked the document (normally contains a URL of W3C server).Stringdoctype()DOCTYPE of the document, if detected by the validator (may be empty ifDOCTYPEis not detected or if it's a CSS document).Set<Defect>errors()Returns list of errors found during validation.booleanvalid()The document is valid and has no errors or warnings?Set<Defect>warnings()Returns lsit of warnings found during validation.
-
-
-
Method Detail
-
valid
boolean valid()
The document is valid and has no errors or warnings?- Returns:
- Is it valid?
-
checkedBy
URI checkedBy()
Who checked the document (normally contains a URL of W3C server).- Returns:
- URI of the server
-
doctype
String doctype()
DOCTYPE of the document, if detected by the validator (may be empty ifDOCTYPEis not detected or if it's a CSS document).- Returns:
- Doctype or empty string
-
charset
Charset charset()
Charset of the document, if detected by the server (may be empty if charset is not detected or it's a CSS document).- Returns:
- Charset of the document, e.g.
"UTF-8"
-
errors
Set<Defect> errors()
Returns list of errors found during validation.- Returns:
- List of errors or an empty list if no errors found
-
-