public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKindconstraints, 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() |
boolean |
isConstrained()
Whether this element is constrained or not.
|
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, iterator, unwrapModeclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 boolean isConstrained()
ConstrainedElementisConstrained in interface ConstrainedElementisConstrained in class AbstractConstrainedElementTrue, if this element is constrained,
false otherwise.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 © 2018 JBoss by Red Hat. All rights reserved.