public interface Delta extends org.eclipse.emf.ecore.EObject, Printable, org.eclipse.core.runtime.IAdaptable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOLUTION_PROPERTY |
Modifier and Type | Method and Description |
---|---|
void |
addComposite(CompositeDelta compositeDelta)
Add another Delta as the container.
|
void |
addConflict(Conflict conflict)
Adds a conflict.
|
void |
addDependent(Delta delta)
adds a delta to the dependant list
|
void |
addPrerequisite(Delta delta)
adds a delta to the pre requisite list
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener that can register interest in a delta's
RESOLVED_PROPERTY . |
boolean |
canAutoResolve()
Returns whether or not this is delta is the target of any of its
automatically resolvable conflcits.
|
boolean |
canResolve(Resolution newResolution)
Returns whether or not this delta can be resolved with the new
resolution.
|
boolean |
canUnresolve()
Returns whether or not this delta can be unresolved.
|
void |
collectAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas,
java.util.Set atomicDeltaSet)
Collects all deltas, in the same contributor, required to resolve this
delta with the given resolution, with the option of including required
deltas or not.
|
void |
collectResolutionSet(Resolution resolution,
java.util.Set atomicDeltas,
java.util.Set atomicConflicts,
boolean includeRequiredDeltas)
Recursively collects the atomic resolution set for this delta and a given
resolution, being certain to only consider conflicts once.
|
void |
deleteConflict(Conflict conflict)
Deletes a conflict.
|
void |
deleteDependent(Delta delta)
delete a delta from the dependant list
|
void |
deletePrerequisite(Delta delta)
delete a delta from the prerequisite list
|
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.
|
Resolution |
getAppliedResolution() |
java.util.Set |
getAtomicComposites()
Returns a set of all top containing atomics.
|
java.util.Set |
getAtomicDeltaSet(Resolution resolution,
boolean includeRequiredDeltas)
Returns all deltas, in the same contributor, required to resolve this
delta with the given resolution, with the option of including required
deltas or not.
|
org.eclipse.emf.ecore.resource.Resource |
getBase()
Returns the base resource this delta was generated on.
|
java.util.Set |
getComposites()
Returns the composites referencing this delta.
|
java.util.Set |
getConflicts()
Returns the set of conflicts this delta is involved in.
|
org.eclipse.emf.ecore.resource.Resource |
getContributor()
Returns the contributor resource this delta was generated on.
|
java.lang.Object |
getCustomProperty(java.lang.String key)
Return custom property value
|
java.util.Set |
getDependents()
Returns a set of dependent
Delta s for this delta. |
void |
getDependentsRecursively(java.util.Set visitedDependents)
Returns a set of dependent
Delta s for this delta. |
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.
|
Delta |
getEquivalentDelta()
Return equivalent delta in opposite contributor when conflict is suppressed
|
java.lang.String |
getId()
Returns a unique ID for this delta.
|
java.util.Set |
getPrerequisites()
Returns a set of prerequisite
Delta s for this delta. |
void |
getPrerequisitesRecursively(java.util.Set visitedPrerequisites)
Returns a set of prerequisite
Delta s for this delta. |
Resolution |
getResolution()
Returns the current resolution of the delta.
|
java.util.Set |
getResolutionSet(Resolution resolution,
boolean includeRequiredDeltas)
Returns all deltas, in all contributors, required to resolve this delta
with the given resolution.
|
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.
|
DeltaType |
getType()
Returns the type.
|
boolean |
hasUnresolvedConflicts()
Returns whether or not any of this delta's conflicts are unresolved.
|
boolean |
isAccepted()
Returns whether or not this delta is accepted.
|
boolean |
isConflicting()
Returns whether or not this delta is conflicting with another delta.
|
boolean |
isDestinationSetStateChanged()
Returns whether or not the destination feature changed set state.
|
boolean |
isInConflictedAtomicContainer()
Returns whether or not any container delta is atomic and conflicting.
|
boolean |
isRejected()
Returns whether or not this delta is rejected.
|
boolean |
isResolved()
Returns whether or not this delta is resolved.
|
boolean |
isSameDelta(Delta delta)
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.
|
boolean |
isSystemDelta()
Returns whether or not this delta is a system delta.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener.
|
void |
resolve(Resolution newResolution)
Applies the new resolution with this delta.
|
void |
setAppliedResolution(Resolution newResolution) |
void |
setCustomProperty(java.lang.String key,
java.lang.Object value)
Setting custom property.
|
void |
setEquivalentDelta(Delta delta)
Set equivalent delta in opposite contributor when conflict is suppressed
|
void |
setSystemDelta(boolean systemDelta)
Sets whether or not this delta is a system delta.
|
void |
toStringImpl(java.lang.StringBuilder sb)
Appends an String representation to the string buffer.
|
void |
unresolve()
Unapplies the current resolution with this delta.
|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
static final java.lang.String RESOLUTION_PROPERTY
Resolution getAppliedResolution()
void setAppliedResolution(Resolution newResolution)
DeltaType getType()
java.lang.String getId()
boolean isSameDelta(Delta delta)
boolean isSystemDelta()
void setSystemDelta(boolean systemDelta)
systemDelta
- booleanorg.eclipse.emf.ecore.resource.Resource getBase()
org.eclipse.emf.ecore.resource.Resource getContributor()
Location getSourceLocation()
Location getDestinationLocation()
boolean isSourceSetStateChanged()
boolean getSourceOldSetState()
boolean getDestinationOldSetState()
boolean getSourceNewSetState()
boolean getDestinationNewSetState()
boolean isDestinationSetStateChanged()
java.lang.Object getAffectedObject()
java.lang.String getAffectedObjectMatchingId()
java.util.Set getComposites()
void addComposite(CompositeDelta compositeDelta)
compositeDelta
- the container deltajava.util.Set getAtomicComposites()
java.util.Set getPrerequisites()
Delta
s for this delta.
Prerequisite deltas must be accepted before this delta can be accepted.Set
of Delta
sjava.util.Set getDependents()
Delta
s for this delta.
Dependent deltas must be rejected before this delta can be rejected.Set
of Delta
svoid getPrerequisitesRecursively(java.util.Set visitedPrerequisites)
Delta
s for this delta.
Prerequisite deltas must be accepted before this delta can be accepted.void getDependentsRecursively(java.util.Set visitedDependents)
Delta
s for this delta.
Dependent deltas must be rejected before this delta can be rejected.void addPrerequisite(Delta delta)
delta
- void addDependent(Delta delta)
delta
- void deleteDependent(Delta delta)
delta
- void deletePrerequisite(Delta delta)
delta
- boolean isResolved()
boolean isAccepted()
boolean isRejected()
Resolution getResolution()
boolean canResolve(Resolution newResolution)
newResolution
- the resolutionvoid resolve(Resolution newResolution)
newResolution
- the resolutionboolean canUnresolve()
void unresolve()
boolean canAutoResolve()
java.util.Set getAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas)
resolution
- a resolutionincludeRequiredDeltas
- if true, include required deltas, otherwise don'tvoid collectAtomicDeltaSet(Resolution resolution, boolean includeRequiredDeltas, java.util.Set atomicDeltaSet)
resolution
- a resolutionincludeRequiredDeltas
- if true, include required deltas, otherwise don'tatomicDeltaSet
- set atomic delta setjava.util.Set getResolutionSet(Resolution resolution, boolean includeRequiredDeltas)
resolution
- a resolutionincludeRequiredDeltas
- if true, include required deltas, otherwise don'tvoid collectResolutionSet(Resolution resolution, java.util.Set atomicDeltas, java.util.Set atomicConflicts, boolean includeRequiredDeltas)
resolution
- resolution consideredatomicDeltas
- collected delta resolution setatomicConflicts
- set of conflicts already visitedincludeRequiredDeltas
- if true, includes all required deltas, otherwise ignores themboolean isConflicting()
java.util.Set getConflicts()
void addConflict(Conflict conflict)
conflict
- a conflictvoid deleteConflict(Conflict conflict)
conflict
- a conflictboolean isInConflictedAtomicContainer()
boolean hasUnresolvedConflicts()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
RESOLVED_PROPERTY
.listener
- a property change listenervoid removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a property change listenervoid toStringImpl(java.lang.StringBuilder sb)
sb
- the string buffer to append tovoid setCustomProperty(java.lang.String key, java.lang.Object value)
key
- value
- java.lang.Object getCustomProperty(java.lang.String key)
key
- void setEquivalentDelta(Delta delta)
delta
- Delta getEquivalentDelta()