org.hibernate.validator.metadata
Class ParameterDescriptorImpl
java.lang.Object
org.hibernate.validator.metadata.ElementDescriptorImpl
org.hibernate.validator.metadata.ParameterDescriptorImpl
- All Implemented Interfaces:
- ElementDescriptor, ParameterDescriptor
public class ParameterDescriptorImpl
- extends ElementDescriptorImpl
- implements ParameterDescriptor
- Author:
- Gunnar Morling
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 |
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 © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved