Interface IConstraint
The public interface for Constraint
[DefaultImplementationType(typeof(Constraint))]
[XmlDefaultImplementationType(typeof(Constraint))]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//Constraint")]
public interface IConstraint : IPackageableElement, INamedElement, IElement, IObject, 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
Context
Specifies the namespace that owns the NamedElement.
[Browsable(false)]
[XmlElementName("context")]
[XmlAttribute(true)]
[XmlOpposite("ownedRule")]
INamespace Context { get; set; }
Property Value
Specification
A condition that must be true when evaluated in order for the constraint to be satisfied.
[Browsable(false)]
[XmlElementName("specification")]
[XmlAttribute(false)]
[Containment]
IValueSpecification Specification { get; set; }
Property Value
Methods
Boolean_value(object, object)
The value specification for a constraint must evaluate to a Boolean value. true
bool Boolean_value(object diagnostics, object context)
Parameters
diagnosticsobjectThe chain of diagnostics to which problems are to be appended.
contextobjectThe cache of context-specific information.
Returns
No_side_effects(object, object)
Evaluating the value specification for a constraint must not have side effects. true
bool No_side_effects(object diagnostics, object context)
Parameters
diagnosticsobjectThe chain of diagnostics to which problems are to be appended.
contextobjectThe cache of context-specific information.
Returns
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
diagnosticsobjectThe chain of diagnostics to which problems are to be appended.
contextobjectThe cache of context-specific information.
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)
Parameters
diagnosticsobjectThe chain of diagnostics to which problems are to be appended.
contextobjectThe cache of context-specific information.
Returns
Events
Boolean_valueCalled
Gets fired after the operation boolean_value got called
event EventHandler<OperationCallEventArgs> Boolean_valueCalled
Event Type
Boolean_valueCalling
Gets fired before the operation boolean_value gets called
event EventHandler<OperationCallEventArgs> Boolean_valueCalling
Event Type
ContextChanged
Gets fired when the Context property changed its value
event EventHandler<ValueChangedEventArgs> ContextChanged
Event Type
ContextChanging
Gets fired before the Context property changes its value
event EventHandler<ValueChangedEventArgs> ContextChanging
Event Type
No_side_effectsCalled
Gets fired after the operation no_side_effects got called
event EventHandler<OperationCallEventArgs> No_side_effectsCalled
Event Type
No_side_effectsCalling
Gets fired before the operation no_side_effects gets called
event EventHandler<OperationCallEventArgs> No_side_effectsCalling
Event Type
Not_apply_to_selfCalled
Gets fired after the operation not_apply_to_self got called
event EventHandler<OperationCallEventArgs> Not_apply_to_selfCalled
Event Type
Not_apply_to_selfCalling
Gets fired before the operation not_apply_to_self gets called
event EventHandler<OperationCallEventArgs> Not_apply_to_selfCalling
Event Type
SpecificationChanged
Gets fired when the Specification property changed its value
event EventHandler<ValueChangedEventArgs> SpecificationChanged
Event Type
SpecificationChanging
Gets fired before the Specification property changes its value
event EventHandler<ValueChangedEventArgs> SpecificationChanging
Event Type
Value_specification_booleanCalled
Gets fired after the operation value_specification_boolean got called
event EventHandler<OperationCallEventArgs> Value_specification_booleanCalled
Event Type
Value_specification_booleanCalling
Gets fired before the operation value_specification_boolean gets called
event EventHandler<OperationCallEventArgs> Value_specification_booleanCalling