public class ValidationError
Represents a validation error
| Constructor and Description |
|---|
ValidationError(java.lang.String property,
java.lang.Object value,
java.lang.String message,
ValidationConstraint constraint)
Represents a validation error
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
specifies the invalid property
|
java.lang.Object |
component2()
specifies the invalid value
|
java.lang.String |
component3()
specifies the internationalized message
|
ValidationConstraint |
component4()
specifies the violated constraint
|
ValidationError |
copy(java.lang.String property,
java.lang.Object value,
java.lang.String message,
ValidationConstraint constraint)
Represents a validation error
|
boolean |
equals(java.lang.Object p) |
ValidationConstraint |
getConstraint()
specifies the violated constraint
|
java.lang.String |
getMessage()
specifies the internationalized message
|
java.lang.String |
getProperty()
specifies the invalid property
|
java.lang.Object |
getValue()
specifies the invalid value
|
int |
hashCode() |
java.lang.String |
toString() |
public ValidationError(java.lang.String property,
java.lang.Object value,
java.lang.String message,
ValidationConstraint constraint)
Represents a validation error
property - specifies the invalid propertyvalue - specifies the invalid valuemessage - specifies the internationalized messageconstraint - specifies the violated constraintpublic java.lang.String getProperty()
specifies the invalid property
public java.lang.Object getValue()
specifies the invalid value
public java.lang.String getMessage()
specifies the internationalized message
public ValidationConstraint getConstraint()
specifies the violated constraint
class ValidationConstraintpublic java.lang.String component1()
specifies the invalid property
public java.lang.Object component2()
specifies the invalid value
public java.lang.String component3()
specifies the internationalized message
public ValidationConstraint component4()
specifies the violated constraint
class ValidationConstraintpublic ValidationError copy(java.lang.String property, java.lang.Object value, java.lang.String message, ValidationConstraint constraint)
Represents a validation error
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)