Package com.jcabi.w3c

Class Defect


  • public final class Defect
    extends Object
    Validation defect (error or warning) produced by ValidationResponse.

    Objects of this class are immutable and thread-safe.

    Since:
    0.1
    See Also:
    W3C API
    • Method Detail

      • line

        public int line()
        Line number, where the defect was found.
        Returns:
        Line number
      • column

        public int column()
        Column number inside the line.
        Returns:
        Column number
      • source

        public String source()
        Source line, as quoted by W3C validator.
        Returns:
        Full text of the source line
      • explanation

        public String explanation()
        Explanation of the problem.
        Returns:
        Text
      • messageId

        public String messageId()
        Message ID, according to W3C API.
        Returns:
        The ID
      • message

        public String message()
        Text of the message.
        Returns:
        The message returned by W3C server