|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.bind.helpers.ValidationEventImpl
Default implementation of a ValidationEvent.
| Field Summary |
| Fields inherited from interface javax.xml.bind.ValidationEvent |
ERROR, FATAL_ERROR, WARNING |
| Constructor Summary | |
ValidationEventImpl(int pSeverity,
java.lang.String pMessage,
ValidationEventLocator pLocator)
Creates a new instance of ValidationEventImpl. |
|
ValidationEventImpl(int pSeverity,
java.lang.String pMessage,
ValidationEventLocator pLocator,
java.lang.Throwable pLinkedException)
Creates a new instance of ValidationEventImpl. |
|
| Method Summary | |
java.lang.Throwable |
getLinkedException()
Returns a Throwable related 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 ValidationEvent.WARNING, ValidationEvent.ERROR, or ValidationEvent.FATAL_ERROR. |
void |
setLinkedException(java.lang.Throwable pLinkedException)
Sets the exception, which is linked to the event. |
void |
setLocator(ValidationEventLocator pLocator)
Sets the events locator. |
void |
setMessage(java.lang.String pMessage)
Sets the events message. |
void |
setSeverity(int pSeverity)
Sets the events severity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ValidationEventImpl(int pSeverity,
java.lang.String pMessage,
ValidationEventLocator pLocator)
Creates a new instance of ValidationEventImpl.
public ValidationEventImpl(int pSeverity,
java.lang.String pMessage,
ValidationEventLocator pLocator,
java.lang.Throwable pLinkedException)
Creates a new instance of ValidationEventImpl.
| Method Detail |
public int getSeverity()
ValidationEventReturns the events severity: Either of
ValidationEvent.WARNING, ValidationEvent.ERROR, or ValidationEvent.FATAL_ERROR.
getSeverity in interface ValidationEventpublic void setSeverity(int pSeverity)
Sets the events severity.
pSeverity - The events severity, either of
ValidationEvent.WARNING,
ValidationEvent.ERROR, or
ValidationEvent.FATAL_ERROR.public java.lang.String getMessage()
ValidationEventReturns a textual description of the event.
getMessage in interface ValidationEventpublic void setMessage(java.lang.String pMessage)
Sets the events message.
public java.lang.Throwable getLinkedException()
ValidationEventReturns a Throwable related to the event. In most cases
an exception causing the event.
getLinkedException in interface ValidationEventpublic void setLinkedException(java.lang.Throwable pLinkedException)
Sets the exception, which is linked to the event.
public ValidationEventLocator getLocator()
ValidationEventReturns a description of the location, where the event occurred.
getLocator in interface ValidationEventpublic void setLocator(ValidationEventLocator pLocator)
Sets the events locator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||