public class MorphDeltaImpl extends DeltaImpl implements MorphDelta
DeltaImpl.RelatedPair
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
appliedResolution, base, composites, conflicts, contributor, customProperties, dependents, prerequisites, propertyChangeSupport, relatedDeltas, systemDelta, type
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
RESOLUTION_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
MorphDeltaImpl() |
|
MorphDeltaImpl(org.eclipse.emf.ecore.resource.Resource base,
org.eclipse.emf.ecore.resource.Resource contributor,
Location base_location,
java.lang.String matchingId,
org.eclipse.emf.ecore.EClass originalMetaclass,
org.eclipse.emf.ecore.EClass morphedMetclass,
java.util.List preconditionFeatureDeltas,
java.util.List postconditionFeatureDeltas) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
java.lang.Object |
getAffectedObject()
Returns the object that has been affected.
|
java.lang.String |
getAffectedObjectMatchingId()
Returns the matching ID of the object that has been affected if the
feature of the location is a containment reference, otherwise null.
|
Location |
getDestinationLocation()
Returns the destination location of the delta.
|
boolean |
getDestinationNewSetState()
Returns the new destination set state.
|
boolean |
getDestinationOldSetState()
Returns the old destination set state.
|
java.lang.String |
getId()
Returns a unique ID for this delta.
|
org.eclipse.emf.ecore.EClass |
getMorphMetaclass()
Returns the eClass to morph into
|
org.eclipse.emf.ecore.EClass |
getOriginalMetaclass()
Returns the original eClass
|
java.util.List |
getPostMorphFeatureDeltas()
post-condition deltas will be used to place gained feature values into the morphed object, and remember their values on unapply/undo on un-morph
|
java.util.List |
getPreMorphFeatureDeltas()
pre-condition deltas will be used to remember the state of the object before morph, they will be executed on unapply/undo on un-morph
|
Location |
getSourceLocation()
Returns the source location of the delta.
|
boolean |
getSourceNewSetState()
Returns the new source set state.
|
boolean |
getSourceOldSetState()
Returns the old source set state.
|
boolean |
isDestinationSetStateChanged()
Returns whether or not the destination feature changed set state.
|
boolean |
isSameDelta(Delta thatDelta)
Returns whether or not resolving this delta has the same effect as
resolving the given delta.
|
boolean |
isSourceSetStateChanged()
Returns whether or not the source feature changed set state.
|
void |
print(java.io.PrintStream out)
Prints a text representation to a stream.
|
void |
toStringImpl(java.lang.StringBuilder sb)
Appends an String representation to the string buffer.
|
addComposite, addConflict, addDependent, addPrerequisite, addPropertyChangeListener, canAutoResolve, canResolve, canUnresolve, collectAtomicDeltaSet, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eUnset, getAdapter, getAppliedResolution, getAtomicComposites, getAtomicDeltaSet, getAtomicDeltaSet, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getRequiredDeltasRecursively, getResolution, getResolutionSet, getType, hasUnresolvedConflicts, isAccepted, isConflicting, isInComposite, isInConflictedAtomicContainer, isRejected, isResolved, isSystemDelta, removePropertyChangeListener, resolve, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDelta, toString, unresolve
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addComposite, addConflict, addDependent, addPrerequisite, addPropertyChangeListener, canAutoResolve, canResolve, canUnresolve, collectAtomicDeltaSet, collectResolutionSet, deleteConflict, deleteDependent, deletePrerequisite, getAppliedResolution, getAtomicComposites, getAtomicDeltaSet, getBase, getComposites, getConflicts, getContributor, getCustomProperty, getDependents, getDependentsRecursively, getEquivalentDelta, getPrerequisites, getPrerequisitesRecursively, getResolution, getResolutionSet, getType, hasUnresolvedConflicts, isAccepted, isConflicting, isInConflictedAtomicContainer, isRejected, isResolved, isSystemDelta, removePropertyChangeListener, resolve, setAppliedResolution, setCustomProperty, setEquivalentDelta, setSystemDelta, unresolve
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected MorphDeltaImpl()
public MorphDeltaImpl(org.eclipse.emf.ecore.resource.Resource base, org.eclipse.emf.ecore.resource.Resource contributor, Location base_location, java.lang.String matchingId, org.eclipse.emf.ecore.EClass originalMetaclass, org.eclipse.emf.ecore.EClass morphedMetclass, java.util.List preconditionFeatureDeltas, java.util.List postconditionFeatureDeltas)
base
- contributor
- base_location
- matchingId
- originalMetaclass
- morphedMetclass
- protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class DeltaImpl
public Location getSourceLocation()
Delta
getSourceLocation
in interface Delta
getSourceLocation
in class DeltaImpl
public java.lang.Object getAffectedObject()
Delta
getAffectedObject
in interface Delta
getAffectedObject
in class DeltaImpl
public java.lang.String getId()
Delta
public boolean isSameDelta(Delta thatDelta)
Delta
isSameDelta
in interface Delta
public void toStringImpl(java.lang.StringBuilder sb)
Delta
toStringImpl
in interface Delta
toStringImpl
in class DeltaImpl
sb
- the string buffer to append topublic void print(java.io.PrintStream out)
Printable
public boolean getDestinationNewSetState()
Delta
getDestinationNewSetState
in interface Delta
getDestinationNewSetState
in class DeltaImpl
public boolean getDestinationOldSetState()
Delta
getDestinationOldSetState
in interface Delta
getDestinationOldSetState
in class DeltaImpl
public boolean isDestinationSetStateChanged()
Delta
isDestinationSetStateChanged
in interface Delta
isDestinationSetStateChanged
in class DeltaImpl
public boolean getSourceNewSetState()
Delta
getSourceNewSetState
in interface Delta
getSourceNewSetState
in class DeltaImpl
public boolean getSourceOldSetState()
Delta
getSourceOldSetState
in interface Delta
getSourceOldSetState
in class DeltaImpl
public boolean isSourceSetStateChanged()
Delta
isSourceSetStateChanged
in interface Delta
isSourceSetStateChanged
in class DeltaImpl
public org.eclipse.emf.ecore.EClass getMorphMetaclass()
MorphDelta
getMorphMetaclass
in interface MorphDelta
public org.eclipse.emf.ecore.EClass getOriginalMetaclass()
MorphDelta
getOriginalMetaclass
in interface MorphDelta
public java.lang.String getAffectedObjectMatchingId()
Delta
getAffectedObjectMatchingId
in interface Delta
getAffectedObjectMatchingId
in class DeltaImpl
public Location getDestinationLocation()
Delta
getDestinationLocation
in interface Delta
getDestinationLocation
in class DeltaImpl
public java.util.List getPreMorphFeatureDeltas()
public java.util.List getPostMorphFeatureDeltas()