| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An instance of ValidationEvent indicates some
 error condition, which occurred when validating a JAXB object.
 The purpose of the ValidationEventHandler is to
 customize the reply on instances of ValidationEvent.
 The default event handler will throw an exception in case of
 events, but application specific validation event handlers need
 not do the same.
Validator, 
ValidationEventHandler| Field Summary | |
| static int | ERRORThis value indicates an "error", as specified by section 1.2 of the W3C XML 1.0 Recommendation. | 
| static int | FATAL_ERRORThis value indicates a "fatal error", as specified by section 1.2 of the W3C XML 1.0 Recommendation. | 
| static int | WARNINGIn contrast to errors or fatal errors, this indicates an event which can possibly be ignored. | 
| Method Summary | |
|  java.lang.Throwable | getLinkedException()Returns a Throwablerelated to the event. | 
|  ValidationEventLocator | getLocator()Returns a description of the location, where the event occurred. | 
|  java.lang.String | getMessage()Returns a textual description of the event. | 
|  int | getSeverity()Returns the events severity: Either of WARNING,ERROR, orFATAL_ERROR. | 
| Field Detail | 
public static final int WARNING
In contrast to errors or fatal errors, this indicates an event which can possibly be ignored. This constant has the value 0. See section 1.2 of the W3C XML 1.0 Recommendation for details.
ERROR, 
FATAL_ERROR, 
getSeverity(), 
Constant Field Valuespublic static final int ERROR
This value indicates an "error", as specified by section 1.2 of the W3C XML 1.0 Recommendation. The constant value is 1.
WARNING, 
FATAL_ERROR, 
getSeverity(), 
Constant Field Valuespublic static final int FATAL_ERROR
This value indicates a "fatal error", as specified by section 1.2 of the W3C XML 1.0 Recommendation. The constant value is 2.
WARNING, 
ERROR, 
getSeverity(), 
Constant Field Values| Method Detail | 
public int getSeverity()
Returns the events severity: Either of
 WARNING, ERROR, or FATAL_ERROR.
public java.lang.String getMessage()
Returns a textual description of the event.
public java.lang.Throwable getLinkedException()
Returns a Throwable related to the event. In most cases
 an exception causing the event.
public ValidationEventLocator getLocator()
Returns a description of the location, where the event occurred.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||