public interface AbstractChangePackage
extends org.eclipse.emf.ecore.EObject
The following features are supported:
| Modifier and Type | Method and Description |
|---|---|
void |
add(AbstractOperation operation)
Add a single operation to this change package.
|
void |
addAll(List<AbstractOperation> operations)
Adds all given operations to this change package.
|
void |
apply(Project project)
Applies this change package to the given project.
|
void |
apply(Project project,
boolean forceApplication)
Apply all operations in the change package to the given project.
|
void |
attachToProjectSpace(ChangePackageContainer changePackageHolder)
Attaches this change package to the given value.
|
void |
clear()
Clears all operations from this change package.
|
AbstractOperation |
get(int index)
Returns the operation at the given index.
|
LogMessage |
getLogMessage()
Returns the value of the 'Log Message' containment reference.
|
boolean |
isEmpty()
Whether this change package has any operations.
|
int |
leafSize()
Returns the number of leaf operations that are contained within this change package.
|
ESCloseableIterable<AbstractOperation> |
operations()
Returns a handle for iterating through operations contained in this change package.
NOTE: Callers must call close on the returned handle. |
List<AbstractOperation> |
removeAtEnd(int n)
Removes the given number of operations starting from the end.
|
AbstractChangePackage |
reverse()
Creates a copy of the change package and reverses it.
|
ESCloseableIterable<AbstractOperation> |
reversedOperations()
Returns a handle for iterating through operations contained in this change package backwards.
NOTE: Callers must call close on the returned handle. |
void |
save()
Save this change package.
|
void |
setLogMessage(LogMessage value)
Sets the value of the '
Log Message' containment reference. |
int |
size()
Returns the size of this change package, that is, how many operations are contained in it.
|
ESChangePackage |
toAPI()
Returns the API representation of this change package.
|
LogMessage getLogMessage()
If the meaning of the 'Log Message' containment reference isn't clear, there really should be more of a description here...
setLogMessage(LogMessage),
VersioningPackage.getAbstractChangePackage_LogMessage()void setLogMessage(LogMessage value)
Log Message' containment reference.
value - the new value of the 'Log Message' containment reference.getLogMessage()void add(AbstractOperation operation)
operation - the operation to be addedvoid addAll(List<AbstractOperation> operations)
operations - the operations to be addedAbstractChangePackage reverse()
int size()
int leafSize()
ESCloseableIterable<AbstractOperation> operations()
close on the returned handle.ESCloseableIterable<AbstractOperation> reversedOperations()
close on the returned handle.boolean isEmpty()
true, if this change package is empty, false otherwiseList<AbstractOperation> removeAtEnd(int n)
n - the number of operations to be removedvoid clear()
void attachToProjectSpace(ChangePackageContainer changePackageHolder)
changePackageHolder - the value to which this change package will be attached toESChangePackage toAPI()
void apply(Project project)
project - the project upon which the change package should be appliedvoid apply(Project project, boolean forceApplication)
project - the projectforceApplication - if true, illegal Operations won't stop the other to be appliedvoid save() throws IOException
IOException - in case saving failsAbstractOperation get(int index)
index - the requested indexCopyright © 2017. All rights reserved.