|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.metadata.AggregatedMethodMetaData
public class AggregatedMethodMetaData
An aggregated view of the constraint related meta data for a given method and all the methods in the inheritance hierarchy which it overrides or implements.
Instances are retrieved by creating a AggregatedMethodMetaData.Builder and adding all required
MethodMetaData objects to it. Instances are read-only after creation.
| Nested Class Summary | |
|---|---|
static class |
AggregatedMethodMetaData.Builder
Creates new AggregatedMethodMetaData instances. |
| Method Summary | |
|---|---|
void |
assertCorrectnessOfMethodParameterConstraints()
Checks the parameter constraints of this method for correctness. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Iterable<MethodMetaData> |
getAllMethodMetaData()
|
java.util.List<ParameterMetaData> |
getAllParameterMetaData()
Returns meta data for all parameters of the represented method. |
java.lang.reflect.Method |
getMethod()
|
ParameterMetaData |
getParameterMetaData(int parameterIndex)
Returns meta data for the specified parameter of the represented method. |
MethodMetaData |
getSingleMetaDataFor(java.lang.reflect.Method method)
Returns a single method meta data from this aggregation. |
int |
hashCode()
|
boolean |
isCascading()
Whether a cascaded validation of the return value of the represented method shall be performed or not. |
boolean |
isConstrained()
Whether the represented method itself or any of the method's up in the inheritance hierarchy which it overrides/implements is constrained. |
java.util.Iterator<MethodMetaConstraint<?>> |
iterator()
An iterator with the return value constraints of the represented method. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void assertCorrectnessOfMethodParameterConstraints()
throws javax.validation.ConstraintDeclarationException
Checks the parameter constraints of this method for correctness.
The following rules apply for this check:
javax.validation.ConstraintDeclarationException - In case the represented method has an illegal parameter
constraint.public java.lang.reflect.Method getMethod()
public ParameterMetaData getParameterMetaData(int parameterIndex)
null.public java.util.List<ParameterMetaData> getAllParameterMetaData()
null.public boolean isCascading()
Valid or any of the method's up in the
inheritance hierarchy which it overrides.
True, if a cascaded return value validation shall be
performed, false otherwise.public boolean isConstrained()
True, if this method is constrained by any means,
false otherwise.public MethodMetaData getSingleMetaDataFor(java.lang.reflect.Method method)
method - The method to retrieve the meta data for. Must either be the
method represented by this meta data object or one method from
a super-type, which the method represented by this meta data
object overrides/implements.
public java.lang.Iterable<MethodMetaData> getAllMethodMetaData()
public java.util.Iterator<MethodMetaConstraint<?>> iterator()
iterator in interface java.lang.Iterable<MethodMetaConstraint<?>>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||