public interface MethodConstraintViolation<T> extends ConstraintViolation<T>
MethodValidator| Modifier and Type | Interface and Description |
|---|---|
static class |
MethodConstraintViolation.Kind
The kind of a
MethodConstraintViolation. |
| Modifier and Type | Method and Description |
|---|---|
MethodConstraintViolation.Kind |
getKind()
Returns the kind of this method constraint violation.
|
Method |
getMethod()
Returns the method during which's validation this constraint violation
occurred.
|
Integer |
getParameterIndex()
Returns the index of the parameter holding the constraint which caused
this constraint violation.
|
String |
getParameterName()
Returns the name of the parameter holding the constraint which caused
this constraint violation.
|
getConstraintDescriptor, getInvalidValue, getLeafBean, getMessage, getMessageTemplate, getPropertyPath, getRootBean, getRootBeanClassMethod getMethod()
Integer getParameterIndex()
MethodConstraintViolation.Kind.PARAMETER.String getParameterName()
Returns the name of the parameter holding the constraint which caused this constraint violation.
Currently a synthetic name following the form "arg" + index
will be returned, e.g. "arg0". In future versions it might
be possible to specify real parameter names, e.g. using an
annotation-based approach around javax.inject.Named.
MethodConstraintViolation.Kind.PARAMETER.MethodConstraintViolation.Kind getKind()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.