Class ProfileApplication
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
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
ClassInstance
Gets the Class model for this type
public static IClass ClassInstance { get; }
Property Value
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
ReferencedElements
Gets the referenced model elements of this model element
public override IEnumerableExpression<IModelElement> ReferencedElements { get; }
Property Value
Methods
GetAppliedDefinition()
Retrieves the definition (Ecore representation) of the profile associated with this profile application.
public IEPackage GetAppliedDefinition()
Returns
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
INamedElementThe named element for which to retrieve the applied definition.
Returns
GetAttributeValue(string, int)
Resolves the given attribute name
protected override object GetAttributeValue(string attribute, int index)
Parameters
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
GetExpressionForAttribute(string)
Gets the property expression for the given attribute
protected override INotifyExpression<object> GetExpressionForAttribute(string attribute)
Parameters
attribute
stringThe 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
stringThe 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
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
IModelElementThe new parent model element
oldParent
IModelElementThe 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
IModelElementThe new parent model element
oldParent
IModelElementThe old parent model element
SetFeature(string, object)
Sets a value to the given feature
protected override void SetFeature(string feature, object value)