public class ESChangePackageImpl extends ESAbstractChangePackageImpl<ChangePackage> implements ESChangePackage
ESChangePackage and ChangePackage.| Constructor and Description |
|---|
ESChangePackageImpl(ChangePackage changePackage)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ESOperation op)
Add a single a operation to this change package.
|
void |
addAll(List<ESOperation> ops)
Adds a list of operations to this change package.
|
void |
clear()
Clears all operations from this change package.
|
ESLogMessage |
getLogMessage()
Returns the
ESLogMessage that was entered by the
user and is supposed to describe the changes within
the change package. |
boolean |
isEmpty()
Whether this change package contains any operations.
|
ESCloseableIterable<ESOperation> |
operations()
Returns an
ESCloseableIterable that iterates over all operations
of this change package. |
List<ESOperation> |
removeFromEnd(int n)
Removes the given number of operations from this change package beginning at the
end.
|
ESChangePackage |
reverse()
Returns the operations of this change package in the reversed order.
|
void |
setLogMessage(ESLogMessage logMessage)
Sets the log message of this change package.
|
int |
size()
Returns the number of operations this change package contains.
|
ChangePackage |
toInternalAPI()
Returns the internal interface of this class.
|
equals, hashCodepublic ESChangePackageImpl(ChangePackage changePackage)
changePackage - the delegatepublic ESLogMessage getLogMessage()
ESLogMessage that was entered by the
user and is supposed to describe the changes within
the change package.getLogMessage in interface ESChangePackageESChangePackage.getLogMessage()public void setLogMessage(ESLogMessage logMessage)
setLogMessage in interface ESChangePackagelogMessage - the log message to be setESChangePackage.setLogMessage(org.eclipse.emf.emfstore.server.model.ESLogMessage)public void addAll(List<ESOperation> ops)
addAll in interface ESChangePackageops - the operations to be addedESChangePackage.addAll(java.util.List)public void add(ESOperation op)
add in interface ESChangePackageop - the operation to be addedESChangePackage.add(org.eclipse.emf.emfstore.server.model.ESOperation)public void clear()
clear in interface ESChangePackageESChangePackage.clear()public boolean isEmpty()
isEmpty in interface ESChangePackagetrue, if this change package contains no operations, false otherwiseESChangePackage.isEmpty()public List<ESOperation> removeFromEnd(int n)
removeFromEnd in interface ESChangePackagen - the number of operations to be removedESChangePackage.removeFromEnd(int)public ESCloseableIterable<ESOperation> operations()
ESCloseableIterable that iterates over all operations
of this change package. close on the returned ESCloseableIterable.operations in interface ESChangePackageESCloseableIterable that enables iterating over all operations.ESChangePackage.operations()public int size()
size in interface ESChangePackageESChangePackage.size()public ESChangePackage reverse()
close() on the returned ESCloseableIterable.reverse in interface ESChangePackageESChangePackage.reverse()public ChangePackage toInternalAPI()
toInternalAPI in interface InternalAPIDelegator<ESChangePackage,ChangePackage>toInternalAPI in class ESAbstractChangePackageImpl<ChangePackage>ESAbstractChangePackageImpl.toInternalAPI()Copyright © 2017. All rights reserved.