This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.xml.bind
interface ValidationEvent
- All Known Subinterfaces:
- NotIdentifiableEvent, ParseConversionEvent, PrintConversionEvent
- All Known Implementing Classes:
- ValidationEventImpl, NotIdentifiableEventImpl, ParseConversionEventImpl, PrintConversionEventImpl
public interface ValidationEvent
This event indicates that a problem was encountered while validating the
incoming XML data during an unmarshal operation, while performing
on-demand validation of the Java content tree, or while marshalling the
Java content tree back to XML data.
Field Summary |
static int |
ERROR
Conditions that correspond to the definition of "error" in section
1.2 of the W3C XML 1.0 Recommendation |
static int |
FATAL_ERROR
Conditions that correspond to the definition of "fatal error" in section
1.2 of the W3C XML 1.0 Recommendation |
static int |
WARNING
Conditions that are not errors or fatal errors as defined by the
XML 1.0 recommendation |
Method Summary |
Throwable |
Retrieve the linked exception for this warning/error.
|
ValidationEventLocator |
Retrieve the locator for this warning/error.
|
String |
Retrieve the text message for this warning/error.
|
int |
Retrieve the severity code for this warning/error.
|
ERROR
public static final int ERROR
-
Conditions that correspond to the definition of "error" in section
1.2 of the W3C XML 1.0 Recommendation
FATAL_ERROR
public static final int FATAL_ERROR
-
Conditions that correspond to the definition of "fatal error" in section
1.2 of the W3C XML 1.0 Recommendation
WARNING
public static final int WARNING
-
Conditions that are not errors or fatal errors as defined by the
XML 1.0 recommendation
getLinkedException
public Throwable getLinkedException()
-
Retrieve the linked exception for this warning/error.
- Returns:
- the linked exception for this warning/error or null if one
wasn't set
getLocator
public ValidationEventLocator getLocator()
-
Retrieve the locator for this warning/error.
- Returns:
- the locator that indicates where the warning/error occurred
getMessage
public String getMessage()
-
Retrieve the text message for this warning/error.
- Returns:
- the text message for this warning/error or null if one wasn't set
getSeverity
public int getSeverity()
-
Retrieve the severity code for this warning/error.
Must be one of ValidationError.WARNING,
ValidationError.ERROR, or ValidationError.FATAL_ERROR.
- Returns:
- the severity code for this warning/error
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.