org.granite.client.validation
Class ServerConstraintViolation

java.lang.Object
  extended by org.granite.client.validation.ServerConstraintViolation
All Implemented Interfaces:
ConstraintViolation<Object>

public class ServerConstraintViolation
extends Object
implements ConstraintViolation<Object>

Represents a constraint violation received from the server.

Author:
William DRAI

Nested Class Summary
 class ServerConstraintViolation.PathImpl
           
 
Constructor Summary
ServerConstraintViolation(InvalidValue invalidValue, Object rootBean, Object bean)
          Constructs a new ServerConstraintViolation instance.
 
Method Summary
 ConstraintDescriptor<?> getConstraintDescriptor()
           
 InvalidValue getInvalidValue()
           
 Object getLeafBean()
           
 String getMessage()
           
 String getMessageTemplate()
           
 Path getPropertyPath()
           
 Object getRootBean()
           
 Class<Object> getRootBeanClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConstraintViolation

public ServerConstraintViolation(InvalidValue invalidValue,
                                 Object rootBean,
                                 Object bean)
Constructs a new ServerConstraintViolation instance.

Parameters:
invalidValue - serialized server-side ConstraintViolation
rootBean - root bean
bean - leaf bean
Method Detail

getInvalidValue

public InvalidValue getInvalidValue()
Specified by:
getInvalidValue in interface ConstraintViolation<Object>

getRootBean

public Object getRootBean()
Specified by:
getRootBean in interface ConstraintViolation<Object>

getRootBeanClass

public Class<Object> getRootBeanClass()
Specified by:
getRootBeanClass in interface ConstraintViolation<Object>

getLeafBean

public Object getLeafBean()
Specified by:
getLeafBean in interface ConstraintViolation<Object>

getPropertyPath

public Path getPropertyPath()
Specified by:
getPropertyPath in interface ConstraintViolation<Object>

getMessage

public String getMessage()
Specified by:
getMessage in interface ConstraintViolation<Object>

getMessageTemplate

public String getMessageTemplate()
Specified by:
getMessageTemplate in interface ConstraintViolation<Object>

getConstraintDescriptor

public ConstraintDescriptor<?> getConstraintDescriptor()
Specified by:
getConstraintDescriptor in interface ConstraintViolation<Object>