public interface Package extends PackageableElement, Namespace, TemplateableElement
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:
UMLPackage.getPackage()| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<PackageImport> |
get_packageImportOfImportedPackage()
Returns the value of the 'package Import Of Imported Package' reference list.
|
java.util.Collection<PackageMerge> |
get_packageMergeOfMergedPackage()
Returns the value of the 'package Merge Of Merged Package' reference list.
|
java.util.Collection<Package> |
getNestedPackage()
Returns the value of the 'Nested Package' reference list.
|
Package |
getNestingPackage()
Returns the value of the 'Nesting Package' reference.
|
java.util.Collection<Stereotype> |
getOwnedStereotype()
Returns the value of the 'Owned Stereotype' reference list.
|
java.util.Collection<Type> |
getOwnedType()
Returns the value of the 'Owned Type' reference list.
|
java.util.Collection<PackageableElement> |
getPackagedElement()
Returns the value of the 'Packaged Element' containment reference list.
|
java.util.Collection<PackageMerge> |
getPackageMerge()
Returns the value of the 'Package Merge' containment reference list.
|
java.util.Collection<ProfileApplication> |
getProfileApplication()
Returns the value of the 'Profile Application' containment reference list.
|
java.lang.String |
getURI()
Returns the value of the 'URI' attribute.
|
boolean |
has_packageImportOfImportedPackage() |
boolean |
has_packageMergeOfMergedPackage() |
boolean |
hasNestedPackage() |
boolean |
hasOwnedStereotype() |
boolean |
hasOwnedType() |
boolean |
hasPackagedElement() |
boolean |
hasPackageMerge() |
boolean |
hasProfileApplication() |
void |
setURI(java.lang.String value)
Sets the value of the '
URI' attribute. |
get_componentOfPackagedElement, get_elementImportOfImportedElement, get_manifestationOfUtilizedElement, getOwningPackage, getVisibility, has_elementImportOfImportedElement, has_manifestationOfUtilizedElement, set_componentOfPackagedElement, setOwningPackage, setVisibilityget_templateParameterOfDefault, get_templateParameterOfOwnedDefault, get_templateParameterSubstitutionOfActual, get_templateParameterSubstitutionOfOwnedActual, getOwningTemplateParameter, getTemplateParameter, has_templateParameterOfDefault, has_templateParameterSubstitutionOfActual, set_templateParameterOfOwnedDefault, set_templateParameterSubstitutionOfOwnedActual, setOwningTemplateParameter, setTemplateParametergetElementImport, getImportedMember, getMember, getOwnedDiagram, getOwnedMember, getOwnedRule, getPackageImport, hasElementImport, hasImportedMember, hasMember, hasOwnedDiagram, hasOwnedMember, hasOwnedRule, hasPackageImportget_considerIgnoreFragmentOfMessage, get_durationObservationOfEvent, get_informationFlowOfInformationSource, get_informationFlowOfInformationTarget, get_messageOfSignature, get_namespaceOfMember, get_timeObservationOfEvent, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, getSupplierDependency, has_considerIgnoreFragmentOfMessage, has_durationObservationOfEvent, has_informationFlowOfInformationSource, has_informationFlowOfInformationTarget, has_messageOfSignature, has_namespaceOfMember, has_timeObservationOfEvent, hasClientDependency, hasSupplierDependency, setName, setNameExpression, setNamespaceget_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotypeInstance, getOwnedComment, getOwnedElement, getOwner, getSyncElement, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasOwnedComment, hasOwnedElement, setAppliedStereotypeInstance, setOwner, setSyncElementget_representationText, getLocalID, isInvalid, set_representationText, setLocalID, sGetLocalIDgetID, getMDExtension, getMdExtensions, setIDeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliveraccept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, removePropertyChangeListener, sGetIDrefClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostCompositerefGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValueequals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraintsgetOwnedTemplateSignature, getTemplateBinding, hasTemplateBinding, setOwnedTemplateSignaturejava.util.Collection<Stereotype> getOwnedStereotype()
Stereotype.
It is bidirectional and its opposite is
'package Of Owned Stereotype'.
References the Stereotypes that are owned by the Package.
UMLPackage.getPackage_OwnedStereotype(),
com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype#get_packageOfOwnedStereotypejava.util.Collection<ProfileApplication> getProfileApplication()
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()java.util.Collection<PackageImport> get_packageImportOfImportedPackage()
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...
UMLPackage.getPackage__packageImportOfImportedPackage(),
PackageImport.getImportedPackage()@CheckForNull java.lang.String getURI()
"".
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.
setURI(String),
UMLPackage.getPackage_URI()void setURI(@CheckForNull
java.lang.String value)
URI' attribute.
value - the new value of the 'URI' attribute.getURI()java.util.Collection<PackageMerge> getPackageMerge()
PackageMerge.
It is bidirectional and its opposite is 'Receiving Package'.
References the PackageMerges that are owned by this Package.
UMLPackage.getPackage_PackageMerge(),
PackageMerge.getReceivingPackage()java.util.Collection<PackageMerge> get_packageMergeOfMergedPackage()
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...
UMLPackage.getPackage__packageMergeOfMergedPackage(),
PackageMerge.getMergedPackage()java.util.Collection<PackageableElement> getPackagedElement()
PackageableElement.
It is bidirectional and its opposite is 'Owning Package'.
Specifies the packageable elements that are owned by this Package.
UMLPackage.getPackage_PackagedElement(),
PackageableElement.getOwningPackage()java.util.Collection<Type> getOwnedType()
Type.
It is bidirectional and its opposite is 'Package'.
References the packaged elements that are Types.
UMLPackage.getPackage_OwnedType(),
Type.getPackage()java.util.Collection<Package> getNestedPackage()
Package.
It is bidirectional and its opposite is 'Nesting Package'.
References the packaged elements that are Packages.
UMLPackage.getPackage_NestedPackage(),
getNestingPackage()@CheckForNull Package getNestingPackage()
Nested Package'.
References the Package that owns this Package.
UMLPackage.getPackage_NestingPackage(),
getNestedPackage()boolean hasOwnedStereotype()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiExceptionboolean hasProfileApplication()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiExceptionboolean has_packageImportOfImportedPackage()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiExceptionboolean hasPackageMerge()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiExceptionboolean has_packageMergeOfMergedPackage()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiExceptionboolean hasPackagedElement()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiExceptionboolean hasOwnedType()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiExceptionboolean hasNestedPackage()
throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException