Package com.jcabi.w3c
Class Defect
- java.lang.Object
-
- com.jcabi.w3c.Defect
-
public final class Defect extends Object
Validation defect (error or warning) produced byValidationResponse.Objects of this class are immutable and thread-safe.
- Since:
- 0.1
- See Also:
- W3C API
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolumn()Column number inside the line.Stringexplanation()Explanation of the problem.intline()Line number, where the defect was found.Stringmessage()Text of the message.StringmessageId()Message ID, according to W3C API.Stringsource()Source line, as quoted by W3C validator.StringtoString()
-
-
-
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
-
-