Package com.sodius.mdw.metamodel.uml21
Interface Profile
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,Namespace,org.eclipse.emf.common.notify.Notifier,Package,PackageableElement,ParameterableElement,TemplateableElement
public interface Profile extends Package
A representation of the model object 'Profile'. A profile defines limited extensions to a reference metamodel with the purpose of adapting the metamodel to a specific platform or domain.The following features are supported:
- See Also:
UMLPackage.getProfile()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObjectcreate(Classifier classifier)Creates and returns an instance of (the Ecore representation of) the specified classifier defined in this profile.ElementImportcreateMetaclassReference(PackageableElement importedElement)Creates a newElementImport, with the specified 'Imported Element', and appends it to the 'Metaclass Reference' reference list.PackageImportcreateMetamodelReference(Package importedPackage)Creates a newPackageImport, with the specified 'Imported Package', and appends it to the 'Metamodel Reference' reference list.StereotypecreateOwnedStereotype(String name)Creates a newStereotype, with the specified 'Name', and appends it to the ' Owned Stereotype' reference list.StereotypecreateOwnedStereotype(String name, boolean isAbstract)Creates a(n) (abstract) stereotype with the specified name as an owned stereotype of this profile.org.eclipse.emf.ecore.EPackagedefine()Defines this profile by (re)creating Ecore representations of its current contents.org.eclipse.emf.ecore.EPackagegetDefinition()Retrieves the current definition (Ecore representation) of this profile.org.eclipse.emf.ecore.ENamedElementgetDefinition(NamedElement namedElement)Retrieves the current definition (Ecore representation) of the specified named element in this profile.ElementImportgetMetaclassReference(PackageableElement importedElement)Retrieves the firstElementImportwith the specified 'Imported Element' from the ' Metaclass Reference' reference list.ElementImportgetMetaclassReference(PackageableElement importedElement, boolean createOnDemand)Retrieves the firstElementImportwith the specified 'Imported Element' from the ' Metaclass Reference' reference list.MDWEList<ElementImport>getMetaclassReferences()Returns the value of the 'Metaclass Reference' reference list.PackageImportgetMetamodelReference(Package importedPackage)Retrieves the firstPackageImportwith the specified 'Imported Package' from the ' Metamodel Reference' reference list.PackageImportgetMetamodelReference(Package importedPackage, boolean createOnDemand)Retrieves the firstPackageImportwith the specified 'Imported Package' from the ' Metamodel Reference' reference list.MDWEList<PackageImport>getMetamodelReferences()Returns the value of the 'Metamodel Reference' reference list.MDWEList<Extension>getOwnedExtensions(boolean requiredOnly)Retrieves the extensions owned by this profile, excluding non-required extensions if indicated.StereotypegetOwnedStereotype(String name)Retrieves the firstStereotypewith the specified 'Name' from the ' Owned Stereotype' reference list.StereotypegetOwnedStereotype(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstStereotypewith the specified 'Name' from the ' Owned Stereotype' reference list.MDWEList<Stereotype>getOwnedStereotypes()Returns the value of the 'Owned Stereotype' reference list.MDWEList<Class>getReferencedMetaclasses()Retrieves the metaclasses referenced by this profile.MDWEList<Model>getReferencedMetamodels()Retrieves the metamodels referenced by this profile.booleanisDefined()Determines whether this profile is defined.booleanvalidateMetaclassReferenceNotSpecialized(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An element imported as a metaclassReference is not specialized or generalized in a Profile.booleanvalidateReferencesSameMetamodel(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Namespace
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Package
allApplicableStereotypes, applyProfile, createNestedPackage, createNestedPackage, createOwnedClass, createOwnedEnumeration, createOwnedInterface, createOwnedPrimitiveType, createOwnedType, createPackagedElement, createPackageMerge, createProfileApplication, getAllAppliedProfiles, getAllProfileApplications, getAppliedProfile, getAppliedProfile, getAppliedProfiles, getNestedPackage, getNestedPackage, getNestedPackages, getNestingPackage, getOwnedType, getOwnedType, getOwnedTypes, getPackagedElement, getPackagedElement, getPackagedElements, getPackageMerge, getPackageMerge, getPackageMerges, getProfileApplication, getProfileApplication, getProfileApplications, isModelLibrary, isProfileApplied, makesVisible, setNestingPackage, unapplyProfile, validateElementsPublicOrPrivate, visibleMembers
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
-
-
-
-
Method Detail
-
getOwnedStereotypes
MDWEList<Stereotype> getOwnedStereotypes()
Returns the value of the 'Owned Stereotype' reference list. The list contents are of typeStereotype. References the Stereotypes that are owned by the Profile.- Returns:
- the value of the 'Owned Stereotype' reference list.
- See Also:
UMLPackage.getProfile_OwnedStereotype()
-
createOwnedStereotype
Stereotype createOwnedStereotype(String name)
Creates a newStereotype, with the specified 'Name', and appends it to the ' Owned Stereotype' reference list.- Parameters:
name- The 'Name' for the newStereotype, ornull.- Returns:
- The new
Stereotype. - See Also:
getOwnedStereotypes()
-
getOwnedStereotype
Stereotype getOwnedStereotype(String name)
Retrieves the firstStereotypewith the specified 'Name' from the ' Owned Stereotype' reference list.- Parameters:
name- The 'Name' of theStereotypeto retrieve, ornull.- Returns:
- The first
Stereotypewith the specified 'Name', ornull. - See Also:
getOwnedStereotypes()
-
getOwnedStereotype
Stereotype getOwnedStereotype(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstStereotypewith the specified 'Name' from the ' Owned Stereotype' reference list.- Parameters:
name- The 'Name' of theStereotypeto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aStereotypeon demand if not found.- Returns:
- The first
Stereotypewith the specified 'Name', ornull. - See Also:
getOwnedStereotypes()
-
getMetaclassReferences
MDWEList<ElementImport> getMetaclassReferences()
Returns the value of the 'Metaclass Reference' reference list. The list contents are of typeElementImport. References a metaclass that may be extended.- Returns:
- the value of the 'Metaclass Reference' reference list.
- See Also:
UMLPackage.getProfile_MetaclassReference()
-
createMetaclassReference
ElementImport createMetaclassReference(PackageableElement importedElement)
Creates a newElementImport, with the specified 'Imported Element', and appends it to the 'Metaclass Reference' reference list.- Parameters:
importedElement- The 'Imported Element' for the newElementImport, ornull.- Returns:
- The new
ElementImport. - See Also:
getMetaclassReferences()
-
getMetaclassReference
ElementImport getMetaclassReference(PackageableElement importedElement)
Retrieves the firstElementImportwith the specified 'Imported Element' from the ' Metaclass Reference' reference list.- Parameters:
importedElement- The 'Imported Element' of theElementImportto retrieve, ornull.- Returns:
- The first
ElementImportwith the specified 'Imported Element', ornull. - See Also:
getMetaclassReferences()
-
getMetaclassReference
ElementImport getMetaclassReference(PackageableElement importedElement, boolean createOnDemand)
Retrieves the firstElementImportwith the specified 'Imported Element' from the ' Metaclass Reference' reference list.- Parameters:
importedElement- The 'Imported Element' of theElementImportto retrieve, ornull.createOnDemand- Whether to create aElementImporton demand if not found.- Returns:
- The first
ElementImportwith the specified 'Imported Element', ornull. - See Also:
getMetaclassReferences()
-
getMetamodelReferences
MDWEList<PackageImport> getMetamodelReferences()
Returns the value of the 'Metamodel Reference' reference list. The list contents are of typePackageImport. References a package containing (directly or indirectly) metaclasses that may be extended.- Returns:
- the value of the 'Metamodel Reference' reference list.
- See Also:
UMLPackage.getProfile_MetamodelReference()
-
createMetamodelReference
PackageImport createMetamodelReference(Package importedPackage)
Creates a newPackageImport, with the specified 'Imported Package', and appends it to the 'Metamodel Reference' reference list.- Parameters:
importedPackage- The 'Imported Package' for the newPackageImport, ornull.- Returns:
- The new
PackageImport. - See Also:
getMetamodelReferences()
-
getMetamodelReference
PackageImport getMetamodelReference(Package importedPackage)
Retrieves the firstPackageImportwith the specified 'Imported Package' from the ' Metamodel Reference' reference list.- Parameters:
importedPackage- The 'Imported Package' of thePackageImportto retrieve, ornull.- Returns:
- The first
PackageImportwith the specified 'Imported Package', ornull. - See Also:
getMetamodelReferences()
-
getMetamodelReference
PackageImport getMetamodelReference(Package importedPackage, boolean createOnDemand)
Retrieves the firstPackageImportwith the specified 'Imported Package' from the ' Metamodel Reference' reference list.- Parameters:
importedPackage- The 'Imported Package' of thePackageImportto retrieve, ornull.createOnDemand- Whether to create aPackageImporton demand if not found.- Returns:
- The first
PackageImportwith the specified 'Imported Package', ornull. - See Also:
getMetamodelReferences()
-
validateMetaclassReferenceNotSpecialized
boolean validateMetaclassReferenceNotSpecialized(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An element imported as a metaclassReference is not specialized or generalized in a Profile. self.metaclassReference.importedElement-> select(c | c.oclIsKindOf(Classifier) and (c.generalization.namespace = self or (c.specialization.namespace = self) )->isEmpty()
-
validateReferencesSameMetamodel
boolean validateReferencesSameMetamodel(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel. self.metamodelReference.importedPackage.elementImport.importedElement.allOwningPackages())-> union(self.metaclassReference.importedElement.allOwningPackages() )->notEmpty()
-
create
org.eclipse.emf.ecore.EObject create(Classifier classifier)
Creates and returns an instance of (the Ecore representation of) the specified classifier defined in this profile.
-
createOwnedStereotype
Stereotype createOwnedStereotype(String name, boolean isAbstract)
Creates a(n) (abstract) stereotype with the specified name as an owned stereotype of this profile.
-
isDefined
boolean isDefined()
Determines whether this profile is defined.
-
define
org.eclipse.emf.ecore.EPackage define()
Defines this profile by (re)creating Ecore representations of its current contents.
-
getDefinition
org.eclipse.emf.ecore.EPackage getDefinition()
Retrieves the current definition (Ecore representation) of this profile.
-
getDefinition
org.eclipse.emf.ecore.ENamedElement getDefinition(NamedElement namedElement)
Retrieves the current definition (Ecore representation) of the specified named element in this profile.
-
getReferencedMetaclasses
MDWEList<Class> getReferencedMetaclasses()
Retrieves the metaclasses referenced by this profile.
-
getReferencedMetamodels
MDWEList<Model> getReferencedMetamodels()
Retrieves the metamodels referenced by this profile.
-
-