public interface Constraint extends PackageableElement
From package UML::CommonStructure.
The following features are supported:
UMLPackage.getConstraint()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ValueSpecification |
createSpecification(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new
ValueSpecification , with the specified 'Name', and 'Type', and sets the 'Specification' containment reference |
org.eclipse.emf.common.util.EList<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(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The ValueSpecification for a Constraint must evaluate to a Boolean value.
|
boolean |
validateNoSideEffects(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Evaluating the ValueSpecification for a Constraint must not have side effects.
|
boolean |
validateNotApplyToSelf(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A Constraint cannot be applied to itself.
|
validateNamespaceNeedsVisibility
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, 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
getEAnnotation, getEAnnotations
org.eclipse.emf.common.util.EList<Element> getConstrainedElements()
Element
.
The ordered set of Elements referenced by this Constraint.
From package UML::CommonStructure.
UMLPackage.getConstraint_ConstrainedElement()
ValueSpecification getSpecification()
This feature subsets the following features:
A condition that must be true when evaluated in order for the Constraint to be satisfied.From package UML::CommonStructure.
setSpecification(ValueSpecification)
,
UMLPackage.getConstraint_Specification()
void setSpecification(ValueSpecification value)
Specification
' containment reference.
value
- the new value of the 'Specification' containment reference.getSpecification()
ValueSpecification createSpecification(java.lang.String name, Type type, org.eclipse.emf.ecore.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
'.
This feature subsets the following features:
Specifies the Namespace that owns the Constraint.From package UML::CommonStructure.
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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateBooleanValue(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateNoSideEffects(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.