Table of Contents

Class ProfileApplication

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

A profile application is used to show which profiles have been applied to a package. <p>From package UML::Packages.</p>

[XmlNamespace("http://www.eclipse.org/uml2/5.0.0/UML")]
[XmlNamespacePrefix("uml")]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//ProfileApplication")]
public class ProfileApplication : DirectedRelationship, IProfileApplication, IDirectedRelationship, IRelationship, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ProfileApplication
Implements
Inherited Members

Properties

AppliedProfile

References the Profiles that are applied to a Package through this ProfileApplication. <p>From package UML::Packages.</p>

[XmlElementName("appliedProfile")]
[XmlAttribute(true)]
public IProfile AppliedProfile { get; set; }

Property Value

IProfile

ApplyingPackage

The package that owns the profile application. <p>From package UML::Packages.</p>

[Browsable(false)]
[XmlElementName("applyingPackage")]
[XmlAttribute(true)]
[XmlOpposite("profileApplication")]
public IPackage ApplyingPackage { get; set; }

Property Value

IPackage

ClassInstance

Gets the Class model for this type

public static IClass ClassInstance { get; }

Property Value

IClass

IsStrict

Specifies that the Profile filtering rules for the metaclasses of the referenced metamodel shall be strictly applied. <p>From package UML::Packages.</p>

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isStrict")]
[XmlAttribute(true)]
public bool IsStrict { get; set; }

Property Value

bool

ReferencedElements

Gets the referenced model elements of this model element

public override IEnumerableExpression<IModelElement> ReferencedElements { get; }

Property Value

IEnumerableExpression<IModelElement>

Methods

GetAppliedDefinition()

Retrieves the definition (Ecore representation) of the profile associated with this profile application.

public IEPackage GetAppliedDefinition()

Returns

IEPackage

GetAppliedDefinition(INamedElement)

Retrieves the definition (Ecore representation) of the specified named element in the profile associated with this profile application.

public IENamedElement GetAppliedDefinition(INamedElement namedElement)

Parameters

namedElement INamedElement

The named element for which to retrieve the applied definition.

Returns

IENamedElement

GetAttributeValue(string, int)

Resolves the given attribute name

protected override object GetAttributeValue(string attribute, int index)

Parameters

attribute string

The requested attribute name

index int

The index of this attribute

Returns

object

The attribute value or null if it could not be found

GetClass()

Gets the Class for this model element

public override IClass GetClass()

Returns

IClass

GetExpressionForAttribute(string)

Gets the property expression for the given attribute

protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)

Parameters

attribute string

The requested attribute in upper case

Returns

INotifyExpression<object>

An incremental property expression

GetExpressionForReference(string)

Gets the property expression for the given reference

protected override INotifyExpression<IModelElement> GetExpressionForReference(string reference)

Parameters

reference string

The requested reference in upper case

Returns

INotifyExpression<IModelElement>

An incremental property expression

GetModelElementForReference(string, int)

Resolves the given URI to a child model element

protected override IModelElement GetModelElementForReference(string reference, int index)

Parameters

reference string

The requested reference name

index int

The index of this reference

Returns

IModelElement

The model element or null if it could not be found

OnParentChanged(IModelElement, IModelElement)

Gets called when the parent model element of the current model element changes

protected override void OnParentChanged(IModelElement newParent, IModelElement oldParent)

Parameters

newParent IModelElement

The new parent model element

oldParent IModelElement

The old parent model element

OnParentChanging(IModelElement, IModelElement)

Gets called when the parent model element of the current model element is about to change

protected override void OnParentChanging(IModelElement newParent, IModelElement oldParent)

Parameters

newParent IModelElement

The new parent model element

oldParent IModelElement

The old parent model element

SetFeature(string, object)

Sets a value to the given feature

protected override void SetFeature(string feature, object value)

Parameters

feature string

The requested feature

value object

The value that should be set to that feature