org.hibernate.validator.engine
Class ConstraintViolationImpl<T>
java.lang.Object
org.hibernate.validator.engine.ConstraintViolationImpl<T>
- All Implemented Interfaces:
- Serializable, ConstraintViolation<T>
- Direct Known Subclasses:
- MethodConstraintViolationImpl
public class ConstraintViolationImpl<T>
- extends Object
- implements 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,
Path propertyPath,
ConstraintDescriptor<?> constraintDescriptor,
ElementType elementType)
getMessage
public final String getMessage()
- Specified by:
getMessage
in interface ConstraintViolation<T>
getMessageTemplate
public final String getMessageTemplate()
- Specified by:
getMessageTemplate
in interface ConstraintViolation<T>
getRootBean
public final T getRootBean()
- Specified by:
getRootBean
in interface ConstraintViolation<T>
getRootBeanClass
public final Class<T> getRootBeanClass()
- Specified by:
getRootBeanClass
in interface ConstraintViolation<T>
getLeafBean
public final Object getLeafBean()
- Specified by:
getLeafBean
in interface ConstraintViolation<T>
getInvalidValue
public final Object getInvalidValue()
- Specified by:
getInvalidValue
in interface ConstraintViolation<T>
getPropertyPath
public final Path getPropertyPath()
- Specified by:
getPropertyPath
in interface ConstraintViolation<T>
getConstraintDescriptor
public final ConstraintDescriptor<?> getConstraintDescriptor()
- Specified by:
getConstraintDescriptor
in interface 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 © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved