public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKind
constraints, 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, requiresUnwrapping
public 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 AbstractConstrainedElement
public int hashCode()
hashCode
in class AbstractConstrainedElement
public boolean equals(Object obj)
equals
in class AbstractConstrainedElement
Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved