public class ChangePackageFragmentProviderAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl
| Constructor and Description |
|---|
ChangePackageFragmentProviderAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAsFragments(String proxyId,
FileBasedChangePackage changePackage)
Splits the given change package into fragments and stores them.
|
List<String> |
getFragment(String proxyId,
int fragmentIndex)
Returns a single fragment.
|
int |
getFragmentSize(String proxyId)
Returns the number of fragments for the given ID.
|
void |
markAsConsumed(String proxyId)
Removes the fragments that belong to given ID.
|
public ChangePackageFragmentProviderAdapter()
public void addAsFragments(String proxyId, FileBasedChangePackage changePackage)
proxyId - an ID that needs to be unique for the change package to be splitted.
Necessary when there are multiple change packages available per projectchangePackage - the change package to be splittedpublic List<String> getFragment(String proxyId, int fragmentIndex) throws ESException
proxyId - ID that identifies a list of fragmentsfragmentIndex - the index of the fragment to be returnedESException - in case no fragments for the given proxy ID are presentpublic int getFragmentSize(String proxyId)
proxyId - the ID identifying the list of change package fragmentspublic void markAsConsumed(String proxyId)
proxyId - identifies the change package fragments to be removedCopyright © 2017. All rights reserved.