public class ConstrainedField extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKind
constraints, groupConversions, isCascading, location, source, unwrapMode
Constructor and Description |
---|
ConstrainedField(ConfigurationSource source,
ConstraintLocation location,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentsConstraints,
Map<Class<?>,Class<?>> groupConversions,
boolean isCascading,
UnwrapMode unwrapMode)
Creates a new field meta data object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<MetaConstraint<?>> |
getTypeArgumentsConstraints() |
int |
hashCode() |
boolean |
isConstrained()
Whether this element is constrained or not.
|
getConstraints, getGroupConversions, getKind, getLocation, isCascading, iterator, toString, unwrapMode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ConstrainedField(ConfigurationSource source, ConstraintLocation location, 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 field.constraints
- The constraints of the represented field, if any.typeArgumentsConstraints
- Type arguments constraints, if any.groupConversions
- The group conversions of the represented field, if any.isCascading
- Whether a cascaded validation of the represented field shall
be performed or not.unwrapMode
- Determines how the value of the field must be handled in regards to
unwrapping prior to validation.public Set<MetaConstraint<?>> getTypeArgumentsConstraints()
public boolean isConstrained()
ConstrainedElement
isConstrained
in interface ConstrainedElement
isConstrained
in class AbstractConstrainedElement
True
, if this element is constrained,
false
otherwise.public int hashCode()
hashCode
in class AbstractConstrainedElement
public boolean equals(Object obj)
equals
in class AbstractConstrainedElement
Copyright © 2017 JBoss by Red Hat. All rights reserved.