All Superinterfaces:
BaseElement, Cloneable, Comparable, Element, org.eclipse.emf.ecore.EObject, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, PackageableElement, ParameterableElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, TemplateableElement
All Known Subinterfaces:
Model, Profile

public interface Package extends PackageableElement, Namespace, TemplateableElement
A representation of the model object 'Package'.

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. A package is used to group elements, and provides a namespace for the grouped elements.

The following features are supported:

See Also:
Model:
annotation="MOF package='classes.mdkernel'"
Generated:
  • Method Details

    • getOwnedStereotype

      Collection<Stereotype> getOwnedStereotype()
      Returns the value of the 'Owned Stereotype' reference list. The list contents are of type Stereotype. It is bidirectional and its opposite is 'package Of Owned Stereotype'. References the Stereotypes that are owned by the Package.
      Returns:
      the value of the 'Owned Stereotype' reference list.
      See Also:
      Model:
      opposite="_packageOfOwnedStereotype" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getProfileApplication

      Collection<ProfileApplication> getProfileApplication()
      Returns the value of the 'Profile Application' containment reference list. The list contents are of type ProfileApplication. It is bidirectional and its opposite is 'Applying Package'. References the ProfileApplications that indicate which profiles have been applied to the Package.
      Returns:
      the value of the 'Profile Application' containment reference list.
      See Also:
      Model:
      opposite="applyingPackage" containment="true" resolveProxies="true" ordered="false"
      Generated:
    • get_packageImportOfImportedPackage

      Collection<PackageImport> get_packageImportOfImportedPackage()
      Returns the value of the 'package Import Of Imported Package' reference list. The list contents are of type PackageImport. It is bidirectional and its opposite is 'Imported Package'.

      If the meaning of the 'package Import Of Imported Package' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'package Import Of Imported Package' reference list.
      See Also:
      Model:
      opposite="importedPackage" ordered="false"
      Generated:
    • getURI

      @CheckForNull String getURI()
      Returns the value of the 'URI' attribute. The default value is "". Provides an identifier for the package that can be used for many purposes. A URI is the universally unique identification of the package following the IETF URI specification, RFC 2396 http://www.ietf.org/rfc/rfc2396.txt and it must comply with those syntax rules.
      Returns:
      the value of the 'URI' attribute.
      See Also:
      Model:
      default="" dataType="com.nomagic.uml2.ext.magicdraw.String" ordered="false"
      Generated:
    • setURI

      void setURI(@CheckForNull String value)
      Sets the value of the 'URI' attribute.
      Parameters:
      value - the new value of the 'URI' attribute.
      See Also:
      Generated:
    • getPackageMerge

      Collection<PackageMerge> getPackageMerge()
      Returns the value of the 'Package Merge' containment reference list. The list contents are of type PackageMerge. It is bidirectional and its opposite is 'Receiving Package'. References the PackageMerges that are owned by this Package.
      Returns:
      the value of the 'Package Merge' containment reference list.
      See Also:
      Model:
      opposite="receivingPackage" containment="true" resolveProxies="true" ordered="false"
      Generated:
    • get_packageMergeOfMergedPackage

      Collection<PackageMerge> get_packageMergeOfMergedPackage()
      Returns the value of the 'package Merge Of Merged Package' reference list. The list contents are of type PackageMerge. It is bidirectional and its opposite is 'Merged Package'.

      If the meaning of the 'package Merge Of Merged Package' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'package Merge Of Merged Package' reference list.
      See Also:
      Model:
      opposite="mergedPackage" ordered="false"
      Generated:
    • getPackagedElement

      Collection<PackageableElement> getPackagedElement()
      Returns the value of the 'Packaged Element' containment reference list. The list contents are of type PackageableElement. It is bidirectional and its opposite is 'Owning Package'. Specifies the packageable elements that are owned by this Package.
      Returns:
      the value of the 'Packaged Element' containment reference list.
      See Also:
      Model:
      opposite="owningPackage" containment="true" resolveProxies="true" ordered="false"
      Generated:
    • getOwnedType

      Collection<Type> getOwnedType()
      Returns the value of the 'Owned Type' reference list. The list contents are of type Type. It is bidirectional and its opposite is 'Package'. References the packaged elements that are Types.
      Returns:
      the value of the 'Owned Type' reference list.
      See Also:
      Model:
      opposite="package" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getNestedPackage

      Collection<Package> getNestedPackage()
      Returns the value of the 'Nested Package' reference list. The list contents are of type Package. It is bidirectional and its opposite is 'Nesting Package'. References the packaged elements that are Packages.
      Returns:
      the value of the 'Nested Package' reference list.
      See Also:
      Model:
      opposite="nestingPackage" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getNestingPackage

      @CheckForNull Package getNestingPackage()
      Returns the value of the 'Nesting Package' reference. It is bidirectional and its opposite is 'Nested Package'. References the Package that owns this Package.
      Returns:
      the value of the 'Nesting Package' reference.
      See Also:
      Model:
      opposite="nestedPackage" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • hasOwnedStereotype

      boolean hasOwnedStereotype() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasProfileApplication

      boolean hasProfileApplication() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_packageImportOfImportedPackage

      boolean has_packageImportOfImportedPackage() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasPackageMerge

      boolean hasPackageMerge() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_packageMergeOfMergedPackage

      boolean has_packageMergeOfMergedPackage() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasPackagedElement

      boolean hasPackagedElement() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasOwnedType

      boolean hasOwnedType() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasNestedPackage

      boolean hasNestedPackage() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated: