org.hibernate.validator.internal.metadata.descriptor
Class ParameterDescriptorImpl

java.lang.Object
  extended by org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
      extended by org.hibernate.validator.internal.metadata.descriptor.ParameterDescriptorImpl
All Implemented Interfaces:
javax.validation.metadata.ElementDescriptor, ParameterDescriptor

public class ParameterDescriptorImpl
extends ElementDescriptorImpl
implements ParameterDescriptor

Describes a validated method parameter.

Author:
Gunnar Morling

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
javax.validation.metadata.ElementDescriptor.ConstraintFinder
 
Constructor Summary
ParameterDescriptorImpl(Class<?> type, int index, Set<ConstraintDescriptorImpl<?>> constraints, boolean isCascaded, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
           
 
Method Summary
 int getIndex()
          Returns this parameter's index within the parameter array of the method holding it.
 
Methods inherited from class org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
asDescriptors, findConstraints, getConstraintDescriptors, getElementClass, hasConstraints, isCascaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.validator.method.metadata.ParameterDescriptor
isCascaded
 
Methods inherited from interface javax.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
 

Constructor Detail

ParameterDescriptorImpl

public ParameterDescriptorImpl(Class<?> type,
                               int index,
                               Set<ConstraintDescriptorImpl<?>> constraints,
                               boolean isCascaded,
                               boolean defaultGroupSequenceRedefined,
                               List<Class<?>> defaultGroupSequence)
Method Detail

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 © 2012 Oracle Corporation. All Rights Reserved.