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, waitforEach, spliteratorprotected 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()
ConstrainedElementgetKind in interface ConstrainedElementpublic Iterator<MetaConstraint<?>> iterator()
iterator in interface Iterable<MetaConstraint<?>>public Set<MetaConstraint<?>> getConstraints()
ConstrainedElementgetConstraints in interface ConstrainedElementnull.public Set<MetaConstraint<?>> getTypeArgumentConstraints()
ConstrainedElementgetTypeArgumentConstraints in interface ConstrainedElementpublic CascadingMetaDataBuilder getCascadingMetaDataBuilder()
ConstrainedElementValid and ConvertGroup) for the element and the potential
container elements.getCascadingMetaDataBuilder in interface ConstrainedElementpublic boolean isConstrained()
ConstrainedElementisConstrained in interface ConstrainedElementTrue, if this element is constrained,
false otherwise.public ConfigurationSource getSource()
ConstrainedElementgetSource in interface ConstrainedElementCopyright © 2019 JBoss by Red Hat. All rights reserved.