Jakarta XML Binding providers are allowed to use whatever class that implements the ValidationEvent interface. This class is just provided for a convenience.
jakarta.xml.bind.ValidationEventHandler, jakarta.xml.bind.ValidationEvent, jakarta.xml.bind.ValidationEventLocator
| Modifier and Type | Field and Description |
|---|---|
| private Throwable | |
| private ValidationEventLocator | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | ValidationEventImpl(int
The severity value for this event. Must be one of
ValidationEvent.WARNING, ValidationEvent.ERROR, or
ValidationEvent.FATAL_ERROR _severity, String The text message for this event - may be null. _message, ValidationEventLocator The locator object for this event - may be null. _locator)Create a new ValidationEventImpl. |
| public | ValidationEventImpl(int
The severity value for this event. Must be one of
ValidationEvent.WARNING, ValidationEvent.ERROR, or
ValidationEvent.FATAL_ERROR _severity, String The text message for this event - may be null. _message, ValidationEventLocator The locator object for this event - may be null. _locator, Throwable An optional linked exception that may provide
additional information about the event - may be null. _linkedException)Create a new ValidationEventImpl. |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | getLinkedException()
Implements jakarta. |
| public ValidationEventLocator | getLocator()
Implements jakarta. |
| public String | getMessage()
Implements jakarta. |
| public int | getSeverity()
Implements jakarta. |
| public void | setLinkedException(Throwable
Optional linked exception - may be null. _linkedException)Set the linked exception field of this event. |
| public void | setLocator(ValidationEventLocator
The locator - may be null. _locator)Set the locator object for this event. |
| public void | |
| public void | setSeverity(int
Must be one of ValidationEvent.WARNING,
ValidationEvent.ERROR, or ValidationEvent.FATAL_ERROR. _severity)Set the severity field of this event. |
| public String | toString()
Overrides java. |
| linkedException | back to summary |
|---|---|
| private Throwable linkedException | |
| locator | back to summary |
|---|---|
| private ValidationEventLocator locator | |
| message | back to summary |
|---|---|
| private String message | |
| severity | back to summary |
|---|---|
| private int severity | |
| ValidationEventImpl | back to summary |
|---|---|
| public ValidationEventImpl(int _severity, String _message, ValidationEventLocator _locator) Create a new ValidationEventImpl.
| |
| ValidationEventImpl | back to summary |
|---|---|
| public ValidationEventImpl(int _severity, String _message, ValidationEventLocator _locator, Throwable _linkedException) Create a new ValidationEventImpl.
| |
| getLinkedException | back to summary |
|---|---|
| public Throwable getLinkedException() Implements jakarta. Doc from jakarta. Retrieve the linked exception for this warning/error. | |
| getLocator | back to summary |
|---|---|
| public ValidationEventLocator getLocator() Implements jakarta. Doc from jakarta. Retrieve the locator for this warning/error.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Implements jakarta. Doc from jakarta. Retrieve the text message for this warning/error. | |
| getSeverity | back to summary |
|---|---|
| public int getSeverity() Implements jakarta. Doc from jakarta. Retrieve the severity code for this warning/error.
Must be one of
| |
| setLinkedException | back to summary |
|---|---|
| public void setLinkedException(Throwable _linkedException) Set the linked exception field of this event.
| |
| setLocator | back to summary |
|---|---|
| public void setLocator(ValidationEventLocator _locator) Set the locator object for this event.
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(String _message) Set the message field of this event.
| |
| setSeverity | back to summary |
|---|---|
| public void setSeverity(int _severity) Set the severity field of this event.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object in a format helpful to debugging.
| |