This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.xml.bind.util
class ValidationEventCollector
- All Implemented Interfaces:
- ValidationEventHandler
public class ValidationEventCollector
extends Object
implements ValidationEventHandler
{@link javax.xml.bind.ValidationEventHandler 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 Summary |
ValidationEvent[] |
Return an array of ValidationEvent objects containing a copy of each of
the collected errors and warnings.
|
boolean |
|
boolean |
Returns true if this event collector contains at least one
ValidationEvent.
|
void |
Clear all collected errors and warnings.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationEventCollector
public ValidationEventCollector()
-
getEvents
public ValidationEvent[] getEvents()
-
Return an array of ValidationEvent objects containing a copy of each of
the collected errors and warnings.
- Returns:
- a copy of all the collected errors and warnings or an empty array
if there weren't any
handleEvent
public boolean handleEvent(ValidationEvent event)
-
- Parameters:
event
hasEvents
public boolean hasEvents()
-
Returns true if this event collector contains at least one
ValidationEvent.
- Returns:
- true if this event collector contains at least one
ValidationEvent, false otherwise
reset
public void reset()
-
Clear all collected errors and warnings.
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.