org.eclipse.uml2
Interface PackageMerge

All Superinterfaces:
DirectedRelationship, Element, EModelElement, EObject, Notifier, Relationship

public interface PackageMerge
extends DirectedRelationship

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:

See Also:
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

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getMergingPackage

public Package getMergingPackage()
Returns the value of the 'Merging Package' container reference. It is bidirectional and its opposite is '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.

Returns:
the value of the 'Merging Package' container reference.
See Also:
setMergingPackage(org.eclipse.uml2.Package), UML2Package.getPackageMerge_MergingPackage(), Package.getPackageMerges()

setMergingPackage

public void setMergingPackage(Package value)
Sets the value of the 'Merging Package' container reference.

Parameters:
value - the new value of the 'Merging Package' container reference.
See Also:
getMergingPackage()

getMergedPackage

public Package getMergedPackage()
Returns the value of the 'Merged Package' reference.

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.

Returns:
the value of the 'Merged Package' reference.
See Also:
setMergedPackage(org.eclipse.uml2.Package), UML2Package.getPackageMerge_MergedPackage()

setMergedPackage

public void setMergedPackage(Package value)
Sets the value of the 'Merged Package' reference.

Parameters:
value - the new value of the 'Merged Package' reference.
See Also:
getMergedPackage()

getSources

public EList getSources()

Specified by:
getSources in interface DirectedRelationship
Returns:
the value of the 'Source' reference list.
See Also:
UML2Package.getDirectedRelationship_Source()

getOwner

public Element getOwner()

Specified by:
getOwner in interface Element
Returns:
the value of the 'Owner' reference.
See Also:
UML2Package.getElement_Owner(), Element.getOwnedElements()

getTargets

public EList getTargets()

Specified by:
getTargets in interface DirectedRelationship
Returns:
the value of the 'Target' reference list.
See Also:
UML2Package.getDirectedRelationship_Target()

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.