Package com.jcabi.w3c

Interface ValidationResponse

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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).
      URI checkedBy()
      Who checked the document (normally contains a URL of W3C server).
      String doctype()
      DOCTYPE of the document, if detected by the validator (may be empty if DOCTYPE is not detected or if it's a CSS document).
      Set<Defect> errors()
      Returns list of errors found during validation.
      boolean valid()
      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 if DOCTYPE is 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
      • warnings

        Set<Defect> warnings()
        Returns lsit of warnings found during validation.
        Returns:
        List of warnings