|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.ElementDescriptorImpl
org.apache.bval.jsr303.extensions.ParameterDescriptorImpl
public class ParameterDescriptorImpl
Description: ParameterDescriptor implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
|---|
ElementDescriptor.ConstraintFinder |
| Field Summary |
|---|
| Fields inherited from class org.apache.bval.jsr303.ElementDescriptorImpl |
|---|
elementClass, metaBean |
| Constructor Summary | |
|---|---|
ParameterDescriptorImpl(Class<?> elementClass,
Validation[] validations)
Create a new ParameterDescriptorImpl instance. |
|
ParameterDescriptorImpl(MetaBean metaBean,
Validation[] validations)
Create a new ParameterDescriptorImpl instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.bval.jsr303.ElementDescriptorImpl |
|---|
findConstraints, getConstraintDescriptors, getConstraintDescriptors, getElementClass, getMetaBean, getMutableConstraintDescriptors, hasConstraints, setConstraintDescriptors |
| 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 |
| Constructor Detail |
|---|
public ParameterDescriptorImpl(MetaBean metaBean,
Validation[] validations)
metaBean - validations -
public ParameterDescriptorImpl(Class<?> elementClass,
Validation[] validations)
elementClass - validations - | Method Detail |
|---|
public boolean isCascaded()
@Valid annotation.
isCascaded in interface ParameterDescriptortrue if the annotation is present, false otherwise.public void setCascaded(boolean cascaded)
cascaded - public int getIndex()
getIndex in interface ParameterDescriptorpublic void setIndex(int index)
index -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||