public class XMLValidationProblem extends Object
Modifier and Type | Field and Description |
---|---|
protected Location |
mLocation
Location within validated xml stream where the problem occured.
|
protected String |
mMessage |
protected XMLValidator |
mReporter
Validator instance that reported the problem, if any (may be
null if stream reader or writer itself reported the problem)
|
protected int |
mSeverity |
protected String |
mType
Type of the problem, available types implementation specified.
|
static int |
SEVERITY_ERROR |
static int |
SEVERITY_FATAL |
static int |
SEVERITY_WARNING |
Constructor and Description |
---|
XMLValidationProblem(Location loc,
String msg) |
XMLValidationProblem(Location loc,
String msg,
int severity) |
XMLValidationProblem(Location loc,
String msg,
int severity,
String type) |
Modifier and Type | Method and Description |
---|---|
Location |
getLocation() |
String |
getMessage() |
XMLValidator |
getReporter()
Returns the validator that reported the problem if known.
|
int |
getSeverity() |
String |
getType() |
void |
setLocation(Location l) |
void |
setReporter(XMLValidator v)
Set the validator object that reported this problem, if known.
|
void |
setType(String t) |
XMLValidationException |
toException()
Convenience method for constructing a
XMLValidationException
to throw based on information contained in this object. |
public static final int SEVERITY_WARNING
public static final int SEVERITY_ERROR
public static final int SEVERITY_FATAL
protected Location mLocation
protected final String mMessage
protected final int mSeverity
protected String mType
protected XMLValidator mReporter
public XMLValidationException toException()
XMLValidationException
to throw based on information contained in this object.
Base implementation is equivalent to:
return XMLValidationException.createException(this);
public void setType(String t)
public void setLocation(Location l)
public void setReporter(XMLValidator v)
public Location getLocation()
public String getMessage()
public int getSeverity()
SEVERITY_
constants
(such as SEVERITY_WARNING
public String getType()
public XMLValidator getReporter()
Copyright © 2015 fasterxml.com. All Rights Reserved.