public interface Package extends Namespace, PackageableElement, TemplateableElement
The following features are supported:
UMLPackage.getPackage()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
EList<Stereotype> |
allApplicableStereotypes()
The query allApplicableStereotypes() returns all the directly or indirectly owned stereotypes, including stereotypes contained in sub-profiles.
|
MDWEList<EObject> |
applyProfile(Profile profile)
Applies the current definition of the specified profile to this package and automatically applies required stereotypes in the profile to
elements within this package's namespace hieararchy.
|
Package |
createNestedPackage(String name)
Creates a new
Package , with the specified 'Name', and appends it to the '
Nested Package' reference list. |
Package |
createNestedPackage(String name,
EClass eClass)
Creates a new
Package , with the specified 'Name', and appends it to the '
Nested Package' reference list. |
Class |
createOwnedClass(String name,
boolean isAbstract)
Creates a(n) (abstract) class with the specified name as an owned type of this package.
|
Enumeration |
createOwnedEnumeration(String name)
Creates a enumeration with the specified name as an owned type of this package.
|
Interface |
createOwnedInterface(String name)
Creates an interface with the specified name as an owned type of this package.
|
PrimitiveType |
createOwnedPrimitiveType(String name)
Creates a primitive type with the specified name as an owned type of this package.
|
Type |
createOwnedType(String name,
EClass eClass)
Creates a new
Type , with the specified 'Name', and appends it to the '
Owned Type' reference list. |
PackageableElement |
createPackagedElement(String name,
EClass eClass)
Creates a new
PackageableElement , with the specified 'Name', and appends it to the '
Packaged Element' containment reference list. |
PackageMerge |
createPackageMerge(Package mergedPackage)
Creates a new
PackageMerge , with the specified 'Merged Package', and appends it to the '
Package Merge' containment reference list. |
ProfileApplication |
createProfileApplication()
Creates a new
ProfileApplication and appends it to the 'Profile Application' containment
reference list. |
MDWEList<Profile> |
getAllAppliedProfiles()
Retrieves all the profiles that are applied to this package, including profiles applied to its nesting package(s).
|
MDWEList<ProfileApplication> |
getAllProfileApplications()
Retrieves all the profile applications for this package, including profile applications for its nesting package(s).
|
Profile |
getAppliedProfile(String qualifiedName)
Retrieves the profile with the specified qualified name that is applied to this package, or null if no such profile is applied.
|
Profile |
getAppliedProfile(String qualifiedName,
boolean recurse)
Retrieves the profile with the specified qualified name that is applied to this package or any of its nesting packages (if indicated), or null
if no such profile is applied.
|
MDWEList<Profile> |
getAppliedProfiles()
Retrieves the profiles that are applied to this package.
|
Package |
getNestedPackage(String name)
Retrieves the first
Package with the specified 'Name' from the '
Nested Package' reference list. |
Package |
getNestedPackage(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
Package with the specified 'Name' from the '
Nested Package' reference list. |
MDWEList<Package> |
getNestedPackages()
Returns the value of the 'Nested Package' reference list.
|
Package |
getNestingPackage()
Returns the value of the 'Nesting Package' reference.
|
Type |
getOwnedType(String name)
Retrieves the first
Type with the specified 'Name' from the 'Owned Type'
reference list. |
Type |
getOwnedType(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
Type with the specified 'Name' from the 'Owned Type'
reference list. |
MDWEList<Type> |
getOwnedTypes()
Returns the value of the 'Owned Type' reference list.
|
PackageableElement |
getPackagedElement(String name)
Retrieves the first
PackageableElement with the specified 'Name' from the '
Packaged Element' containment reference list. |
PackageableElement |
getPackagedElement(String name,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first
PackageableElement with the specified 'Name' from the '
Packaged Element' containment reference list. |
MDWEList<PackageableElement> |
getPackagedElements()
Returns the value of the 'Packaged Element' containment reference list.
|
PackageMerge |
getPackageMerge(Package mergedPackage)
Retrieves the first
PackageMerge with the specified 'Merged Package' from the '
Package Merge' containment reference list. |
PackageMerge |
getPackageMerge(Package mergedPackage,
boolean createOnDemand)
Retrieves the first
PackageMerge with the specified 'Merged Package' from the '
Package Merge' containment reference list. |
MDWEList<PackageMerge> |
getPackageMerges()
Returns the value of the 'Package Merge' containment reference list.
|
ProfileApplication |
getProfileApplication(Profile profile)
Retrieves the application of the specified profile to this package, or null if no such profile is applied.
|
ProfileApplication |
getProfileApplication(Profile profile,
boolean recurse)
Retrieves the application of the specified profile to this package or any of its nesting packages (if indicated), or null if no such profile is
applied.
|
MDWEList<ProfileApplication> |
getProfileApplications()
Returns the value of the 'Profile Application' containment reference list.
|
boolean |
isModelLibrary()
Determines whether this package is a model library.
|
boolean |
isProfileApplied(Profile profile)
Determines whether the specified profile is applied to this package.
|
boolean |
makesVisible(NamedElement el)
The query makesVisible() defines whether a Package makes an element visible outside itself.
|
void |
setNestingPackage(Package value)
Sets the value of the '
Nesting Package ' reference. |
MDWEList<EObject> |
unapplyProfile(Profile profile)
Unapplies the specified profile from this package and automatically unapplies stereotypes in the profile from elements within this package's
namespace hieararchy.
|
boolean |
validateElementsPublicOrPrivate(DiagnosticChain diagnostics,
Map context)
If an element that is owned by a package has visibility, it is public or private.
|
MDWEList<PackageableElement> |
visibleMembers()
The query visibleMembers() defines which members of a Package can be accessed outside it.
|
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<PackageMerge> getPackageMerges()
PackageMerge
.
It is bidirectional and its opposite is 'Receiving Package
'.
References the PackageMerges that are owned by this Package.
UMLPackage.getPackage_PackageMerge()
,
PackageMerge.getReceivingPackage()
PackageMerge createPackageMerge(Package mergedPackage)
PackageMerge
, with the specified 'Merged Package', and appends it to the '
Package Merge' containment reference list.
mergedPackage
- The 'Merged Package' for the new PackageMerge
, or null
.PackageMerge
.getPackageMerges()
PackageMerge getPackageMerge(Package mergedPackage)
PackageMerge
with the specified 'Merged Package' from the '
Package Merge' containment reference list.
mergedPackage
- The 'Merged Package' of the PackageMerge
to retrieve, or null
.PackageMerge
with the specified 'Merged Package', or null
.getPackageMerges()
PackageMerge getPackageMerge(Package mergedPackage, boolean createOnDemand)
PackageMerge
with the specified 'Merged Package' from the '
Package Merge' containment reference list.
mergedPackage
- The 'Merged Package' of the PackageMerge
to retrieve, or null
.createOnDemand
- Whether to create a PackageMerge
on demand if not found.PackageMerge
with the specified 'Merged Package', or null
.getPackageMerges()
MDWEList<PackageableElement> getPackagedElements()
PackageableElement
.
Specifies the packageable elements that are owned by this Package.
UMLPackage.getPackage_PackagedElement()
PackageableElement createPackagedElement(String name, EClass eClass)
PackageableElement
, with the specified 'Name', and appends it to the '
Packaged Element' containment reference list.
name
- The 'Name' for the new PackageableElement
, or null
.eClass
- The Ecore class of the PackageableElement
to create.PackageableElement
.getPackagedElements()
PackageableElement getPackagedElement(String name)
PackageableElement
with the specified 'Name' from the '
Packaged Element' containment reference list.
name
- The 'Name' of the PackageableElement
to retrieve, or null
.PackageableElement
with the specified 'Name', or null
.getPackagedElements()
PackageableElement getPackagedElement(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
PackageableElement
with the specified 'Name' from the '
Packaged Element' containment reference list.
name
- The 'Name' of the PackageableElement
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the PackageableElement
to retrieve, or null
.createOnDemand
- Whether to create a PackageableElement
on demand if not found.PackageableElement
with the specified 'Name', or null
.getPackagedElements()
MDWEList<Type> getOwnedTypes()
Type
.
It is bidirectional and its opposite is 'Package
'.
References the packaged elements that are Types.
UMLPackage.getPackage_OwnedType()
,
Type.getPackage()
Type createOwnedType(String name, EClass eClass)
Type
, with the specified 'Name', and appends it to the '
Owned Type' reference list.
name
- The 'Name' for the new Type
, or null
.eClass
- The Ecore class of the Type
to create.Type
.getOwnedTypes()
Type getOwnedType(String name)
Type
with the specified 'Name' from the 'Owned Type'
reference list.
name
- The 'Name' of the Type
to retrieve, or null
.Type
with the specified 'Name', or null
.getOwnedTypes()
Type getOwnedType(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Type
with the specified 'Name' from the 'Owned Type'
reference list.
name
- The 'Name' of the Type
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Type
to retrieve, or null
.createOnDemand
- Whether to create a Type
on demand if not found.Type
with the specified 'Name', or null
.getOwnedTypes()
MDWEList<Package> getNestedPackages()
Package
.
It is bidirectional and its opposite is 'Nesting Package
'.
References the packaged elements that are Packages.
UMLPackage.getPackage_NestedPackage()
,
getNestingPackage()
Package createNestedPackage(String name, EClass eClass)
Package
, with the specified 'Name', and appends it to the '
Nested Package' reference list.
name
- The 'Name' for the new Package
, or null
.eClass
- The Ecore class of the Package
to create.Package
.getNestedPackages()
Package getNestedPackage(String name)
Package
with the specified 'Name' from the '
Nested Package' reference list.
name
- The 'Name' of the Package
to retrieve, or null
.Package
with the specified 'Name', or null
.getNestedPackages()
Package getNestedPackage(String name, boolean ignoreCase, EClass eClass, boolean createOnDemand)
Package
with the specified 'Name' from the '
Nested Package' reference list.
name
- The 'Name' of the Package
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Package
to retrieve, or null
.createOnDemand
- Whether to create a Package
on demand if not found.Package
with the specified 'Name', or null
.getNestedPackages()
Package getNestingPackage()
Nested Package
'.
References the Package that owns this Package.
setNestingPackage(Package)
,
UMLPackage.getPackage_NestingPackage()
,
getNestedPackages()
void setNestingPackage(Package value)
Nesting Package
' reference.
value
- the new value of the 'Nesting Package' reference.getNestingPackage()
MDWEList<ProfileApplication> getProfileApplications()
ProfileApplication
.
It is bidirectional and its opposite is 'Applying Package
'.
References the ProfileApplications that indicate which profiles have been applied to the Package.
UMLPackage.getPackage_ProfileApplication()
,
ProfileApplication.getApplyingPackage()
ProfileApplication createProfileApplication()
ProfileApplication
and appends it to the 'Profile Application' containment
reference list.
ProfileApplication
.getProfileApplications()
boolean validateElementsPublicOrPrivate(DiagnosticChain diagnostics, Map context)
Package createNestedPackage(String name)
Package
, with the specified 'Name', and appends it to the '
Nested Package' reference list.
name
- The 'Name' for the new Package
, or null
.Package
.getNestedPackages()
Class createOwnedClass(String name, boolean isAbstract)
Enumeration createOwnedEnumeration(String name)
PrimitiveType createOwnedPrimitiveType(String name)
boolean isProfileApplied(Profile profile)
EList<Stereotype> allApplicableStereotypes()
From package UML::Packages.
MDWEList<EObject> applyProfile(Profile profile)
MDWEList<EObject> unapplyProfile(Profile profile)
MDWEList<Profile> getAppliedProfiles()
Profile getAppliedProfile(String qualifiedName)
Profile getAppliedProfile(String qualifiedName, boolean recurse)
MDWEList<ProfileApplication> getAllProfileApplications()
ProfileApplication getProfileApplication(Profile profile)
ProfileApplication getProfileApplication(Profile profile, boolean recurse)
Interface createOwnedInterface(String name)
boolean isModelLibrary()
MDWEList<Profile> getAllAppliedProfiles()
MDWEList<PackageableElement> visibleMembers()
boolean makesVisible(NamedElement el)