|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.validation.ValidationState
public class ValidationState
The ValidationState
is the result of a call to
ValidationRule.validate()
and indicates that this rule has found some
invalid state. It contains a human readable text message which usually is
reported to the application user.
Constructor Summary | |
---|---|
ValidationState(java.lang.String message)
Constructs a new instance with the given message. |
Method Summary | |
---|---|
static ValidationState |
create(java.lang.String message)
Factory-method for creating a ValidationState from the specified
message or null if the message is null . |
boolean |
equals(java.lang.Object other)
Returns true when this instance is equal to the given
object. |
java.lang.String |
getMessage()
Returns the message for this instance. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationState(java.lang.String message) throws java.lang.IllegalArgumentException
message
- the message text of this ValidationState
java.lang.IllegalArgumentException
- when message is null
Method Detail |
---|
public static ValidationState create(java.lang.String message)
ValidationState
from the specified
message or null
if the message is null
.
message
- String
ValidationState
if message
is not
null
, otherwise returns null
public java.lang.String getMessage()
public boolean equals(java.lang.Object other)
true
when this instance is equal to the given
object.
equals
in class java.lang.Object
other
- Object to compare this
instance to
true
if this instance and the given object
are equal, else false
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |