org.hibernate.validator.engine
Class ConstraintViolationImpl<T>
java.lang.Object
org.hibernate.validator.engine.ConstraintViolationImpl<T>
- All Implemented Interfaces:
- java.io.Serializable, javax.validation.ConstraintViolation<T>
public class ConstraintViolationImpl<T>
- extends java.lang.Object
- implements javax.validation.ConstraintViolation<T>, java.io.Serializable
- Author:
- Emmanuel Bernard, Hardy Ferentschik
- See Also:
- Serialized Form
|
Constructor Summary |
ConstraintViolationImpl(java.lang.String messageTemplate,
java.lang.String interpolatedMessage,
java.lang.Class<T> rootBeanClass,
T rootBean,
java.lang.Object leafBeanInstance,
java.lang.Object value,
javax.validation.Path propertyPath,
javax.validation.metadata.ConstraintDescriptor constraintDescriptor,
java.lang.annotation.ElementType elementType)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ConstraintViolationImpl
public ConstraintViolationImpl(java.lang.String messageTemplate,
java.lang.String interpolatedMessage,
java.lang.Class<T> rootBeanClass,
T rootBean,
java.lang.Object leafBeanInstance,
java.lang.Object value,
javax.validation.Path propertyPath,
javax.validation.metadata.ConstraintDescriptor constraintDescriptor,
java.lang.annotation.ElementType elementType)
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage in interface javax.validation.ConstraintViolation<T>
getMessageTemplate
public java.lang.String getMessageTemplate()
- Specified by:
getMessageTemplate in interface javax.validation.ConstraintViolation<T>
getRootBean
public T getRootBean()
- Specified by:
getRootBean in interface javax.validation.ConstraintViolation<T>
getRootBeanClass
public java.lang.Class<T> getRootBeanClass()
- Specified by:
getRootBeanClass in interface javax.validation.ConstraintViolation<T>
getLeafBean
public java.lang.Object getLeafBean()
- Specified by:
getLeafBean in interface javax.validation.ConstraintViolation<T>
getInvalidValue
public java.lang.Object getInvalidValue()
- Specified by:
getInvalidValue in interface javax.validation.ConstraintViolation<T>
getPropertyPath
public javax.validation.Path getPropertyPath()
- Specified by:
getPropertyPath in interface javax.validation.ConstraintViolation<T>
getConstraintDescriptor
public javax.validation.metadata.ConstraintDescriptor getConstraintDescriptor()
- Specified by:
getConstraintDescriptor in interface javax.validation.ConstraintViolation<T>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2007-2010. All Rights Reserved.