public interface Profile extends Package
The following features are supported:
UMLPackage.getProfile()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
EObject |
create(Classifier classifier)
Creates and returns an instance of (the Ecore representation of) the specified classifier defined in this profile
|
ElementImport |
createMetaclassReference(PackageableElement importedElement)
Creates a new
ElementImport , with the specified 'Imported Element', and appends it to
the 'Metaclass Reference' reference list |
PackageImport |
createMetamodelReference(Package importedPackage)
Creates a new
PackageImport , with the specified 'Imported Package', and appends it to
the 'Metamodel Reference' reference list |
Stereotype |
createOwnedStereotype(String name)
Creates a new
Stereotype , with the specified 'Name', and appends it to the '
Owned Stereotype' reference list |
Stereotype |
createOwnedStereotype(String name,
boolean isAbstract)
Creates a(n) (abstract) stereotype with the specified name as an owned stereotype of this profile
|
EPackage |
define()
Defines this profile by (re)creating Ecore representations of its current contents
|
EPackage |
getDefinition()
Retrieves the current definition (Ecore representation) of this profile
|
ENamedElement |
getDefinition(NamedElement namedElement)
Retrieves the current definition (Ecore representation) of the specified named element in this profile
|
ElementImport |
getMetaclassReference(PackageableElement importedElement)
Retrieves the first
ElementImport with the specified 'Imported Element' from the '
Metaclass Reference' reference list |
ElementImport |
getMetaclassReference(PackageableElement importedElement,
boolean createOnDemand)
Retrieves the first
ElementImport with the specified 'Imported Element' from the '
Metaclass Reference' reference list |
MDWEList<ElementImport> |
getMetaclassReferences()
Returns the value of the 'Metaclass Reference' reference list.
|
PackageImport |
getMetamodelReference(Package importedPackage)
Retrieves the first
PackageImport with the specified 'Imported Package' from the '
Metamodel Reference' reference list |
PackageImport |
getMetamodelReference(Package importedPackage,
boolean createOnDemand)
Retrieves the first
PackageImport with 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
|
Stereotype |
getOwnedStereotype(String name)
Retrieves the first
Stereotype with the specified 'Name' from the '
Owned Stereotype' reference list |
Stereotype |
getOwnedStereotype(String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first
Stereotype with 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
|
boolean |
isDefined()
Determines whether this profile is defined
|
boolean |
validateMetaclassReferenceNotSpecialized(DiagnosticChain diagnostics,
Map context)
An element imported as a metaclassReference is not specialized or generalized in a Profile.
|
boolean |
validateReferencesSameMetamodel(DiagnosticChain diagnostics,
Map context)
All elements imported either as metaclassReferences or through metamodelReferences are members of the same base reference metamodel.
|
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
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
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
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
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
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
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature
MDWEList<Stereotype> getOwnedStereotypes()
Stereotype
.
References the Stereotypes that are owned by the Profile.
UMLPackage.getProfile_OwnedStereotype()
Stereotype createOwnedStereotype(String name)
Stereotype
, with the specified 'Name', and appends it to the '
Owned Stereotype' reference list.
name
- The 'Name' for the new Stereotype
, or null
.Stereotype
.getOwnedStereotypes()
Stereotype getOwnedStereotype(String name)
Stereotype
with the specified 'Name' from the '
Owned Stereotype' reference list.
name
- The 'Name' of the Stereotype
to retrieve, or null
.Stereotype
with the specified 'Name', or null
.getOwnedStereotypes()
Stereotype getOwnedStereotype(String name, boolean ignoreCase, boolean createOnDemand)
Stereotype
with the specified 'Name' from the '
Owned Stereotype' reference list.
name
- The 'Name' of the Stereotype
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Stereotype
on demand if not found.Stereotype
with the specified 'Name', or null
.getOwnedStereotypes()
MDWEList<ElementImport> getMetaclassReferences()
ElementImport
.
References a metaclass that may be extended.
UMLPackage.getProfile_MetaclassReference()
ElementImport createMetaclassReference(PackageableElement importedElement)
ElementImport
, with the specified 'Imported Element', and appends it to
the 'Metaclass Reference' reference list.
importedElement
- The 'Imported Element' for the new ElementImport
, or null
.ElementImport
.getMetaclassReferences()
ElementImport getMetaclassReference(PackageableElement importedElement)
ElementImport
with the specified 'Imported Element' from the '
Metaclass Reference' reference list.
importedElement
- The 'Imported Element' of the ElementImport
to retrieve, or null
.ElementImport
with the specified 'Imported Element', or
null
.getMetaclassReferences()
ElementImport getMetaclassReference(PackageableElement importedElement, boolean createOnDemand)
ElementImport
with the specified 'Imported Element' from the '
Metaclass Reference' reference list.
importedElement
- The 'Imported Element' of the ElementImport
to retrieve, or null
.createOnDemand
- Whether to create a ElementImport
on demand if not found.ElementImport
with the specified 'Imported Element', or
null
.getMetaclassReferences()
MDWEList<PackageImport> getMetamodelReferences()
PackageImport
.
References a package containing (directly or indirectly) metaclasses that may be extended.
UMLPackage.getProfile_MetamodelReference()
PackageImport createMetamodelReference(Package importedPackage)
PackageImport
, with the specified 'Imported Package', and appends it to
the 'Metamodel Reference' reference list.
importedPackage
- The 'Imported Package' for the new PackageImport
, or null
.PackageImport
.getMetamodelReferences()
PackageImport getMetamodelReference(Package importedPackage)
PackageImport
with the specified 'Imported Package' from the '
Metamodel Reference' reference list.
importedPackage
- The 'Imported Package' of the PackageImport
to retrieve, or null
.PackageImport
with the specified 'Imported Package', or
null
.getMetamodelReferences()
PackageImport getMetamodelReference(Package importedPackage, boolean createOnDemand)
PackageImport
with the specified 'Imported Package' from the '
Metamodel Reference' reference list.
importedPackage
- The 'Imported Package' of the PackageImport
to retrieve, or null
.createOnDemand
- Whether to create a PackageImport
on demand if not found.PackageImport
with the specified 'Imported Package', or
null
.getMetamodelReferences()
boolean validateMetaclassReferenceNotSpecialized(DiagnosticChain diagnostics, Map context)
boolean validateReferencesSameMetamodel(DiagnosticChain diagnostics, Map context)
EObject create(Classifier classifier)
Stereotype createOwnedStereotype(String name, boolean isAbstract)
boolean isDefined()
EPackage define()
EPackage getDefinition()
ENamedElement getDefinition(NamedElement namedElement)
MDWEList<Class> getReferencedMetaclasses()
MDWEList<Model> getReferencedMetamodels()