public class ParameterDescriptorImpl extends ElementDescriptorImpl implements ParameterDescriptor
ParameterDescriptor
implementation.elementClass, metaBean
Constructor and Description |
---|
ParameterDescriptorImpl(Class<?> elementClass,
Validation[] validations)
Create a new ParameterDescriptorImpl instance.
|
ParameterDescriptorImpl(MetaBean metaBean,
Validation[] validations)
Create a new ParameterDescriptorImpl instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Get the index of the referenced parameter.
|
boolean |
isCascaded()
Is the parameter marked by the
@Valid annotation. |
void |
setCascaded(boolean cascaded)
Set whether the referenced parameter descriptor should be validated.
|
void |
setIndex(int index)
Set the index of the referenced parameter.
|
findConstraints, getConstraintDescriptors, getConstraintDescriptors, getElementClass, getMetaBean, getMutableConstraintDescriptors, hasConstraints, setConstraintDescriptors
public ParameterDescriptorImpl(MetaBean metaBean, Validation[] validations)
metaBean
- validations
- public ParameterDescriptorImpl(Class<?> elementClass, Validation[] validations)
elementClass
- validations
- public boolean isCascaded()
@Valid
annotation.isCascaded
in interface ParameterDescriptor
true
if the annotation is present, false
otherwise.public void setCascaded(boolean cascaded)
cascaded
- public int getIndex()
getIndex
in interface ParameterDescriptor
public void setIndex(int index)
index
- Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.