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:
constrainedElement :
Element (0 *); -- source
Constraint context :
Namespace (0 1); -- source
Constraint specification :
ValueSpecification (1 1); -- source
Constraint visibility :
VisibilityKind (0 1); -- source
PackageableElement owningTemplateParameter :
TemplateParameter (0 1); -- source
ParameterableElement templateParameter :
TemplateParameter (0 1); -- source
ParameterableElement clientDependency :
Dependency (0 *); -- source
NamedElement name : String (0 1); -- source
NamedElement nameExpression :
StringExpression (0 1); -- source
NamedElement namespace :
Namespace (0 1); -- source
NamedElement qualifiedName : String (0 1); -- source
NamedElementA name that allows the NamedElement to be identified within a hierarchy
of nested Namespaces. It is constructed from the names of the containing
Namespaces starting at the root of the hierarchy and ending with the name
of the NamedElement itself.
{
readonly,
derived}
ownedComment :
Comment (0 *); -- source
Element ownedElement :
Element (0 *); -- source
Element 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].