|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.bind.helpers.ValidationEventImpl
public class 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()
ValidationEvent
Returns the events severity: Either of
ValidationEvent.WARNING
, ValidationEvent.ERROR
, or ValidationEvent.FATAL_ERROR
.
getSeverity
in interface ValidationEvent
public 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()
ValidationEvent
Returns a textual description of the event.
getMessage
in interface ValidationEvent
public void setMessage(java.lang.String pMessage)
Sets the events message.
public java.lang.Throwable getLinkedException()
ValidationEvent
Returns a Throwable
related to the event. In most cases
an exception causing the event.
getLinkedException
in interface ValidationEvent
public void setLinkedException(java.lang.Throwable pLinkedException)
Sets the exception, which is linked to the event.
public ValidationEventLocator getLocator()
ValidationEvent
Returns a description of the location, where the event occurred.
getLocator
in interface ValidationEvent
public void setLocator(ValidationEventLocator pLocator)
Sets the events locator.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |