javax.xml.bind.helpers

Class ValidationEventImpl

public class ValidationEventImpl extends Object implements ValidationEvent

Default implementation of a ValidationEvent.

Since: JAXB1.0

Author: JSR-31

Constructor Summary
ValidationEventImpl(int pSeverity, String pMessage, ValidationEventLocator pLocator)

Creates a new instance of ValidationEventImpl.

ValidationEventImpl(int pSeverity, String pMessage, ValidationEventLocator pLocator, Throwable pLinkedException)

Creates a new instance of ValidationEventImpl.

Method Summary
ThrowablegetLinkedException()
ValidationEventLocatorgetLocator()
StringgetMessage()
intgetSeverity()
voidsetLinkedException(Throwable pLinkedException)

Sets the exception, which is linked to the event.

voidsetLocator(ValidationEventLocator pLocator)

Sets the events locator.

voidsetMessage(String pMessage)

Sets the events message.

voidsetSeverity(int pSeverity)

Sets the events severity.

Constructor Detail

ValidationEventImpl

public ValidationEventImpl(int pSeverity, String pMessage, ValidationEventLocator pLocator)

Creates a new instance of ValidationEventImpl.

ValidationEventImpl

public ValidationEventImpl(int pSeverity, String pMessage, ValidationEventLocator pLocator, Throwable pLinkedException)

Creates a new instance of ValidationEventImpl.

Method Detail

getLinkedException

public Throwable getLinkedException()

getLocator

public ValidationEventLocator getLocator()

getMessage

public String getMessage()

getSeverity

public int getSeverity()

setLinkedException

public void setLinkedException(Throwable pLinkedException)

Sets the exception, which is linked to the event.

setLocator

public void setLocator(ValidationEventLocator pLocator)

Sets the events locator.

setMessage

public void setMessage(String pMessage)

Sets the events message.

setSeverity

public void setSeverity(int pSeverity)

Sets the events severity.

Parameters: pSeverity The events severity, either of WARNING, ERROR, or FATAL_ERROR.