|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
biz.c24.io.api.data.ValidationEvent
public class ValidationEvent
Signals that some event has occurred during the validation of a data object.
This event contains references to the context and particular field which were being validated. It also provides a validation result which can be used to distinguish between the possible resons for the event.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ValidationEvent(ComplexDataObject object,
ValidationResultEnum reason,
EventMessage message)
|
|
ValidationEvent(ComplexDataObject object,
ValidationResultEnum reason,
String message)
|
|
ValidationEvent(ComplexDataObject object,
ValidationResultEnum reason,
Throwable cause)
|
|
ValidationEvent(Object object,
DataComponent component,
ComplexDataObject context,
ValidationResultEnum reason)
|
|
ValidationEvent(Object object,
DataComponent component,
ComplexDataObject context,
ValidationResultEnum reason,
EventMessage message)
|
|
ValidationEvent(Object object,
DataComponent component,
ComplexDataObject context,
ValidationResultEnum reason,
String message)
|
|
ValidationEvent(Object object,
DataComponent component,
ComplexDataObject context,
ValidationResultEnum reason,
Throwable cause)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Throwable |
getCause()
|
DataComponent |
getComponent()
|
ComplexDataObject |
getContext()
Returns the containing object of the field which failed validation. |
String |
getFieldName()
Returns the name of the field which failed validation. |
String |
getMessage()
Returns the message. |
Object |
getObject()
|
ValidationResultEnum |
getValidationResult()
Returns the validation result. |
int |
hashCode()
|
boolean |
isSuccessful()
Return whether this event was created due to a successful validation. |
String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationEvent(ComplexDataObject object, ValidationResultEnum reason, EventMessage message)
public ValidationEvent(ComplexDataObject object, ValidationResultEnum reason, Throwable cause)
public ValidationEvent(Object object, DataComponent component, ComplexDataObject context, ValidationResultEnum reason)
public ValidationEvent(Object object, DataComponent component, ComplexDataObject context, ValidationResultEnum reason, EventMessage message)
public ValidationEvent(Object object, DataComponent component, ComplexDataObject context, ValidationResultEnum reason, Throwable cause)
public ValidationEvent(Object object, DataComponent component, ComplexDataObject context, ValidationResultEnum reason, String message)
public ValidationEvent(ComplexDataObject object, ValidationResultEnum reason, String message)
Method Detail |
---|
public boolean isSuccessful()
ValidationResultEnum.VALID
.public Object getObject()
public DataComponent getComponent()
public ComplexDataObject getContext()
public ValidationResultEnum getValidationResult()
public String getMessage()
public Throwable getCause()
public String getFieldName()
public String toString()
toString
in class EventObject
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |