Software Disclaimer

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: PackageableElement

Direct Subclasses: IntervalConstraint, InteractionConstraint

Class Precedence List: Constraint, PackageableElement, ParameterableElement, NamedElement, Element

Properties:

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 NamedElement
ownedComment : Comment (0 *); -- source Element

The Comments owned by this Element.
{composite}
Subsets: Element.ownedElement

ownedElement : Element (0 *); -- source Element
owner : Element (0 1); -- source Element

Constraints:

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].