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<?>> directConstraints,
Set<MetaConstraint<?>> containerElementsConstraints,
boolean isCascading,
boolean isConstrained) |
Modifier and Type | Method and Description |
---|---|
protected Set<ContainerElementTypeDescriptor> |
asContainerElementTypeDescriptors(Set<MetaConstraint<?>> containerElementsConstraints,
CascadingMetaData cascadingMetaData,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence) |
protected Set<ConstraintDescriptorImpl<?>> |
asDescriptors(Set<MetaConstraint<?>> constraints) |
boolean |
equals(Object obj) |
Set<MetaConstraint<?>> |
getAllConstraints() |
Set<MetaConstraint<?>> |
getContainerElementsConstraints() |
Set<MetaConstraint<?>> |
getDirectConstraints() |
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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asDescriptor, getKind
forEach, spliterator
public AbstractConstraintMetaData(String name, Type type, Set<MetaConstraint<?>> directConstraints, Set<MetaConstraint<?>> containerElementsConstraints, boolean isCascading, boolean isConstrained)
public String getName()
ConstraintMetaData
getName
in interface ConstraintMetaData
public Type getType()
ConstraintMetaData
getType
in interface ConstraintMetaData
public Iterator<MetaConstraint<?>> iterator()
iterator
in interface Iterable<MetaConstraint<?>>
public Set<MetaConstraint<?>> getAllConstraints()
public Set<MetaConstraint<?>> getDirectConstraints()
public Set<MetaConstraint<?>> getContainerElementsConstraints()
public final boolean isCascading()
ConstraintMetaData
isCascading
in interface ConstraintMetaData
true
if this object is marked for cascaded validation, false
otherwise.public boolean isConstrained()
ConstraintMetaData
isConstrained
in interface ConstraintMetaData
true
if this object is marked for cascaded validation or has any constraints, false
otherwise.protected Set<ConstraintDescriptorImpl<?>> asDescriptors(Set<MetaConstraint<?>> constraints)
protected Set<ContainerElementTypeDescriptor> asContainerElementTypeDescriptors(Set<MetaConstraint<?>> containerElementsConstraints, CascadingMetaData cascadingMetaData, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
Copyright © 2021 JBoss by Red Hat. All rights reserved.