Table of Contents

Interface IExtension

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

The public interface for Extension

[DefaultImplementationType(typeof(Extension))]
[XmlDefaultImplementationType(typeof(Extension))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Extension")]
public interface IExtension : IAssociation, IRelationship, IClassifier, ITemplateableElement, IType, IPackageableElement, IParameterableElement, IRedefinableElement, INamespace, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Methods

GetMetaclass()

The query metaclass() returns the metaclass that is being extended (as opposed to the extending stereotype). result = (metaclassEnd().type.oclAsType(Class)) <p>From package UML::Packages.</p>

IClass GetMetaclass()

Returns

IClass

GetStereotype()

Retrieves the stereotype that extends a metaclass through this extension.

IStereotype GetStereotype()

Returns

IStereotype

GetStereotypeEnd()

Retrieves the extension end that is typed by a stereotype (as opposed to a metaclass).

IProperty GetStereotypeEnd()

Returns

IProperty

Is_binary(object, object)

An Extension is binary, i.e., it has only two memberEnds. memberEnd->size() = 2

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

MetaclassEnd()

The query metaclassEnd() returns the Property that is typed by a metaclass (as opposed to a stereotype). result = (memberEnd->reject(p | ownedEnd->includes(p.oclAsType(ExtensionEnd)))->any(true)) <p>From package UML::Packages.</p>

IProperty MetaclassEnd()

Returns

IProperty

Non_owned_end(object, object)

The non-owned end of an Extension is typed by a Class. metaclassEnd()->notEmpty() and metaclassEnd().type.oclIsKindOf(Class)

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