public class ValidationProblem extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidationProblem.ProblemType
The type of validation problem encountered.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN
Constant used for unknown location information.
|
| Constructor and Description |
|---|
ValidationProblem(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 |
|---|---|
int |
getColumn()
The column where the problem occured or
UNKNOWN. |
int |
getLine()
The line where the problem occured or
UNKNOWN. |
String |
getMessage()
The problem's message.
|
ValidationProblem.ProblemType |
getType()
Whether this is an error or a warning.
|
String |
toString() |
public static final int UNKNOWN
public ValidationProblem(String message, int line, int column, ValidationProblem.ProblemType type)
message - the problem messageline - line where the problem occurscolumn - column where the problem occurstype - type of problempublic int getLine()
UNKNOWN.public int getColumn()
UNKNOWN.public ValidationProblem.ProblemType getType()
public String getMessage()
Copyright © 2001–2025 XMLUnit. All rights reserved.