|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Package
A representation of the model object 'Package'. A package is used to group elements, and provides a namespace for the grouped elements. A package can have one or more profile applications to indicate which profiles have been applied. Because a profile is a package, it is possible to apply a profile not only to packages, but also to profiles. Package specializes TemplateableElement and PackageableElement specializes ParameterableElement to specify that a package can be used as a template and a PackageableElement as a template parameter.
The following features are supported:
UMLPackage.getPackage()
Field Summary |
---|
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
SEPARATOR |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
SEPARATOR |
Method Summary | |
---|---|
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.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(java.lang.String name)
Creates a new Package , with the specified 'Name', and appends it to the 'Nested Package' reference list |
Package |
createNestedPackage(java.lang.String name,
org.eclipse.emf.ecore.EClass eClass)
Creates a new Package , with the specified 'Name', and appends it to the 'Nested Package' reference list |
Class |
createOwnedClass(java.lang.String name,
boolean isAbstract)
Creates a(n) (abstract) class with the specified name as an owned type of this package. |
Enumeration |
createOwnedEnumeration(java.lang.String name)
Creates a enumeration with the specified name as an owned type of this package. |
Interface |
createOwnedInterface(java.lang.String name)
Creates an interface with the specified name as an owned type of this package. |
PrimitiveType |
createOwnedPrimitiveType(java.lang.String name)
Creates a primitive type with the specified name as an owned type of this package. |
Type |
createOwnedType(java.lang.String name,
org.eclipse.emf.ecore.EClass eClass)
Creates a new Type , with the specified 'Name', and appends it to the 'Owned Type' reference list |
PackageableElement |
createPackagedElement(java.lang.String name,
org.eclipse.emf.ecore.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 |
org.eclipse.emf.common.util.EList<Profile> |
getAllAppliedProfiles()
Retrieves all the profiles that are applied to this package, including profiles applied to its nesting package(s) |
org.eclipse.emf.common.util.EList<ProfileApplication> |
getAllProfileApplications()
Retrieves all the profile applications for this package, including profile applications for its nesting package(s) |
Profile |
getAppliedProfile(java.lang.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(java.lang.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. |
org.eclipse.emf.common.util.EList<Profile> |
getAppliedProfiles()
Retrieves the profiles that are applied to this package |
Package |
getNestedPackage(java.lang.String name)
Retrieves the first Package with the specified 'Name' from the 'Nested Package' reference list |
Package |
getNestedPackage(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first Package with the specified 'Name' from the 'Nested Package' reference list |
org.eclipse.emf.common.util.EList<Package> |
getNestedPackages()
Returns the value of the 'Nested Package' reference list. |
Package |
getNestingPackage()
Returns the value of the 'Nesting Package' reference. |
Type |
getOwnedType(java.lang.String name)
Retrieves the first Type with the specified 'Name' from the 'Owned Type' reference list |
Type |
getOwnedType(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first Type with the specified 'Name' from the 'Owned Type' reference list |
org.eclipse.emf.common.util.EList<Type> |
getOwnedTypes()
Returns the value of the 'Owned Type' reference list. |
PackageableElement |
getPackagedElement(java.lang.String name)
Retrieves the first PackageableElement with the specified 'Name' from the 'Packaged Element' containment reference list |
PackageableElement |
getPackagedElement(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first PackageableElement with the specified 'Name' from the 'Packaged Element' containment reference list |
org.eclipse.emf.common.util.EList<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 |
org.eclipse.emf.common.util.EList<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. |
org.eclipse.emf.common.util.EList<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 |
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.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(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
If an element that is owned by a package has visibility, it is public or private. |
org.eclipse.emf.common.util.EList<PackageableElement> |
visibleMembers()
The query visibleMembers() defines which members of a Package can be accessed outside it. |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, 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 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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
---|
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, 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 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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
---|
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Method Detail |
---|
org.eclipse.emf.common.util.EList<PackageMerge> getPackageMerges()
PackageMerge
.
It is bidirectional and its opposite is 'Receiving Package
'.
This feature subsets the following features:
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()
org.eclipse.emf.common.util.EList<PackageableElement> getPackagedElements()
PackageableElement
.
This feature subsets the following features:
Specifies the packageable elements that are owned by this Package.
UMLPackage.getPackage_PackagedElement()
PackageableElement createPackagedElement(java.lang.String name, org.eclipse.emf.ecore.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(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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()
org.eclipse.emf.common.util.EList<Type> getOwnedTypes()
Type
.
It is bidirectional and its opposite is 'Package
'.
This feature subsets the following features:
References the packaged elements that are Types.
UMLPackage.getPackage_OwnedType()
,
Type.getPackage()
Type createOwnedType(java.lang.String name, org.eclipse.emf.ecore.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(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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()
org.eclipse.emf.common.util.EList<Package> getNestedPackages()
Package
.
It is bidirectional and its opposite is 'Nesting Package
'.
This feature subsets the following features:
References the packaged elements that are Packages.
UMLPackage.getPackage_NestedPackage()
,
getNestingPackage()
Package createNestedPackage(java.lang.String name, org.eclipse.emf.ecore.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(java.lang.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(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.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
'.
This feature subsets the following features:
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()
org.eclipse.emf.common.util.EList<ProfileApplication> getProfileApplications()
ProfileApplication
.
It is bidirectional and its opposite is 'Applying Package
'.
This feature subsets the following features:
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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
Package createNestedPackage(java.lang.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(java.lang.String name, boolean isAbstract)
name
- The name for the new class, or null.isAbstract
- Whether the new class should be abstract.
Enumeration createOwnedEnumeration(java.lang.String name)
name
- The name for the new enumeration, or null.
PrimitiveType createOwnedPrimitiveType(java.lang.String name)
name
- The name for the new primitive type, or null.
boolean isProfileApplied(Profile profile)
profile
- The profile in question.
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> applyProfile(Profile profile)
profile
- The profile to apply.
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> unapplyProfile(Profile profile)
profile
- The profile to unapply.
org.eclipse.emf.common.util.EList<Profile> getAppliedProfiles()
Profile getAppliedProfile(java.lang.String qualifiedName)
qualifiedName
- The qualified name of the applied profile to retrieve.
Profile getAppliedProfile(java.lang.String qualifiedName, boolean recurse)
qualifiedName
- The qualified name of the applied profile to retrieve.recurse
- Whether to look in nesting packages.
org.eclipse.emf.common.util.EList<ProfileApplication> getAllProfileApplications()
ProfileApplication getProfileApplication(Profile profile)
profile
- The profile whose application to retrieve.
ProfileApplication getProfileApplication(Profile profile, boolean recurse)
profile
- The profile whose application to retrieve.recurse
- Whether to look in nesting packages.
Interface createOwnedInterface(java.lang.String name)
name
- The name for the new interface, or null.
boolean isModelLibrary()
org.eclipse.emf.common.util.EList<Profile> getAllAppliedProfiles()
org.eclipse.emf.common.util.EList<PackageableElement> visibleMembers()
boolean makesVisible(NamedElement el)
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |