Class UML 2.5::Constraint
Description:
A Constraint is a condition or restriction expressed in natural language
text or in a machine readable language for the purpose of declaring some
of the semantics of an Element or set of Elements.
Direct Superclasses: PackageableElementDirect Subclasses: IntervalConstraint,
InteractionConstraintClass Precedence List: Constraint,
PackageableElement,
ParameterableElement,
NamedElement,
ElementProperties:
![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
constrainedElement :
Element (0 *); -- source
Constraint![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
context :
Namespace (0 1); -- source
Constraint![](/se-interop/image/right-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
specification :
ValueSpecification (1 1); -- source
ConstraintA condition that must be true when evaluated in order for the Constraint
to be satisfied.
{
composite}
Subsets: Element.ownedElement
![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
visibility :
VisibilityKind (0 1); -- source
PackageableElement![](/se-interop/image/right-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
owningTemplateParameter :
TemplateParameter (0 1); -- source
ParameterableElementThe formal TemplateParameter that owns this ParameterableElement.
Subsets: Element.owner, ParameterableElement.templateParameter
Opposite: TemplateParameter.ownedParameteredElement
![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
templateParameter :
TemplateParameter (0 1); -- source
ParameterableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
clientDependency :
Dependency (0 *); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
name : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
nameExpression :
StringExpression (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
namespace :
Namespace (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
qualifiedName : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=3970%3AC1FC70FE1CE99124B10132668A18364A)
owner :
Element (0 1); -- source
ElementConstraints:
Signature: CMOF_14_3_30() : Boolean;
Description: 14.3 [30] A Constraint must constrain at least one element and must be specified via an OpaqueExpression.
see also: https://sites.google.com/site/metamodelingantipatterns/catalog/mof/constraint-specification-is-not-opaque-expression
Expression: constrainedElement->notEmpty() and specification.oclIsKindOf(OpaqueExpression)
Operations:
No additional operations.
Send questions or comments to
[email protected].