|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.bind.util.ValidationEventCollector
public class ValidationEventCollector
Simple implementation of a ValidationEventHandler
,
which simply collects all the events, regardless whether they
are warnings, errors, or fatal errors. You may retrieve these events
at a later time using getEvents()
.
Constructor Summary | |
---|---|
ValidationEventCollector()
Creates a new instance of ValidationEventCollector . |
Method Summary | |
---|---|
ValidationEvent[] |
getEvents()
Returns the events collected so far. |
boolean |
handleEvent(ValidationEvent pEvent)
Will always return true. |
boolean |
hasEvents()
Returns whether any event has been collected. |
void |
reset()
Clears the list of collected warnings, errors, and fatal errors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationEventCollector()
Creates a new instance of ValidationEventCollector
.
Method Detail |
---|
public ValidationEvent[] getEvents()
Returns the events collected so far. Empty array, if no events have been found.
public void reset()
Clears the list of collected warnings, errors, and fatal errors.
public boolean hasEvents()
Returns whether any event has been collected.
public boolean handleEvent(ValidationEvent pEvent)
Will always return true.
handleEvent
in interface ValidationEventHandler
pEvent
- The event being reported to the JAXB user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |