FileDocCategorySizeDatePackage
ConstraintFailure.javaAPI DocGlassfish v2 API4278Fri May 04 22:34:58 BST 2007com.sun.enterprise.tools.common.validation.constraints

ConstraintFailure

public class ConstraintFailure extends Object implements com.sun.enterprise.tools.common.validation.Failure
ConstraintFailure 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.
author
Rajeshwar Patil
version
%I%, %G%

Fields Summary
private String
constraint
The name of the failed Constraint.
private String
name
The name of the value, the Constraint failed for.
private Object
value
The value, the Constraint failed for.
private String
failureMessage
The failure message.
private String
genericFailureMessage
The 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.StringfailureMessage()
Returns an failure message for this failure.

        return failureMessage;
    
public java.lang.StringgetConstraint()
Returns the failed Constraint this Object represents.

        return constraint;
    
public java.lang.ObjectgetFailedValue()
Returns the value failed for the Constraint represented by this Object.

        return value;
    
public java.lang.StringgetGenericfailureMessage()
Returns generic message for this failure.

        return genericFailureMessage;
    
public java.lang.StringgetName()
Returns the name of the value failed for the Constraint represented by this Object.

        return name;