|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.ValidationEventCollector
public class ValidationEventCollector
A validation listener implementation which collects the events it receives.
Constructor Summary | |
---|---|
ValidationEventCollector()
Constructs a new instance. |
Method Summary | |
---|---|
ValidationEvent[] |
getFailEvents()
Returns an array of the fail events. |
ValidationEvent[] |
getPassEvents()
Returns an array of the pass events. |
boolean |
hasEvents()
Returns whether any events have been collected. |
boolean |
hasFailEvents()
Returns whether any fail events have been collected. |
boolean |
hasPassEvents()
Returns whether any pass events have been collected. |
void |
reset()
Resets the collector by clearing all events. |
String |
toFailString()
Returns a string representation of the fail events. |
String |
toPassString()
Returns a string representation of the pass events. |
void |
validationFailed(ValidationEvent ve)
Invoked when a validation call is unsuccessful. |
void |
validationPassed(ValidationEvent ve)
Invoked when a validation call has been successful. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationEventCollector()
Method Detail |
---|
public ValidationEvent[] getPassEvents()
public ValidationEvent[] getFailEvents()
public void reset()
public boolean hasEvents()
public boolean hasPassEvents()
public boolean hasFailEvents()
public void validationPassed(ValidationEvent ve)
ValidationListener
validationPassed
in interface ValidationListener
ve
- The validation event.public void validationFailed(ValidationEvent ve)
ValidationListener
validationFailed
in interface ValidationListener
ve
- The validation event.public String toPassString()
public String toFailString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |