Table of Contents

Interface IElement

Namespace
NMF.Interop.Cmof
Assembly
NMF.UMLInterop.dll

The public interface for Element

[DefaultImplementationType(typeof(Element))]
[XmlDefaultImplementationType(typeof(Element))]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//Element")]
public interface IElement : IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

OwnedComment

The Comments owned by this element.

[Browsable(false)]
[XmlElementName("ownedComment")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IComment> OwnedComment { get; }

Property Value

IOrderedSetExpression<IComment>

Methods

AllOwnedElements()

The query allOwnedElements() gives all of the direct and indirect owned elements of an element. result = ownedElement->union(ownedElement->collect(e | e.allOwnedElements()))

ISetExpression<IElement> AllOwnedElements()

Returns

ISetExpression<IElement>

Container()

IElement Container()

Returns

IElement

Delete()

void Delete()

GetMetaClass()

IClass GetMetaClass()

Returns

IClass

Has_owner(object, object)

Elements that must be owned must have an owner. self.mustBeOwned() implies owner->notEmpty()

bool Has_owner(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

IsInstanceOfType(IClass, bool)

bool IsInstanceOfType(IClass type, bool includesSubtypes)

Parameters

type IClass
includesSubtypes bool

Returns

bool

MustBeOwned()

The query mustBeOwned() indicates whether elements of this type must have an owner. Subclasses of Element that do not require an owner must override this operation. result = true

bool MustBeOwned()

Returns

bool

Not_own_self(object, object)

An element may not directly or indirectly own itself. not self.allOwnedElements()->includes(self)

bool Not_own_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

Events

AllOwnedElementsCalled

Gets fired after the operation allOwnedElements got called

event EventHandler<OperationCallEventArgs> AllOwnedElementsCalled

Event Type

EventHandler<OperationCallEventArgs>

AllOwnedElementsCalling

Gets fired before the operation allOwnedElements gets called

event EventHandler<OperationCallEventArgs> AllOwnedElementsCalling

Event Type

EventHandler<OperationCallEventArgs>

ContainerCalled

Gets fired after the operation container got called

event EventHandler<OperationCallEventArgs> ContainerCalled

Event Type

EventHandler<OperationCallEventArgs>

ContainerCalling

Gets fired before the operation container gets called

event EventHandler<OperationCallEventArgs> ContainerCalling

Event Type

EventHandler<OperationCallEventArgs>

DeleteCalled

Gets fired after the operation delete got called

event EventHandler<OperationCallEventArgs> DeleteCalled

Event Type

EventHandler<OperationCallEventArgs>

DeleteCalling

Gets fired before the operation delete gets called

event EventHandler<OperationCallEventArgs> DeleteCalling

Event Type

EventHandler<OperationCallEventArgs>

GetMetaClassCalled

Gets fired after the operation getMetaClass got called

event EventHandler<OperationCallEventArgs> GetMetaClassCalled

Event Type

EventHandler<OperationCallEventArgs>

GetMetaClassCalling

Gets fired before the operation getMetaClass gets called

event EventHandler<OperationCallEventArgs> GetMetaClassCalling

Event Type

EventHandler<OperationCallEventArgs>

Has_ownerCalled

Gets fired after the operation has_owner got called

event EventHandler<OperationCallEventArgs> Has_ownerCalled

Event Type

EventHandler<OperationCallEventArgs>

Has_ownerCalling

Gets fired before the operation has_owner gets called

event EventHandler<OperationCallEventArgs> Has_ownerCalling

Event Type

EventHandler<OperationCallEventArgs>

IsInstanceOfTypeCalled

Gets fired after the operation isInstanceOfType got called

event EventHandler<OperationCallEventArgs> IsInstanceOfTypeCalled

Event Type

EventHandler<OperationCallEventArgs>

IsInstanceOfTypeCalling

Gets fired before the operation isInstanceOfType gets called

event EventHandler<OperationCallEventArgs> IsInstanceOfTypeCalling

Event Type

EventHandler<OperationCallEventArgs>

MustBeOwnedCalled

Gets fired after the operation mustBeOwned got called

event EventHandler<OperationCallEventArgs> MustBeOwnedCalled

Event Type

EventHandler<OperationCallEventArgs>

MustBeOwnedCalling

Gets fired before the operation mustBeOwned gets called

event EventHandler<OperationCallEventArgs> MustBeOwnedCalling

Event Type

EventHandler<OperationCallEventArgs>

Not_own_selfCalled

Gets fired after the operation not_own_self got called

event EventHandler<OperationCallEventArgs> Not_own_selfCalled

Event Type

EventHandler<OperationCallEventArgs>

Not_own_selfCalling

Gets fired before the operation not_own_self gets called

event EventHandler<OperationCallEventArgs> Not_own_selfCalling

Event Type

EventHandler<OperationCallEventArgs>