public class ConstrainedField extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKindconstraints, 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, unwrapModeclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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()
ConstrainedElementisConstrained in interface ConstrainedElementisConstrained in class AbstractConstrainedElementTrue, if this element is constrained,
false otherwise.public int hashCode()
hashCode in class AbstractConstrainedElementpublic boolean equals(Object obj)
equals in class AbstractConstrainedElementCopyright © 2018 JBoss by Red Hat. All rights reserved.