Interface IConstraint
The public interface for Constraint
[DefaultImplementationType(typeof(Constraint))]
[XmlDefaultImplementationType(typeof(Constraint))]
[ModelRepresentationClass("http://schema.omg.org/spec/MOF/2.0/cmof.xml#//Constraint")]
public interface IConstraint : IPackageableElement, INamedElement, IElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inherited Members
Properties
ConstrainedElement
The ordered set of Elements referenced by this Constraint.
[XmlElementName("constrainedElement")]
[XmlAttribute(true)]
IOrderedSetExpression<IElement> ConstrainedElement { get; }
Property Value
Namespace
The namespace property
[Browsable(false)]
[XmlElementName("namespace")]
[XmlAttribute(true)]
[XmlOpposite("ownedRule")]
INamespace Namespace { get; set; }
Property Value
Specification
A condition that must be true when evaluated in order for the constraint to be satisfied. Subsets Element::ownedElement.
[Browsable(false)]
[XmlElementName("specification")]
[XmlAttribute(false)]
[Containment]
IValueSpecification Specification { get; set; }
Property Value
Methods
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
Returns
Value_specification_boolean(object, object)
The value specification for a constraint must evaluate to a boolean value. self.specification().booleanValue().isOclKindOf(Boolean)
bool Value_specification_boolean(object diagnostics, object context)