public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKind
constraints, groupConversions, isCascading, location, source, unwrapMode
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,
Set<MetaConstraint<?>> typeArgumentsConstraints,
Map<Class<?>,Class<?>> groupConversions,
boolean isCascading,
UnwrapMode unwrapMode)
Creates a new parameter meta data object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getIndex() |
String |
getName() |
Type |
getType() |
Set<MetaConstraint<?>> |
getTypeArgumentsConstraints() |
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, unwrapMode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
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, Set<MetaConstraint<?>> typeArgumentsConstraints, Map<Class<?>,Class<?>> groupConversions, boolean isCascading, UnwrapMode unwrapMode)
source
- The source of meta data.location
- The location of the represented method parameter.type
- the parameter typeindex
- the index of the parametername
- The name of the represented parameter.constraints
- The constraints of the represented method parameter, if
any.typeArgumentsConstraints
- Type arguments constraints, 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.unwrapMode
- Determines how the value of the parameter must be handled in regards to
unwrapping prior to validation.public Type getType()
public String getName()
public int getIndex()
public Set<MetaConstraint<?>> getTypeArgumentsConstraints()
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 © 2016 JBoss by Red Hat. All rights reserved.