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)
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate T
private T
private java.util.Collection<T>
private ISvnObjectReceiver<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfirst()
Returns first received object from the list.private java.util.Collection<T>
Returns client's object receiver.protected void
last()
Returns last received object from the list.void
Receives the object, adds it to objects list and calls client's receiver if exists.java.util.Collection<T>
Initializes list for received objects withobjects
or creates an empty list, calls the operation'sSvnOperation.run()
method.void
setReceiver
(ISvnObjectReceiver<T> receiver) Sets client's object receiver.private void
setReceivingContainer
(java.util.Collection<T> receivingContainer) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
receiver
-
first
-
last
-
receivedObjects
-
-
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:
receive
in 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 withobjects
or creates an empty list, calls the operation'sSvnOperation.run()
method.- Parameters:
objects
-- Returns:
- list of received objects
- Throws:
SVNException
-
initDefaults
protected void initDefaults()- Overrides:
initDefaults
in classSvnOperation<T>
-
setReceivingContainer
-
getReceivedObjects
-