public class ValidationProblem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ValidationProblem.ProblemType
The type of validation problem encountered.
|
Modifier and Type | Field and Description |
---|---|
private int |
column |
private int |
line |
private java.lang.String |
message |
private ValidationProblem.ProblemType |
type |
static int |
UNKNOWN
Constant used for unknown location information.
|
Constructor and Description |
---|
ValidationProblem(java.lang.String message,
int line,
int column,
ValidationProblem.ProblemType type)
Creates a ValidationProblem for the given message and location
of the given type.
|
Modifier and Type | Method and Description |
---|---|
(package private) static ValidationProblem |
fromException(org.xml.sax.SAXParseException e,
ValidationProblem.ProblemType type) |
int |
getColumn()
The column where the problem occured or
UNKNOWN . |
int |
getLine()
The line where the problem occured or
UNKNOWN . |
java.lang.String |
getMessage()
The problem's message.
|
ValidationProblem.ProblemType |
getType()
Whether this is an error or a warning.
|
java.lang.String |
toString() |
public static final int UNKNOWN
private final int line
private final int column
private final ValidationProblem.ProblemType type
private final java.lang.String message
public ValidationProblem(java.lang.String message, int line, int column, ValidationProblem.ProblemType type)
public int getLine()
UNKNOWN
.public int getColumn()
UNKNOWN
.public ValidationProblem.ProblemType getType()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
static ValidationProblem fromException(org.xml.sax.SAXParseException e, ValidationProblem.ProblemType type)