Interface IProfile
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
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
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
IClassifierThe classifier of which to create an instance.
Returns
Define()
Defines this profile by (re)creating Ecore representations of its current contents.
IEPackage Define()
Returns
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
objectThe options to use.
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
GetDefinition()
Retrieves the current definition (Ecore representation) of this profile.
IEPackage GetDefinition()
Returns
GetDefinition(INamedElement)
Retrieves the current definition (Ecore representation) of the specified named element in this profile.
IENamedElement GetDefinition(INamedElement namedElement)
Parameters
namedElement
INamedElementThe named element whose definition to retrieve.
Returns
GetOwnedExtensions(bool)
Retrieves the extensions owned by this profile, excluding non-required extensions if indicated.
ISetExpression<IExtension> GetOwnedExtensions(bool requiredOnly)
Parameters
requiredOnly
boolWhether to retrieve only required extensions.
Returns
GetReferencedMetaclasses()
Retrieves the metaclasses referenced by this profile.
ISetExpression<IClass> GetReferencedMetaclasses()
Returns
GetReferencedMetamodels()
Retrieves the metamodels referenced by this profile.
ISetExpression<IModel> GetReferencedMetamodels()
Returns
IsDefined()
Determines whether this profile is defined.
bool IsDefined()
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.