Table of Contents

Interface IConstraint

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

The public interface for Constraint

[DefaultImplementationType(typeof(Constraint))]
[XmlDefaultImplementationType(typeof(Constraint))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Constraint")]
public interface IConstraint : IPackageableElement, IParameterableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

ConstrainedElement

The ordered set of Elements referenced by this Constraint. <p>From package UML::CommonStructure.</p>

[XmlElementName("constrainedElement")]
[XmlAttribute(true)]
IOrderedSetExpression<IElement> ConstrainedElement { get; }

Property Value

IOrderedSetExpression<IElement>

Context

Specifies the Namespace that owns the Constraint. <p>From package UML::CommonStructure.</p>

[Browsable(false)]
[XmlElementName("context")]
[XmlAttribute(true)]
[XmlOpposite("ownedRule")]
INamespace Context { get; set; }

Property Value

INamespace

Specification

A condition that must be true when evaluated in order for the Constraint to be satisfied. <p>From package UML::CommonStructure.</p>

[Browsable(false)]
[XmlElementName("specification")]
[XmlAttribute(false)]
[Containment]
IValueSpecification Specification { get; set; }

Property Value

IValueSpecification

Methods

Boolean_value(object, object)

The ValueSpecification for a Constraint must evaluate to a Boolean value.

bool Boolean_value(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

No_side_effects(object, object)

Evaluating the ValueSpecification for a Constraint must not have side effects.

bool No_side_effects(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool

Not_apply_to_self(object, object)

A Constraint cannot be applied to itself. not constrainedElement->includes(self)

bool Not_apply_to_self(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool