javax.xml.bind.util
Class ValidationEventCollector
java.lang.Object
javax.xml.bind.util.ValidationEventCollector
- ValidationEventHandler
public class ValidationEventCollector
extends java.lang.Object
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()
.
ValidationEventCollector
public ValidationEventCollector()
Creates a new instance of ValidationEventCollector
.
getEvents
public ValidationEvent[] getEvents()
Returns the events collected so far. Empty array, if no
events have been found.
hasEvents
public boolean hasEvents()
Returns whether any event has been collected.
reset
public void reset()
Clears the list of collected warnings, errors, and fatal errors.