Table of Contents

Interface IProfile

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

The public interface for Profile

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

Properties

MetaclassReference

References a metaclass that may be extended. <p>From package UML::Packages.</p>

[Browsable(false)]
[XmlElementName("metaclassReference")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IElementImport> MetaclassReference { get; }

Property Value

IOrderedSetExpression<IElementImport>

MetamodelReference

References a package containing (directly or indirectly) metaclasses that may be extended. <p>From package UML::Packages.</p>

[Browsable(false)]
[XmlElementName("metamodelReference")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IPackageImport> MetamodelReference { get; }

Property Value

IOrderedSetExpression<IPackageImport>

Methods

Create(IClassifier)

Creates and returns an instance of (the Ecore representation of) the specified classifier defined in this profile.

IEObject Create(IClassifier classifier)

Parameters

classifier IClassifier

The classifier of which to create an instance.

Returns

IEObject

Define()

Defines this profile by (re)creating Ecore representations of its current contents.

IEPackage Define()

Returns

IEPackage

Define(object, object, object)

Defines this profile by (re)creating Ecore representations of its current contents, using the specified options, diagnostics, and context.

IEPackage Define(object options, object diagnostics, object context)

Parameters

options object

The options to use.

diagnostics object

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

context object

The cache of context-specific information.

Returns

IEPackage

GetDefinition()

Retrieves the current definition (Ecore representation) of this profile.

IEPackage GetDefinition()

Returns

IEPackage

GetDefinition(INamedElement)

Retrieves the current definition (Ecore representation) of the specified named element in this profile.

IENamedElement GetDefinition(INamedElement namedElement)

Parameters

namedElement INamedElement

The named element whose definition to retrieve.

Returns

IENamedElement

GetOwnedExtensions(bool)

Retrieves the extensions owned by this profile, excluding non-required extensions if indicated.

ISetExpression<IExtension> GetOwnedExtensions(bool requiredOnly)

Parameters

requiredOnly bool

Whether to retrieve only required extensions.

Returns

ISetExpression<IExtension>

GetReferencedMetaclasses()

Retrieves the metaclasses referenced by this profile.

ISetExpression<IClass> GetReferencedMetaclasses()

Returns

ISetExpression<IClass>

GetReferencedMetamodels()

Retrieves the metamodels referenced by this profile.

ISetExpression<IModel> GetReferencedMetamodels()

Returns

ISetExpression<IModel>

IsDefined()

Determines whether this profile is defined.

bool IsDefined()

Returns

bool

Metaclass_reference_not_specialized(object, object)

An element imported as a metaclassReference is not specialized or generalized in a Profile. metaclassReference.importedElement-> select(c | c.oclIsKindOf(Classifier) and (c.oclAsType(Classifier).allParents()->collect(namespace)->includes(self)))->isEmpty() and packagedElement-> select(oclIsKindOf(Classifier))->collect(oclAsType(Classifier).allParents())-> intersection(metaclassReference.importedElement->select(oclIsKindOf(Classifier))->collect(oclAsType(Classifier)))->isEmpty()

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

References_same_metamodel(object, object)

All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel. metamodelReference.importedPackage.elementImport.importedElement.allOwningPackages()-> union(metaclassReference.importedElement.allOwningPackages() )->notEmpty()

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