|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESChangePackage,CP> org.eclipse.emf.emfstore.internal.server.model.impl.api.ESAbstractChangePackageImpl<ChangePackage> org.eclipse.emf.emfstore.internal.server.model.impl.api.ESChangePackageImpl
public class ESChangePackageImpl
Mapping between ESChangePackage
and ChangePackage
.
Constructor Summary | |
---|---|
ESChangePackageImpl(ChangePackage changePackage)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESChangePackageImpl(ChangePackage changePackage)
changePackage
- the delegateMethod Detail |
---|
public ESLogMessage getLogMessage()
ESLogMessage
that was entered by the
user and is supposed to describe the changes within
the change package.
getLogMessage
in interface ESChangePackage
ESChangePackage.getLogMessage()
public void setLogMessage(ESLogMessage logMessage)
setLogMessage
in interface ESChangePackage
logMessage
- the log message to be setESChangePackage.setLogMessage(org.eclipse.emf.emfstore.server.model.ESLogMessage)
public void addAll(List<ESOperation> ops)
addAll
in interface ESChangePackage
ops
- the operations to be addedESChangePackage.addAll(java.util.List)
public void add(ESOperation op)
add
in interface ESChangePackage
op
- the operation to be addedESChangePackage.add(org.eclipse.emf.emfstore.server.model.ESOperation)
public void clear()
clear
in interface ESChangePackage
ESChangePackage.clear()
public boolean isEmpty()
isEmpty
in interface ESChangePackage
true
, if this change package contains no operations, false
otherwiseESChangePackage.isEmpty()
public List<ESOperation> removeFromEnd(int n)
removeFromEnd
in interface ESChangePackage
n
- the number of operations to be removed
ESChangePackage.removeFromEnd(int)
public ESCloseableIterable<ESOperation> operations()
ESCloseableIterable
that iterates over all operations
of this change package. close
on the returned ESCloseableIterable
.
operations
in interface ESChangePackage
ESCloseableIterable
that enables iterating over all operations.ESChangePackage.operations()
public int size()
size
in interface ESChangePackage
ESChangePackage.size()
public ESChangePackage reverse()
close()
on the returned ESCloseableIterable
.
reverse
in interface ESChangePackage
ESChangePackage.reverse()
public ChangePackage toInternalAPI()
toInternalAPI
in interface InternalAPIDelegator<ESChangePackage,ChangePackage>
toInternalAPI
in class ESAbstractChangePackageImpl<ChangePackage>
ESAbstractChangePackageImpl.toInternalAPI()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |