javax.xml.bind.util
public class ValidationEventCollector extends Object implements ValidationEventHandler
Simple implementation of a {@link javax.xml.bind.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 {@link #getEvents()}.
Since: JAXB1.0
Constructor Summary | |
---|---|
ValidationEventCollector() Creates a new instance of |
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. |
Creates a new instance of ValidationEventCollector
.
Returns the events collected so far. Empty array, if no events have been found.
Will always return true.
Returns whether any event has been collected.
Clears the list of collected warnings, errors, and fatal errors.