Package org.xmlunit.validation
Class ValidationProblem
java.lang.Object
org.xmlunit.validation.ValidationProblem
A validation "problem" which may be an error or a warning.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of validation problem encountered. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant used for unknown location information. -
Constructor Summary
ConstructorDescriptionValidationProblem
(String message, int line, int column, ValidationProblem.ProblemType type) Creates a ValidationProblem for the given message and location of the given type. -
Method Summary
-
Field Details
-
UNKNOWN
public static final int UNKNOWNConstant used for unknown location information.- See Also:
-
-
Constructor Details
-
ValidationProblem
Creates a ValidationProblem for the given message and location of the given type.- Parameters:
message
- the problem messageline
- line where the problem occurscolumn
- column where the problem occurstype
- type of problem
-
-
Method Details
-
getLine
public int getLine()The line where the problem occured orUNKNOWN
.- Returns:
- line where the problem occured
-
getColumn
public int getColumn()The column where the problem occured orUNKNOWN
.- Returns:
- column where the problem occured
-
getType
Whether this is an error or a warning.- Returns:
- type of problem
-
getMessage
The problem's message.- Returns:
- the problem's message
-
toString
-