Package org.tmatesoft.svn.core.wc2
Class SvnReceivingOperation<T>
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnOperation<T>
org.tmatesoft.svn.core.wc2.SvnReceivingOperation<T>
- Type Parameters:
T- type of received object(s)
- All Implemented Interfaces:
ISvnObjectReceiver<T>,ISvnOperationOptionsProvider
- Direct Known Subclasses:
AbstractSvnCommit,SvnAnnotate,SvnDiffSummarize,SvnGetChangelistPaths,SvnGetInfo,SvnGetProperties,SvnGetStatus,SvnList,SvnLog,SvnLogMergeInfo,SvnRepositoryFilter,SvnRepositoryInitialize,SvnRepositoryReceivingOperation,SvnRepositorySynchronize,SvnSetLock,SvnSetProperty,SvnUnlock
Represents base class for all operations that can fetch object(s)
for custom processing.
Clients can provide their own handlers for receiving the object(s)
by implementing
ISvnObjectReceiver interface and assign it in
setReceiver(ISvnObjectReceiver).- Version:
- 1.7
- Author:
- TMate Software Ltd.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfirst()Returns first received object from the list.Returns client's object receiver.protected voidlast()Returns last received object from the list.voidReceives the object, adds it to objects list and calls client's receiver if exists.run(Collection<T> objects) Initializes list for received objects withobjectsor creates an empty list, calls the operation'sSvnOperation.run()method.voidsetReceiver(ISvnObjectReceiver<T> receiver) Sets client's object receiver.Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
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, setSqliteJournalMode
-
Constructor Details
-
SvnReceivingOperation
-
-
Method Details
-
setReceiver
Sets client's object receiver.- Parameters:
receiver- object receiver
-
getReceiver
Returns client's object receiver.- Returns:
- object receiver
-
receive
Receives the object, adds it to objects list and calls client's receiver if exists.- Specified by:
receivein interfaceISvnObjectReceiver<T>- Parameters:
target- target of the objectobject- object- Throws:
SVNException
-
first
Returns first received object from the list.- Returns:
- first received object
-
last
Returns last received object from the list.- Returns:
- first received object
-
run
Initializes list for received objects withobjectsor creates an empty list, calls the operation'sSvnOperation.run()method.- Parameters:
objects-- Returns:
- list of received objects
- Throws:
SVNException
-
initDefaults
protected void initDefaults()- Overrides:
initDefaultsin classSvnOperation<T>
-