public abstract class AbstractConstrainedElement extends Object implements ConstrainedElement
ConstrainedElement
implementations.ConstrainedElement.ConstrainedElementKind
Modifier and Type | Field and Description |
---|---|
protected CascadingMetaDataBuilder |
cascadingMetaDataBuilder |
protected Set<MetaConstraint<?>> |
constraints |
protected ConfigurationSource |
source |
protected Set<MetaConstraint<?>> |
typeArgumentConstraints |
Constructor and Description |
---|
AbstractConstrainedElement(ConfigurationSource source,
ConstrainedElement.ConstrainedElementKind kind,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CascadingMetaDataBuilder |
getCascadingMetaDataBuilder()
Returns the cascading metadata (e.g.
|
Set<MetaConstraint<?>> |
getConstraints()
Returns a set containing the constraints specified for this constrained
element.
|
ConstrainedElement.ConstrainedElementKind |
getKind()
Returns the kind of this constrained element.
|
ConfigurationSource |
getSource()
Returns the configuration source contributing this constrained element.
|
Set<MetaConstraint<?>> |
getTypeArgumentConstraints()
Returns the type argument constraints of this element, if any.
|
int |
hashCode() |
boolean |
isConstrained()
Whether this element is constrained or not.
|
Iterator<MetaConstraint<?>> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected final ConfigurationSource source
protected final Set<MetaConstraint<?>> constraints
protected final CascadingMetaDataBuilder cascadingMetaDataBuilder
protected final Set<MetaConstraint<?>> typeArgumentConstraints
public AbstractConstrainedElement(ConfigurationSource source, ConstrainedElement.ConstrainedElementKind kind, Set<MetaConstraint<?>> constraints, Set<MetaConstraint<?>> typeArgumentConstraints, CascadingMetaDataBuilder cascadingMetaDataBuilder)
public ConstrainedElement.ConstrainedElementKind getKind()
ConstrainedElement
getKind
in interface ConstrainedElement
public Iterator<MetaConstraint<?>> iterator()
iterator
in interface Iterable<MetaConstraint<?>>
public Set<MetaConstraint<?>> getConstraints()
ConstrainedElement
getConstraints
in interface ConstrainedElement
null
.public Set<MetaConstraint<?>> getTypeArgumentConstraints()
ConstrainedElement
getTypeArgumentConstraints
in interface ConstrainedElement
public CascadingMetaDataBuilder getCascadingMetaDataBuilder()
ConstrainedElement
Valid
and ConvertGroup
) for the element and the potential
container elements.getCascadingMetaDataBuilder
in interface ConstrainedElement
public boolean isConstrained()
ConstrainedElement
isConstrained
in interface ConstrainedElement
True
, if this element is constrained,
false
otherwise.public ConfigurationSource getSource()
ConstrainedElement
getSource
in interface ConstrainedElement
Copyright © 2019 JBoss by Red Hat. All rights reserved.