public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKind
Constructor and Description |
---|
ConstrainedParameter(ConfigurationSource source,
MethodConstraintLocation location,
String name,
Set<MetaConstraint<?>> constraints,
boolean isCascading)
Creates a new parameter meta data object.
|
Modifier and Type | Method and Description |
---|---|
MethodConstraintLocation |
getLocation()
Returns the location of this constrained element.
|
String |
getParameterName() |
String |
toString() |
equals, getConstraints, getKind, getSource, hashCode, isCascading, isConstrained, iterator
public ConstrainedParameter(ConfigurationSource source, MethodConstraintLocation location, String name, Set<MetaConstraint<?>> constraints, 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.isCascading
- Whether a cascaded validation of the represented method
parameter shall be performed or not.public MethodConstraintLocation getLocation()
ConstrainedElement
getLocation
in interface ConstrainedElement
getLocation
in class AbstractConstrainedElement
public String getParameterName()
public String toString()
toString
in class AbstractConstrainedElement
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved