public abstract class AbstractConstraintMetaData extends Object implements ConstraintMetaData
ConstraintMetaData with attributes common
to all type of meta data.| Constructor and Description |
|---|
AbstractConstraintMetaData(String name,
Type type,
Set<MetaConstraint<?>> constraints,
ElementKind constrainedMetaDataKind,
boolean isCascading,
boolean isConstrained,
UnwrapMode unwrapMode) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<ConstraintDescriptorImpl<?>> |
asDescriptors(Set<MetaConstraint<?>> constraints) |
boolean |
equals(Object obj) |
Set<MetaConstraint<?>> |
getConstraints() |
ElementKind |
getKind()
Returns the
kind of this meta data object. |
String |
getName()
Returns the name of this meta data object.
|
Type |
getType()
Returns the data type of this meta data object, e.g.
|
int |
hashCode() |
boolean |
isCascading()
Whether this meta data object is marked for cascaded validation or not.
|
boolean |
isConstrained()
Whether this meta data object is constrained by any means or not.
|
Iterator<MetaConstraint<?>> |
iterator() |
String |
toString() |
UnwrapMode |
unwrapMode()
Defines how the validated values needs to be treated in case there is a potential unrapper specified for its type
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasDescriptorforEach, spliteratorpublic AbstractConstraintMetaData(String name, Type type, Set<MetaConstraint<?>> constraints, ElementKind constrainedMetaDataKind, boolean isCascading, boolean isConstrained, UnwrapMode unwrapMode)
public String getName()
ConstraintMetaDatagetName in interface ConstraintMetaDatapublic Type getType()
ConstraintMetaDatagetType in interface ConstraintMetaDatapublic Iterator<MetaConstraint<?>> iterator()
iterator in interface Iterable<MetaConstraint<?>>public Set<MetaConstraint<?>> getConstraints()
public ElementKind getKind()
ConstraintMetaDatakind of this meta data object.getKind in interface ConstraintMetaDatakind of this meta data object.public final boolean isCascading()
ConstraintMetaDataisCascading in interface ConstraintMetaDatatrueif this object is marked for cascaded validation, false otherwise.public boolean isConstrained()
ConstraintMetaDataisConstrained in interface ConstraintMetaDatatrue if this object is marked for cascaded validation or has any constraints, false otherwise.public UnwrapMode unwrapMode()
ConstraintMetaDataunwrapMode in interface ConstraintMetaDataValidatedValueUnwrapMode to be used for this constraint.protected Set<ConstraintDescriptorImpl<?>> asDescriptors(Set<MetaConstraint<?>> constraints)
Copyright © 2018 JBoss by Red Hat. All rights reserved.