|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Package Merge'. A package merge is a relationship between two packages, where the contents of the target package (the one pointed at) is merged with the contents of the source package through specialization and redefinition, where applicable. This is a mechanism that should be used when elements of the same name are intended to represent the same concept, regardless of the package in which they are defined. A merging package will take elements of the same kind with the same name from one or more packages and merge them together into a single element using generalization and redefinitions. It should be noted that a package merge can be viewed as a short-hand way of explicitly defining those generalizations and redefinitions. The merged packages are still available, and the elements in those packages can be separately qualified. From an XMI point of view, it is either possible to exchange a model with all PackageMerges retained or a model where all PackageMerges have been transformed away (in which case package imports, generalizations, and redefinitions are used instead).
The following features are supported:
UML2Package.getPackageMerge()
Field Summary | |
static String |
copyright
|
Method Summary | |
Package |
getMergedPackage()
Returns the value of the 'Merged Package' reference |
Package |
getMergingPackage()
Returns the value of the 'Merging Package' container reference. |
Element |
getOwner()
|
EList |
getSources()
|
EList |
getTargets()
|
void |
setMergedPackage(Package value)
Sets the value of the ' Merged Package ' reference |
void |
setMergingPackage(Package value)
Sets the value of the ' Merging Package ' container reference |
Methods inherited from interface org.eclipse.uml2.DirectedRelationship |
getRelatedElements |
Methods inherited from interface org.eclipse.uml2.Element |
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf |
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, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
public static final String copyright
Method Detail |
public Package getMergingPackage()
Package Merge
'.
If the meaning of the 'Merging Package' container reference isn't clear, there really should be more of a description here...
References the Package that is being extended with the contents of the target of the PackageMerge. Subsets Element::owner and DirectedRelationship::source.
setMergingPackage(org.eclipse.uml2.Package)
,
UML2Package.getPackageMerge_MergingPackage()
,
Package.getPackageMerges()
public void setMergingPackage(Package value)
Merging Package
' container reference.
value
- the new value of the 'Merging Package' container reference.getMergingPackage()
public Package getMergedPackage()
If the meaning of the 'Merged Package' reference isn't clear, there really should be more of a description here...
References the Package that is to be merged with the source of the PackageMerge. Subsets DirectedRelationship;;target.
setMergedPackage(org.eclipse.uml2.Package)
,
UML2Package.getPackageMerge_MergedPackage()
public void setMergedPackage(Package value)
Merged Package
' reference.
value
- the new value of the 'Merged Package' reference.getMergedPackage()
public EList getSources()
getSources
in interface DirectedRelationship
UML2Package.getDirectedRelationship_Source()
public Element getOwner()
getOwner
in interface Element
UML2Package.getElement_Owner()
,
Element.getOwnedElements()
public EList getTargets()
getTargets
in interface DirectedRelationship
UML2Package.getDirectedRelationship_Target()
|
Copyright 2003, 2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |