|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc2.SvnOperation<T> org.tmatesoft.svn.core.wc2.SvnReceivingOperation<T>
T
- type of received object(s)public class SvnReceivingOperation<T>
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 implementingISvnObjectReceiver
interface and assign it in
setReceiver(ISvnObjectReceiver)
.
SvnOperation
,
ISvnObjectReceiver
,
SvnAnnotate
,
SvnDiffSummarize
,
SvnGetChangelistPaths
,
SvnGetInfo
,
SvnGetProperties
,
SvnGetStatus
,
SvnList
,
SvnLog
,
SvnLogMergeInfo
,
SvnSetLock
,
SvnSetProperty
,
SvnUnlock
Constructor Summary | |
---|---|
protected |
SvnReceivingOperation(SvnOperationFactory factory)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SvnReceivingOperation(SvnOperationFactory factory)
Method Detail |
---|
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
- object
SVNException
public 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
-
SVNException
protected void initDefaults()
initDefaults
in class SvnOperation<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |