com.google.gwt.validation.client
Class InvalidConstraint<T>

java.lang.Object
  extended by com.google.gwt.validation.client.InvalidConstraint<T>
All Implemented Interfaces:
IInvalidConstraint<T>

public class InvalidConstraint<T>
extends java.lang.Object
implements IInvalidConstraint<T>

This class is for denoting instances where a particular object has failed the validation. These are generated by the validator as part of the validation process.

Author:
chris

Constructor Summary
InvalidConstraint(java.lang.String itemName, java.lang.String message)
           
 
Method Summary
 T getInvalidObject()
          Root bean being validated
 java.lang.String getItemName()
           
 java.lang.String getMessage()
          Error message
 java.lang.String getPropertyPath()
          the property path to the value from rootBean Null if the value is the rootBean itself
 java.lang.Object getValue()
          The value failing to pass the constraint
 void setInvalidObject(T rootObject)
           
 void setItemName(java.lang.String itemName)
           
 void setMessage(java.lang.String message)
           
 void setPropertyPath(java.lang.String propertyPath)
           
 void setValue(java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidConstraint

public InvalidConstraint(java.lang.String itemName,
                         java.lang.String message)
Method Detail

getItemName

public java.lang.String getItemName()

setItemName

public void setItemName(java.lang.String itemName)

getMessage

public java.lang.String getMessage()
Description copied from interface: IInvalidConstraint
Error message

Specified by:
getMessage in interface IInvalidConstraint<T>

setMessage

public void setMessage(java.lang.String message)

setInvalidObject

public void setInvalidObject(T rootObject)

setValue

public void setValue(java.lang.Object value)

setPropertyPath

public void setPropertyPath(java.lang.String propertyPath)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getInvalidObject

public T getInvalidObject()
Description copied from interface: IInvalidConstraint
Root bean being validated

Specified by:
getInvalidObject in interface IInvalidConstraint<T>

getPropertyPath

public java.lang.String getPropertyPath()
Description copied from interface: IInvalidConstraint
the property path to the value from rootBean Null if the value is the rootBean itself

Specified by:
getPropertyPath in interface IInvalidConstraint<T>

getValue

public java.lang.Object getValue()
Description copied from interface: IInvalidConstraint
The value failing to pass the constraint

Specified by:
getValue in interface IInvalidConstraint<T>