|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bval.jsr303.ConstraintViolationImpl<T>
class ConstraintViolationImpl<T>
Description: Describe a constraint validation defect.
From rootBean and propertyPath, it is possible to rebuild the context of the failure
Constructor Summary | |
---|---|
ConstraintViolationImpl(String messageTemplate,
String message,
T rootBean,
Object leafBean,
Path propertyPath,
Object value,
ConstraintDescriptor<?> constraintDescriptor,
Class<T> rootBeanClass,
ElementType elementType)
Create a new ConstraintViolationImpl instance. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
NOTE: Needed to avoid duplication in the reported violations. |
ConstraintDescriptor<?> |
getConstraintDescriptor()
|
Object |
getInvalidValue()
|
Object |
getLeafBean()
|
String |
getMessage()
former name getInterpolatedMessage() |
String |
getMessageTemplate()
|
Path |
getPropertyPath()
|
T |
getRootBean()
|
Class<T> |
getRootBeanClass()
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstraintViolationImpl(String messageTemplate, String message, T rootBean, Object leafBean, Path propertyPath, Object value, ConstraintDescriptor<?> constraintDescriptor, Class<T> rootBeanClass, ElementType elementType)
messageTemplate
- - message reason (raw message)message
- - interpolated message (locale specific)rootBean
- leafBean
- propertyPath
- value
- constraintDescriptor
- rootBeanClass
- elementType
- Method Detail |
---|
public String getMessage()
getMessage
in interface ConstraintViolation<T>
public String getMessageTemplate()
getMessageTemplate
in interface ConstraintViolation<T>
public T getRootBean()
getRootBean
in interface ConstraintViolation<T>
public Class<T> getRootBeanClass()
getRootBeanClass
in interface ConstraintViolation<T>
public Object getLeafBean()
getLeafBean
in interface ConstraintViolation<T>
public Object getInvalidValue()
getInvalidValue
in interface ConstraintViolation<T>
public Path getPropertyPath()
getPropertyPath
in interface ConstraintViolation<T>
rootBean
Null if the value is the rootBean itselfpublic ConstraintDescriptor<?> getConstraintDescriptor()
getConstraintDescriptor
in interface ConstraintViolation<T>
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |