Top Description Fields Methods
jakarta.xml.bind

public Interface ValidationEvent

Known Direct Subinterfaces
jakarta.xml.bind.NotIdentifiableEvent, jakarta.xml.bind.ParseConversionEvent, jakarta.xml.bind.PrintConversionEvent
Known Direct Implementers
jakarta.xml.bind.helpers.ValidationEventImpl

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.
Author
Since
1.6, JAXB 1.0
See Also
ValidationEventHandler

Field Summary

Modifier and TypeField and Description
public static final int
ERROR

Conditions that correspond to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation

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

public static final int
WARNING

Conditions that are not errors or fatal errors as defined by the XML 1.0 recommendation

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the linked exception for this warning/error or null if one wasn't set
getLinkedException
()

Retrieve the linked exception for this warning/error.

public ValidationEventLocator

Returns:

the locator that indicates where the warning/error occurred
getLocator
()

Retrieve the locator for this warning/error.

public String

Returns:

the text message for this warning/error or null if one wasn't set
getMessage
()

Retrieve the text message for this warning/error.

public int

Returns:

the severity code for this warning/error
getSeverity
()

Retrieve the severity code for this warning/error.

Field Detail

ERRORback to summary
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_ERRORback to summary
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

WARNINGback to summary
public static final int WARNING

Conditions that are not errors or fatal errors as defined by the XML 1.0 recommendation

Method Detail

getLinkedExceptionback to summary
public Throwable getLinkedException()

Retrieve the linked exception for this warning/error.

Returns:Throwable

the linked exception for this warning/error or null if one wasn't set

getLocatorback to summary
public ValidationEventLocator getLocator()

Retrieve the locator for this warning/error.

Returns:ValidationEventLocator

the locator that indicates where the warning/error occurred

getMessageback to summary
public String getMessage()

Retrieve the text message for this warning/error.

Returns:String

the text message for this warning/error or null if one wasn't set

getSeverityback to summary
public int getSeverity()

Retrieve the severity code for this warning/error.

Must be one of ValidationEvent.WARNING, ValidationEvent.ERROR, or ValidationEvent.FATAL_ERROR.

Returns:int

the severity code for this warning/error