public interface ConstructorDescriptor extends ElementDescriptor
ElementDescriptor.ConstraintFinder, ElementDescriptor.Kind
Modifier and Type | Method and Description |
---|---|
boolean |
areParametersConstrained()
Returns
true if the constructor 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. |
List<ParameterDescriptor> |
getParameterDescriptors()
Returns a list with descriptors for this constructor parameters.
|
ReturnValueDescriptor |
getReturnValueDescriptor()
Returns a descriptor for this constructor's return value.
|
boolean |
isReturnValueConstrained()
Returns
true if the constructor 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. |
as, findConstraints, getConstraintDescriptors, getElementClass, getKind, hasConstraints
List<ParameterDescriptor> getParameterDescriptors()
Returns a list with descriptors for this constructor parameters. The size of this list corresponds to the number of this constructor parameters.
null
.ReturnValueDescriptor getReturnValueDescriptor()
boolean areParametersConstrained()
true
if the constructor parameters are constrained either:
@Valid
)false
if there is no parameter.boolean isReturnValueConstrained()
true
if the constructor return value is constrained either:
@Valid
)false
if there is no return value.Copyright © 2007-2012. All Rights Reserved.