public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKindconstraints, groupConversions, isCascading, location, requiresUnwrapping, source| Constructor and Description |
|---|
ConstrainedParameter(ConfigurationSource source,
ConstraintLocation location,
Type type,
int index,
String name) |
ConstrainedParameter(ConfigurationSource source,
ConstraintLocation location,
Type type,
int index,
String name,
Set<MetaConstraint<?>> constraints,
Map<Class<?>,Class<?>> groupConversions,
boolean isCascading,
boolean requiresUnwrapping)
Creates a new parameter meta data object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getIndex() |
String |
getName() |
Type |
getType() |
int |
hashCode() |
ConstrainedParameter |
merge(ConstrainedParameter other)
Creates a new constrained parameter object by merging this and the given
other parameter.
|
String |
toString() |
getConstraints, getGroupConversions, getKind, getLocation, isCascading, isConstrained, iterator, requiresUnwrappingpublic ConstrainedParameter(ConfigurationSource source, ConstraintLocation location, Type type, int index, String name)
public ConstrainedParameter(ConfigurationSource source, ConstraintLocation location, Type type, int index, String name, Set<MetaConstraint<?>> constraints, Map<Class<?>,Class<?>> groupConversions, boolean isCascading, boolean requiresUnwrapping)
source - The source of meta data.location - The location of the represented method parameter.name - The name of the represented parameter.constraints - The constraints of the represented method parameter, if
any.groupConversions - The group conversions of the represented method parameter, if any.isCascading - Whether a cascaded validation of the represented method
parameter shall be performed or not.requiresUnwrapping - Whether the value of the parameter must be unwrapped prior to validation or notpublic Type getType()
public String getName()
public int getIndex()
public ConstrainedParameter merge(ConstrainedParameter other)
other - The parameter to merge.public String toString()
toString in class AbstractConstrainedElementpublic int hashCode()
hashCode in class AbstractConstrainedElementpublic boolean equals(Object obj)
equals in class AbstractConstrainedElementCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.