| Modifier and Type | Field and Description |
|---|---|
| private final Callable | |
| private final Set | |
| private final boolean | |
| private static final Log | |
| private final List | parameterMetaData
Constrained-related meta data for this executable's parameters. |
| Access | Constructor and Description |
|---|---|
| public | ConstrainedExecutable(ConfigurationSource
The source of meta data. source, Callable The represented executable. callable, Set<MetaConstraint<?>> Type arguments constraints, if any. returnValueConstraints, Set<MetaConstraint<?>> The type argument constraints on the return value of the represented executable,
if any. typeArgumentConstraints, CascadingMetaDataBuilder The cascaded validation metadata for this element and its container elements. cascadingMetaDataBuilder)Creates a new executable meta data object for a parameter-less executable. |
| public | ConstrainedExecutable(ConfigurationSource
The source of meta data. source, Callable The represented executable. callable, List<ConstrainedParameter> A list with parameter meta data. The length must correspond with the number of
parameters of the represented executable. So this list may be empty (in case of a parameterless executable), but
never parameterMetaData, Set<MetaConstraint<?>> null.the cross parameter constraints crossParameterConstraints, Set<MetaConstraint<?>> The return value constraints of the represented executable, if any. returnValueConstraints, Set<MetaConstraint<?>> The type argument constraints on the return value of the represented executable,
if any. typeArgumentConstraints, CascadingMetaDataBuilder The cascaded validation metadata for this element and its container elements. cascadingMetaDataBuilder)Creates a new executable meta data object. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides org. |
| public List | Returns: A list with parameter meta data. The length corresponds to the number of parameters of the executable represented by this meta data object, so an empty list may be returned (in case of a parameterless executable), but nevernull.Returns meta data for all parameters of the represented executable. |
| public Callable | |
| public Set | |
| private Set | |
| public ConstrainedParameter | Returns: Meta data for the specified parameter. Will never benull.The index in this executable's parameter array of the parameter of
interest. parameterIndex)Constraint meta data for the specified parameter. |
| public int | hashCode()
Overrides org. |
| public boolean | Returns: True, if this executable is parameter-constrained by any
means, false otherwise.Whether this executable has at least one cascaded parameter or at least one parameter with constraints or at least one cross-parameter constraint. |
| private boolean | |
| public boolean | Returns: True if this executable is constrained by any means,
false otherwise.Overrides org. Implements org. |
| public boolean | Returns: True if this and the other executable have the same parameter constraints (including cross- parameter constraints and parameter cascades), false otherwise.The other executable to check. other)Whether this and the given other executable have the same parameter constraints. |
| public ConstrainedExecutable | Returns: A merged executable.The executable to merge. other)Creates a new constrained executable object by merging this and the given other executable. |
| public String | toString()
Overrides org. |
| callable | back to summary |
|---|---|
| private final Callable callable | |
| crossParameterConstraints | back to summary |
|---|---|
| private final Set<MetaConstraint<?>> crossParameterConstraints
| |
| hasParameterConstraints | back to summary |
|---|---|
| private final boolean hasParameterConstraints | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| parameterMetaData | back to summary |
|---|---|
| private final List<ConstrainedParameter> parameterMetaData Constrained-related meta data for this executable's parameters. | |
| ConstrainedExecutable | back to summary |
|---|---|
| public ConstrainedExecutable(ConfigurationSource source, Callable callable, Set<MetaConstraint<?>> returnValueConstraints, Set<MetaConstraint<?>> typeArgumentConstraints, CascadingMetaDataBuilder cascadingMetaDataBuilder) Creates a new executable meta data object for a parameter-less executable.
| |
| ConstrainedExecutable | back to summary |
|---|---|
| public ConstrainedExecutable(ConfigurationSource source, Callable callable, List<ConstrainedParameter> parameterMetaData, Set<MetaConstraint<?>> crossParameterConstraints, Set<MetaConstraint<?>> returnValueConstraints, Set<MetaConstraint<?>> typeArgumentConstraints, CascadingMetaDataBuilder cascadingMetaDataBuilder) Creates a new executable meta data object.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAllParameterMetaData | back to summary |
|---|---|
| public List Returns meta data for all parameters of the represented executable.
| |
| getCallable | back to summary |
|---|---|
| public Callable getCallable() | |
| getCrossParameterConstraints | back to summary |
|---|---|
| public Set | |
| getDescriptors | back to summary |
|---|---|
| private Set | |
| getParameterMetaData | back to summary |
|---|---|
| public ConstrainedParameter getParameterMetaData(int parameterIndex) Constraint meta data for the specified parameter.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasParameterConstraints | back to summary |
|---|---|
| public boolean hasParameterConstraints() Whether this executable has at least one cascaded parameter or at least one parameter with constraints or at least one cross-parameter constraint.
| |
| hasParameterConstraints | back to summary |
|---|---|
| private boolean hasParameterConstraints(List<ConstrainedParameter> parameterMetaData) | |
| isConstrained | back to summary |
|---|---|
| public boolean isConstrained() Overrides org. Implements org. Whether the represented executable is constrained or not. This is the case if it has at least one constrained parameter, at least one parameter marked for cascaded validation, at least one cross-parameter constraint, at least one return value constraint or if the return value is marked for cascaded validation.
| |
| isEquallyParameterConstrained | back to summary |
|---|---|
| public boolean isEquallyParameterConstrained(ConstrainedExecutable other) Whether this and the given other executable have the same parameter constraints.
| |
| merge | back to summary |
|---|---|
| public ConstrainedExecutable merge(ConstrainedExecutable other) Creates a new constrained executable object by merging this and the given other executable. Both executables must have the same location, i.e. represent the same executable on the same type.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |