org.hibernate.validator.internal.engine
Class ConstraintViolationImpl<T>
java.lang.Object
org.hibernate.validator.internal.engine.ConstraintViolationImpl<T>
- All Implemented Interfaces:
- Serializable, javax.validation.ConstraintViolation<T>
public class ConstraintViolationImpl<T>
- extends Object
- implements javax.validation.ConstraintViolation<T>, Serializable
- Author:
- Emmanuel Bernard, Hardy Ferentschik
- See Also:
- Serialized Form
ConstraintViolationImpl
public ConstraintViolationImpl(String messageTemplate,
String interpolatedMessage,
Class<T> rootBeanClass,
T rootBean,
Object leafBeanInstance,
Object value,
javax.validation.Path propertyPath,
javax.validation.metadata.ConstraintDescriptor<?> constraintDescriptor,
ElementType elementType)
getMessage
public final String getMessage()
- Specified by:
getMessage in interface javax.validation.ConstraintViolation<T>
getMessageTemplate
public final String getMessageTemplate()
- Specified by:
getMessageTemplate in interface javax.validation.ConstraintViolation<T>
getRootBean
public final T getRootBean()
- Specified by:
getRootBean in interface javax.validation.ConstraintViolation<T>
getRootBeanClass
public final Class<T> getRootBeanClass()
- Specified by:
getRootBeanClass in interface javax.validation.ConstraintViolation<T>
getLeafBean
public final Object getLeafBean()
- Specified by:
getLeafBean in interface javax.validation.ConstraintViolation<T>
getInvalidValue
public final Object getInvalidValue()
- Specified by:
getInvalidValue in interface javax.validation.ConstraintViolation<T>
getPropertyPath
public final javax.validation.Path getPropertyPath()
- Specified by:
getPropertyPath in interface javax.validation.ConstraintViolation<T>
getConstraintDescriptor
public final javax.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
- Specified by:
getConstraintDescriptor in interface javax.validation.ConstraintViolation<T>
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.