Home » xml-commons-external-1.4.01-src » javax » xml » bind » util » [javadoc | source]
public class: ValidationEventCollector [javadoc | source]

All Implemented Interfaces:

ValidationEventHandler implementation that collects all events.

To use this class, create a new instance and pass it to the setEventHandler method of the Validator, Unmarshaller, Marshaller class. After the call to validate or unmarshal completes, call the getEvents method to retrieve all the reported errors and warnings.

Method from javax.xml.bind.util.ValidationEventCollector Summary:
getEvents,   handleEvent,   hasEvents,   reset
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.bind.util.ValidationEventCollector Detail:
 public ValidationEvent[] getEvents() 
    Return an array of ValidationEvent objects containing a copy of each of the collected errors and warnings.
 public boolean handleEvent(ValidationEvent event) 
 public boolean hasEvents() 
    Returns true if this event collector contains at least one ValidationEvent.
 public  void reset() 
    Clear all collected errors and warnings.