|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.metadata.location.MethodConstraintLocation
public class MethodConstraintLocation
A ConstraintLocation implementation that represents a method
parameter or return value.
| Constructor Summary | |
|---|---|
MethodConstraintLocation(Method method)
|
|
MethodConstraintLocation(Method method,
int parameterIndex)
Creates a new MethodConstraintLocation. |
|
| Method Summary | |
|---|---|
Class<?> |
getBeanClass()
|
Method |
getMethod()
|
Integer |
getParameterIndex()
The parameter index of this constraint location or null if
this location represents a method return value. |
String |
toString()
|
Type |
typeOfAnnotatedElement()
Returns the type of the element at this constraint location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MethodConstraintLocation(Method method)
public MethodConstraintLocation(Method method,
int parameterIndex)
MethodConstraintLocation.
method - The method of the location to be created.parameterIndex - The parameter index of the location to be created.| Method Detail |
|---|
public Class<?> getBeanClass()
getBeanClass in interface ConstraintLocationpublic Type typeOfAnnotatedElement()
ConstraintLocation
typeOfAnnotatedElement in interface ConstraintLocationpublic Method getMethod()
public Integer getParameterIndex()
null if
this location represents a method return value.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||