ConstraintFailurepublic class ConstraintFailure extends Object implements com.sun.enterprise.tools.common.validation.FailureConstraintFailure is a Validation failure Object.
It provides the following failure information; Constraint failed,
the value it failed for; the name of the value it failed for,
failure message and the generic failure message. |
Fields Summary |
---|
private String | constraintThe name of the failed Constraint . | private String | nameThe name of the value, the Constraint failed for. | private Object | valueThe value, the Constraint failed for. | private String | failureMessageThe failure message. | private String | genericFailureMessageThe generic failure message. |
Constructors Summary |
---|
public ConstraintFailure(String constraint, Object value, String name, String failureMessage, String genericFailureMessage)Creates a new instance of ConstraintFailure
this.constraint = constraint;
this.value = value;
this.failureMessage = failureMessage;
this.name = name;
this.genericFailureMessage = genericFailureMessage;
|
Methods Summary |
---|
public java.lang.String | failureMessage()Returns an failure message for this failure.
return failureMessage;
| public java.lang.String | getConstraint()Returns the failed Constraint this Object represents.
return constraint;
| public java.lang.Object | getFailedValue()Returns the value failed for the Constraint
represented by this Object.
return value;
| public java.lang.String | getGenericfailureMessage()Returns generic message for this failure.
return genericFailureMessage;
| public java.lang.String | getName()Returns the name of the value failed for the
Constraint represented by this Object.
return name;
|
|