Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.internal

pack-priv Class ContextProvidingValidationEventHandler

extends Object
implements ValidationEventHandler
Class Inheritance
All Implemented Interfaces
javax.xml.bind.ValidationEventHandler
Imports
javax.xml.bind.ValidationEvent, .ValidationEventHandler, .ValidationEventLocator

ValidationEventHandler implementation providing easier access to where (line/column) an error occurred.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private int
private int
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
public int
public String
public boolean
handleEvent(ValidationEvent
the encapsulated validation event information. It is a provider error if this parameter is null.
validationEvent
)

Implements javax.xml.bind.ValidationEventHandler.handleEvent.

Receive notification of a validation warning or error.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnNumberback to summary
private int columnNumber
lineNumberback to summary
private int lineNumber
messageback to summary
private String message

Constructor Detail

ContextProvidingValidationEventHandlerback to summary
pack-priv ContextProvidingValidationEventHandler()

Method Detail

getColumnNumberback to summary
public int getColumnNumber()
getLineNumberback to summary
public int getLineNumber()
getMessageback to summary
public String getMessage()
handleEventback to summary
public boolean handleEvent(ValidationEvent validationEvent)

Implements javax.xml.bind.ValidationEventHandler.handleEvent.

Doc from javax.xml.bind.ValidationEventHandler.handleEvent.

Receive notification of a validation warning or error. The ValidationEvent will have a ValidationEventLocator embedded in it that indicates where the error or warning occurred.

If an unchecked runtime exception is thrown from this method, the JAXB provider will treat it as if the method returned false and interrupt the current unmarshal, validate, or marshal operation.

Parameters
validationEvent:ValidationEvent

the encapsulated validation event information. It is a provider error if this parameter is null.

Returns:boolean

true if the JAXB Provider should attempt to continue the current unmarshal, validate, or marshal operation after handling this warning/error, false if the provider should terminate the current operation with the appropriate UnmarshalException, ValidationException, or MarshalException.

Annotations
@Override