|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutableDescriptor
Provides the common functionality of MethodDescriptor and
ConstructorDescriptor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
|---|
ElementDescriptor.ConstraintFinder |
| Method Summary | |
|---|---|
ElementDescriptor.ConstraintFinder |
findConstraints()
Returns a finder that will always return an empty Set. |
Set<ConstraintDescriptor<?>> |
getConstraintDescriptors()
Returns an empty Set. |
CrossParameterDescriptor |
getCrossParameterDescriptor()
Returns a descriptor containing the cross-parameter constraints of this executable. |
String |
getName()
Returns the method name in case this descriptor represents a method or the non-qualified name of the declaring class in case this descriptor represents a constructor. |
List<ParameterDescriptor> |
getParameterDescriptors()
Returns a list of descriptors representing this executable's parameters, in the order of their declaration, including synthetic parameters. |
ReturnValueDescriptor |
getReturnValueDescriptor()
Returns a descriptor for this executable's return value. |
boolean |
hasConstrainedParameters()
Returns true if the executable parameters are constrained either:
because of a constraint on at least one of the parameters
because of a cascade on at least one of the parameters (via
Valid)
because of at least one cross-parameter constraint
Also returns false if there is no parameter. |
boolean |
hasConstrainedReturnValue()
Returns true if the executable return value is constrained
either:
because of a constraint on the return value
because validation is cascaded on the return value (via
Valid)
Also returns false if there is no return value. |
boolean |
hasConstraints()
Returns false. |
| Methods inherited from interface javax.validation.metadata.ElementDescriptor |
|---|
getElementClass |
| Method Detail |
|---|
String getName()
List<ParameterDescriptor> getParameterDescriptors()
nullCrossParameterDescriptor getCrossParameterDescriptor()
ReturnValueDescriptor getReturnValueDescriptor()
void. This descriptor will have no constraint
associated.
boolean hasConstrainedParameters()
true if the executable parameters are constrained either:
Valid)false if there is no parameter.
true if the executable parameters are constrainedboolean hasConstrainedReturnValue()
true if the executable return value is constrained
either:
Valid)false if there is no return value.
true if the executable return value is constrainedboolean hasConstraints()
false.
An executable per se does not host constraints, use
getParameterDescriptors(), getCrossParameterDescriptor()
and getReturnValueDescriptor() to discover constraints.
hasConstraints in interface ElementDescriptorfalseSet<ConstraintDescriptor<?>> getConstraintDescriptors()
Set.
An executable per se does not host constraints, use
getParameterDescriptors(), getCrossParameterDescriptor()
and getReturnValueDescriptor() to discover constraints.
getConstraintDescriptors in interface ElementDescriptorSetElementDescriptor.ConstraintFinder findConstraints()
Set.
An executable per se does not host constraints, use
getParameterDescriptors(), getCrossParameterDescriptor()
and getReturnValueDescriptor() to discover constraints.
findConstraints in interface ElementDescriptorConstraintFinder object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||