public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKind
constraints, groupConversions, isCascading, location, source
Constructor and Description |
---|
ConstrainedParameter(ConfigurationSource source,
ExecutableConstraintLocation location,
String name,
Set<MetaConstraint<?>> constraints,
Map<Class<?>,Class<?>> groupConversions,
boolean isCascading)
Creates a new parameter meta data object.
|
Modifier and Type | Method and Description |
---|---|
ExecutableConstraintLocation |
getLocation()
Returns the location of this constrained element.
|
String |
getParameterName() |
ConstrainedParameter |
merge(ConstrainedParameter other)
Creates a new constrained parameter object by merging this and the given
other parameter.
|
String |
toString() |
equals, getConstraints, getGroupConversions, getKind, hashCode, isCascading, isConstrained, iterator
public ConstrainedParameter(ConfigurationSource source, ExecutableConstraintLocation location, String name, Set<MetaConstraint<?>> constraints, Map<Class<?>,Class<?>> groupConversions, boolean isCascading)
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.public ExecutableConstraintLocation getLocation()
ConstrainedElement
getLocation
in interface ConstrainedElement
getLocation
in class AbstractConstrainedElement
public String getParameterName()
public ConstrainedParameter merge(ConstrainedParameter other)
other
- The parameter to merge.public String toString()
toString
in class AbstractConstrainedElement
Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved