T - type of received object(s)public class SvnReceivingOperation<T> extends SvnOperation<T> implements ISvnObjectReceiver<T>
ISvnObjectReceiver interface and assign it in
setReceiver(ISvnObjectReceiver).SvnOperation,
ISvnObjectReceiver,
SvnAnnotate,
SvnDiffSummarize,
SvnGetChangelistPaths,
SvnGetInfo,
SvnGetProperties,
SvnGetStatus,
SvnList,
SvnLog,
SvnLogMergeInfo,
SvnSetLock,
SvnSetProperty,
SvnUnlock| Modifier | Constructor and Description |
|---|---|
protected |
SvnReceivingOperation(SvnOperationFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
T |
first()
Returns first received object from the list.
|
ISvnObjectReceiver<T> |
getReceiver()
Returns client's object receiver.
|
protected void |
initDefaults() |
T |
last()
Returns last received object from the list.
|
void |
receive(SvnTarget target,
T object)
Receives the object, adds it to objects list and calls
client's receiver if exists.
|
java.util.Collection<T> |
run(java.util.Collection<T> objects)
Initializes list for received objects with
objects
or creates an empty list, calls the operation's SvnOperation.run()
method. |
void |
setReceiver(ISvnObjectReceiver<T> receiver)
Sets client's object receiver.
|
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isChangesWorkingCopy, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalModeprotected SvnReceivingOperation(SvnOperationFactory factory)
public void setReceiver(ISvnObjectReceiver<T> receiver)
receiver - object receiverpublic ISvnObjectReceiver<T> getReceiver()
public void receive(SvnTarget target, T object) throws SVNException
receive in interface ISvnObjectReceiver<T>target - target of the objectobject - objectSVNExceptionpublic T first()
public T last()
public java.util.Collection<T> run(java.util.Collection<T> objects) throws SVNException
objects
or creates an empty list, calls the operation's SvnOperation.run()
method.objects - SVNExceptionprotected void initDefaults()
initDefaults in class SvnOperation<T>Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.