|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> org.eclipse.emf.ecore.util.EcoreUtil.Copier org.eclipse.uml2.uml.util.UMLUtil.PackageMerger
public static class UMLUtil.PackageMerger
A copier that merges the contents of packages involved in package merge relationships based on the rules defined in the UML specification.
Nested Class Summary | |
---|---|
protected class |
UMLUtil.PackageMerger.BodyMatcher
|
protected class |
UMLUtil.PackageMerger.KeyMatcher
|
protected class |
UMLUtil.PackageMerger.NameMatcher
|
protected class |
UMLUtil.PackageMerger.ResultingQNameMatcher
|
protected class |
UMLUtil.PackageMerger.SourceMatcher
|
protected class |
UMLUtil.PackageMerger.StringValueMatcher
|
protected class |
UMLUtil.PackageMerger.TypeMatcher
|
Field Summary | |
---|---|
static int |
ASSOCIATION_SPECIALIZATION
The diagnostic code for cases where an association specialization is missing. |
static int |
CAPABILITY
The diagnostic code for cases where capability information is missing. |
static int |
DIFFERENT_PROPERTY_STATICITY
The diagnostic code for cases where the staticity of merged properties does not match. |
static int |
DIFFERENT_PROPERTY_UNIQUENESS
The diagnostic code for cases where the uniqueness of merged properties does not match. |
static int |
EMPTY_UNION
The diagnostic code for cases where an empty union is detected. |
static int |
IMPLICIT_REDEFINITION
The diagnostic code for cases where an implicit redefinition is detected. |
static int |
INVALID_REDEFINITION
The diagnostic code for cases where an invalid redefinition is detected. |
static int |
INVALID_SUBSET
The diagnostic code for cases where an invalid subset is detected. |
protected java.util.Collection<Package> |
mergedPackages
|
static java.lang.String |
OPTION__ASSOCIATION_SPECIALIZATIONS
The option for handling cases where an association specialization is missing. |
static java.lang.String |
OPTION__CAPABILITIES
The option for handling cases where capability information is missing. |
static java.lang.String |
OPTION__DIFFERENT_PROPERTY_STATICITY
The option for handling cases where the staticity of merged properties does not match. |
static java.lang.String |
OPTION__DIFFERENT_PROPERTY_UNIQUENESS
The option for handling cases where the uniqueness of merged properties does not match. |
static java.lang.String |
OPTION__EMPTY_UNIONS
The option for handling cases where an empty union is detected. |
static java.lang.String |
OPTION__IMPLICIT_REDEFINITIONS
The option for handling cases where an implicit redefinition is detected. |
static java.lang.String |
OPTION__INVALID_REDEFINITIONS
The option for handling cases where an invalid redefinition is detected. |
static java.lang.String |
OPTION__INVALID_SUBSETS
The option for handling cases where an invalid subset is detected. |
static java.lang.String |
OPTION__REDUNDANT_GENERALIZATIONS
The option for handling cases where a redundant generalization is detected. |
protected Package |
receivingPackage
|
static int |
REDUNDANT_GENERALIZATION
The diagnostic code for cases where a redundant generalization is detected. |
protected java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<org.eclipse.emf.ecore.EObject>> |
resultingToMergedEObjectMap
|
Fields inherited from class org.eclipse.emf.ecore.util.EcoreUtil.Copier |
---|
resolveProxies, useOriginalReferences |
Constructor Summary | |
---|---|
UMLUtil.PackageMerger()
|
Method Summary | ||
---|---|---|
void |
clear()
|
|
boolean |
containsKey(java.lang.Object key)
|
|
boolean |
containsValue(java.lang.Object value)
|
|
org.eclipse.emf.ecore.EObject |
copy(org.eclipse.emf.ecore.EObject eObject)
|
|
|
copyAll(java.util.Collection<? extends T> eObjects)
|
|
protected void |
copyAttribute(org.eclipse.emf.ecore.EAttribute eAttribute,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EObject copyEObject)
|
|
protected void |
copyContainment(org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EObject copyEObject)
|
|
protected void |
copyReference(org.eclipse.emf.ecore.EReference eReference,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EObject copyEObject)
|
|
protected org.eclipse.emf.ecore.EObject |
createCopy(org.eclipse.emf.ecore.EObject eObject)
|
|
java.util.Set<java.util.Map.Entry<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>> |
entrySet()
|
|
org.eclipse.emf.ecore.EObject |
get(java.lang.Object key)
|
|
protected java.util.Collection<Package> |
getAllMergedPackages(Package package_)
|
|
protected
|
getMatchCandidates(EO eObject)
|
|
protected
|
getMergedEObjects(EO resultingEObject)
|
|
protected
|
getPreviouslyMergedEObject(EO resultingEObject)
|
|
protected java.lang.String |
getResultingQName(org.eclipse.emf.ecore.EObject eObject)
|
|
boolean |
isEmpty()
|
|
java.util.Set<org.eclipse.emf.ecore.EObject> |
keySet()
|
|
java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<org.eclipse.emf.ecore.EObject>> |
merge(Package package_,
java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Merges the contents of (all of) the packages merged by the specified package using the specified options, reporting problems to the specified diagnostics, within the specified context. |
|
protected void |
mergeAssociation_IsDerived(Association receivingAssociation,
Association mergedAssociation)
|
|
protected void |
mergeClassifier_IsAbstract(Classifier receivingClassifier,
Classifier mergedClassifier)
|
|
protected void |
mergeLiteralInteger_Value(LiteralInteger receivingLiteralInteger,
LiteralInteger mergedLiteralInteger)
|
|
protected void |
mergeLiteralUnlimitedNatural_Value(LiteralUnlimitedNatural receivingLiteralUnlimitedNatural,
LiteralUnlimitedNatural mergedLiteralUnlimitedNatural)
|
|
protected void |
mergeMultiplicityElement_IsOrdered(MultiplicityElement receivingMultiplicityElement,
MultiplicityElement mergedMultiplicityElement)
|
|
protected void |
mergeMultiplicityElement_IsUnique(MultiplicityElement receivingMultiplicityElement,
MultiplicityElement mergedMultiplicityElement)
|
|
protected void |
mergeNamedElement_Visibility(NamedElement receivingNamedElement,
NamedElement mergedNamedElement)
|
|
protected void |
mergeProperty_IsDerived(Property receivingProperty,
Property mergedProperty)
|
|
protected void |
mergeProperty_IsDerivedUnion(Property receivingProperty,
Property mergedProperty)
|
|
protected void |
mergeStructuralFeature_IsReadOnly(StructuralFeature receivingStructuralFeature,
StructuralFeature mergedStructuralFeature)
|
|
protected void |
mergeTypedElement_Type(TypedElement receivingTypedElement,
TypedElement mergedTypedElement)
|
|
protected void |
processAssociationSpecializations(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processCapabilities(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processDifferentPropertyStaticity(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processDifferentPropertyUniqueness(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processEmptyUnions(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processImplicitRedefinitions(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processInvalidRedefinitions(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processInvalidSubsets(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processOptions(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
protected void |
processRedundantGeneralizations(java.util.Map<java.lang.String,java.lang.String> options,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
|
org.eclipse.emf.ecore.EObject |
put(org.eclipse.emf.ecore.EObject key,
org.eclipse.emf.ecore.EObject value)
|
|
void |
putAll(java.util.Map<? extends org.eclipse.emf.ecore.EObject,? extends org.eclipse.emf.ecore.EObject> t)
|
|
org.eclipse.emf.ecore.EObject |
remove(java.lang.Object key)
|
|
int |
size()
|
|
java.util.Collection<org.eclipse.emf.ecore.EObject> |
values()
|
Methods inherited from class org.eclipse.emf.ecore.util.EcoreUtil.Copier |
---|
copyProxyURI, copyReferences, getTarget, getTarget |
Methods inherited from class java.util.HashMap |
---|
clone |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
public static final java.lang.String OPTION__DIFFERENT_PROPERTY_STATICITY
OPTION__IGNORE
and OPTION__REPORT
.
public static final java.lang.String OPTION__DIFFERENT_PROPERTY_UNIQUENESS
OPTION__IGNORE
and OPTION__REPORT
.
public static final java.lang.String OPTION__REDUNDANT_GENERALIZATIONS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__DISCARD
.
public static final java.lang.String OPTION__IMPLICIT_REDEFINITIONS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__INVALID_REDEFINITIONS
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final java.lang.String OPTION__INVALID_SUBSETS
OPTION__IGNORE
,
OPTION__REPORT
, OPTION__DISCARD
, and
OPTION__PROCESS
.
public static final java.lang.String OPTION__EMPTY_UNIONS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__ASSOCIATION_SPECIALIZATIONS
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final java.lang.String OPTION__CAPABILITIES
OPTION__IGNORE
,
OPTION__REPORT
, and OPTION__PROCESS
.
public static final int DIFFERENT_PROPERTY_STATICITY
public static final int DIFFERENT_PROPERTY_UNIQUENESS
public static final int REDUNDANT_GENERALIZATION
public static final int IMPLICIT_REDEFINITION
public static final int INVALID_REDEFINITION
public static final int INVALID_SUBSET
public static final int EMPTY_UNION
public static final int ASSOCIATION_SPECIALIZATION
public static final int CAPABILITY
protected Package receivingPackage
protected java.util.Collection<Package> mergedPackages
protected final java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<org.eclipse.emf.ecore.EObject>> resultingToMergedEObjectMap
Constructor Detail |
---|
public UMLUtil.PackageMerger()
Method Detail |
---|
public void clear()
clear
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
clear
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
containsKey
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
containsValue
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public java.util.Set<java.util.Map.Entry<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>> entrySet()
entrySet
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
entrySet
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public org.eclipse.emf.ecore.EObject get(java.lang.Object key)
get
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
get
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public boolean isEmpty()
isEmpty
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
isEmpty
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public java.util.Set<org.eclipse.emf.ecore.EObject> keySet()
keySet
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
keySet
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public org.eclipse.emf.ecore.EObject put(org.eclipse.emf.ecore.EObject key, org.eclipse.emf.ecore.EObject value)
put
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
put
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public void putAll(java.util.Map<? extends org.eclipse.emf.ecore.EObject,? extends org.eclipse.emf.ecore.EObject> t)
putAll
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
putAll
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public org.eclipse.emf.ecore.EObject remove(java.lang.Object key)
remove
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
remove
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public int size()
size
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
size
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
public java.util.Collection<org.eclipse.emf.ecore.EObject> values()
values
in interface java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
values
in class java.util.HashMap<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>
protected <EO extends org.eclipse.emf.ecore.EObject> java.util.List<EO> getMatchCandidates(EO eObject)
protected <EO extends org.eclipse.emf.ecore.EObject> java.util.List<EO> getMergedEObjects(EO resultingEObject)
protected <EO extends org.eclipse.emf.ecore.EObject> EO getPreviouslyMergedEObject(EO resultingEObject)
protected java.lang.String getResultingQName(org.eclipse.emf.ecore.EObject eObject)
protected void mergeAssociation_IsDerived(Association receivingAssociation, Association mergedAssociation)
protected void mergeClassifier_IsAbstract(Classifier receivingClassifier, Classifier mergedClassifier)
protected void mergeLiteralInteger_Value(LiteralInteger receivingLiteralInteger, LiteralInteger mergedLiteralInteger)
protected void mergeLiteralUnlimitedNatural_Value(LiteralUnlimitedNatural receivingLiteralUnlimitedNatural, LiteralUnlimitedNatural mergedLiteralUnlimitedNatural)
protected void mergeMultiplicityElement_IsOrdered(MultiplicityElement receivingMultiplicityElement, MultiplicityElement mergedMultiplicityElement)
protected void mergeMultiplicityElement_IsUnique(MultiplicityElement receivingMultiplicityElement, MultiplicityElement mergedMultiplicityElement)
protected void mergeNamedElement_Visibility(NamedElement receivingNamedElement, NamedElement mergedNamedElement)
protected void mergeProperty_IsDerived(Property receivingProperty, Property mergedProperty)
protected void mergeProperty_IsDerivedUnion(Property receivingProperty, Property mergedProperty)
protected void mergeStructuralFeature_IsReadOnly(StructuralFeature receivingStructuralFeature, StructuralFeature mergedStructuralFeature)
protected void copyAttribute(org.eclipse.emf.ecore.EAttribute eAttribute, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EObject copyEObject)
copyAttribute
in class org.eclipse.emf.ecore.util.EcoreUtil.Copier
protected void copyContainment(org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EObject copyEObject)
copyContainment
in class org.eclipse.emf.ecore.util.EcoreUtil.Copier
protected void mergeTypedElement_Type(TypedElement receivingTypedElement, TypedElement mergedTypedElement)
protected void copyReference(org.eclipse.emf.ecore.EReference eReference, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EObject copyEObject)
copyReference
in class org.eclipse.emf.ecore.util.EcoreUtil.Copier
protected org.eclipse.emf.ecore.EObject createCopy(org.eclipse.emf.ecore.EObject eObject)
createCopy
in class org.eclipse.emf.ecore.util.EcoreUtil.Copier
public org.eclipse.emf.ecore.EObject copy(org.eclipse.emf.ecore.EObject eObject)
copy
in class org.eclipse.emf.ecore.util.EcoreUtil.Copier
public <T> java.util.Collection<T> copyAll(java.util.Collection<? extends T> eObjects)
copyAll
in class org.eclipse.emf.ecore.util.EcoreUtil.Copier
protected java.util.Collection<Package> getAllMergedPackages(Package package_)
protected void processDifferentPropertyStaticity(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processDifferentPropertyUniqueness(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processImplicitRedefinitions(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processInvalidRedefinitions(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processInvalidSubsets(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processEmptyUnions(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processRedundantGeneralizations(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processAssociationSpecializations(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processCapabilities(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
protected void processOptions(java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
public java.util.Map<org.eclipse.emf.ecore.EObject,java.util.List<org.eclipse.emf.ecore.EObject>> merge(Package package_, java.util.Map<java.lang.String,java.lang.String> options, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
package_
- The receiving package.options
- The options to use.diagnostics
- The chain of diagnostics to which problems are to be
appended.context
- The cache of context-specific information.
|
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 |