org.hibernate.validator.metadata
Class ParameterDescriptorImpl
java.lang.Object
org.hibernate.validator.metadata.ElementDescriptorImpl
org.hibernate.validator.metadata.ParameterDescriptorImpl
- All Implemented Interfaces:
- javax.validation.metadata.ElementDescriptor, ParameterDescriptor
public class ParameterDescriptorImpl
- extends ElementDescriptorImpl
- implements ParameterDescriptor
- Author:
- Gunnar Morling
| Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
javax.validation.metadata.ElementDescriptor.ConstraintFinder |
|
Method Summary |
int |
getIndex()
Returns this parameter's index within the parameter array of the
method holding it. |
boolean |
isCascaded()
Whether cascaded validation for this parameter shall be
performed or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.validation.metadata.ElementDescriptor |
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints |
ParameterDescriptorImpl
public ParameterDescriptorImpl(BeanMetaData<?> metaDataBean,
ParameterMetaData parameterMetaData)
isCascaded
public boolean isCascaded()
- Description copied from interface:
ParameterDescriptor
- Whether cascaded validation for this parameter shall be
performed or not. This is the case if this parameter is annotated with the
Valid annotation either locally or in the inheritance hierarchy.
- Specified by:
isCascaded in interface ParameterDescriptor
- Returns:
True, if this parameter shall be
validated recursively, false otherwise.
getIndex
public int getIndex()
- Description copied from interface:
ParameterDescriptor
- Returns this parameter's index within the parameter array of the
method holding it.
- Specified by:
getIndex in interface ParameterDescriptor
- Returns:
- This parameter's index.
Copyright © 2011 Oracle Corporation. All Rights Reserved.