public interface Constraint extends PackageableElement
The following features are supported:
UMLPackage.getConstraint()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ValueSpecification |
createSpecification(String name,
Type type,
EClass eClass)
Creates a new
ValueSpecification , with the specified 'Name', and 'Type',
and sets the 'Specification' containment reference |
MDWEList<Element> |
getConstrainedElements()
Returns the value of the 'Constrained Element' reference list.
|
Namespace |
getContext()
Returns the value of the 'Context' container reference.
|
ValueSpecification |
getSpecification()
Returns the value of the 'Specification' containment reference
|
void |
setContext(Namespace value)
Sets the value of the '
Context ' container reference |
void |
setSpecification(ValueSpecification value)
Sets the value of the '
Specification ' containment reference |
boolean |
validateBooleanValue(DiagnosticChain diagnostics,
Map context)
The value specification for a constraint must evaluate to a Boolean value.
|
boolean |
validateNoSideEffects(DiagnosticChain diagnostics,
Map context)
Evaluating the value specification for a constraint must not have side effects.
|
boolean |
validateNotAppliedToSelf(DiagnosticChain diagnostics,
Map context)
A constraint cannot be applied to itself.
|
boolean |
validateNotApplyToSelf(DiagnosticChain diagnostics,
Map context)
A constraint cannot be applied to itself.
|
boolean |
validateValueSpecificationBoolean(DiagnosticChain diagnostics,
Map context)
The value specification for a constraint must evaluate to a Boolean value.
|
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
MDWEList<Element> getConstrainedElements()
Element
.
The ordered set of Elements referenced by this Constraint.
UMLPackage.getConstraint_ConstrainedElement()
ValueSpecification getSpecification()
setSpecification(ValueSpecification)
,
UMLPackage.getConstraint_Specification()
void setSpecification(ValueSpecification value)
Specification
' containment reference.
value
- the new value of the 'Specification' containment reference.getSpecification()
ValueSpecification createSpecification(String name, Type type, EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type',
and sets the 'Specification' containment reference.
name
- The 'Name' for the new ValueSpecification
, or null
.type
- The 'Type' for the new ValueSpecification
, or null
.eClass
- The Ecore class of the ValueSpecification
to create.ValueSpecification
.getSpecification()
Namespace getContext()
Owned Rule
'.
Specifies the namespace that owns the NamedElement.
setContext(Namespace)
,
UMLPackage.getConstraint_Context()
,
Namespace.getOwnedRules()
void setContext(Namespace value)
Context
' container reference.
value
- the new value of the 'Context' container reference.getContext()
boolean validateNotApplyToSelf(DiagnosticChain diagnostics, Map context)
boolean validateValueSpecificationBoolean(DiagnosticChain diagnostics, Map context)
boolean validateBooleanValue(DiagnosticChain diagnostics, Map context)
boolean validateNoSideEffects(DiagnosticChain diagnostics, Map context)
boolean validateNotAppliedToSelf(DiagnosticChain diagnostics, Map context)