|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData
public class ExecutableMetaData
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 ExecutableMetaData.Builder and adding all required
ConstrainedMethod objects to it. Instances are read-only after
creation.
Identity is solely based on the method's name and parameter types, hence sets and similar collections of this type may only be created in the scope of one Java type.
| Nested Class Summary | |
|---|---|
static class |
ExecutableMetaData.Builder
Creates new ExecutableMetaData instances. |
| Nested classes/interfaces inherited from interface org.hibernate.validator.internal.metadata.aggregated.ConstraintMetaData |
|---|
ConstraintMetaData.ConstraintMetaDataKind |
| Method Summary | |
|---|---|
javax.validation.metadata.ElementDescriptor |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the descriptor model. |
void |
assertCorrectnessOfMethodParameterConstraints()
Checks the parameter constraints of this method for correctness. |
boolean |
equals(Object obj)
|
List<ParameterMetaData> |
getAllParameterMetaData()
Returns meta data for all parameters of the represented method. |
String |
getIdentifier()
Returns an identifier for this meta data object, based on the represented method's names and its parameter types. |
ParameterMetaData |
getParameterMetaData(int parameterIndex)
Returns meta data for the specified parameter of the represented method. |
Class<?>[] |
getParameterTypes()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class org.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData |
|---|
asDescriptors, getConstraints, getKind, getName, getType, isCascading, isConstrained, iterator |
| 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 ParameterMetaData getParameterMetaData(int parameterIndex)
parameterIndex - the index of the parameter
null.public List<ParameterMetaData> getAllParameterMetaData()
null.public Class<?>[] getParameterTypes()
public String getIdentifier()
public javax.validation.metadata.ElementDescriptor asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
ConstraintMetaData
defaultGroupSequenceRedefined - Whether the bean hosting the represented element has a
redefined default group sequence or not.defaultGroupSequence - The default group sequence of the bean hosting the represented
element.
ElementDescriptor.public String toString()
toString in class AbstractConstraintMetaDatapublic int hashCode()
hashCode in class AbstractConstraintMetaDatapublic boolean equals(Object obj)
equals in class AbstractConstraintMetaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||