|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom.contrib.schema.ValidationError
public class ValidationError
A ValidationError object encapsulates a schema validation error or warning.
Nested Class Summary | |
---|---|
static class |
ValidationError.Severity
Class to support type-safe enumeration design pattern to represent severity levels of validation errors. |
Field Summary | |
---|---|
static ValidationError.Severity |
ERROR
The severity for recoverable validation errors. |
static ValidationError.Severity |
FATAL
The severity for non-recoverable validation errors. |
static ValidationError.Severity |
WARNING
The severity for warnings. |
Constructor Summary | |
---|---|
ValidationError(ValidationError.Severity severity,
java.lang.String message)
Creates a new validation error. |
|
ValidationError(ValidationError.Severity severity,
java.lang.String message,
java.lang.Object node)
Creates a new validation error. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Returns the detailed error message. |
java.lang.Object |
getNode()
Returns the JDOM node that caused the error. |
ValidationError.Severity |
getSeverity()
Returns the severity of this error. |
java.lang.String |
toString()
Returns a string representation of this error suitable for debugging and diagnosis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ValidationError.Severity WARNING
public static final ValidationError.Severity ERROR
public static final ValidationError.Severity FATAL
Constructor Detail |
---|
public ValidationError(ValidationError.Severity severity, java.lang.String message)
severity
- the error severity.message
- the detailed error message.public ValidationError(ValidationError.Severity severity, java.lang.String message, java.lang.Object node)
severity
- the error severity.message
- the detailed error message.node
- the JDOM node that caused the error.Method Detail |
---|
public ValidationError.Severity getSeverity()
public java.lang.String getMessage()
public java.lang.Object getNode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |