org.tmatesoft.svn.core.wc2
Class SvnAnnotate

java.lang.Object
  extended by org.tmatesoft.svn.core.wc2.SvnOperation<T>
      extended by org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SvnAnnotateItem>
          extended by org.tmatesoft.svn.core.wc2.SvnAnnotate
All Implemented Interfaces:
ISvnObjectReceiver<SvnAnnotateItem>, ISvnOperationOptionsProvider

public class SvnAnnotate
extends SvnReceivingOperation<SvnAnnotateItem>

Represents annotate operation. Obtains and reports annotation information for each line-blame item associated with revision endRevision of target, using startRevision as the default source of all blame. Passes annotation information to a annotation handler if provided.

Target can represent URL or working copy path (used to get corresponding URLs).

Target's pegRevision indicates in which revision target is valid. If pegRevision is SVNRevision.UNDEFINED, then it defaults to SVNRevision.HEAD.

Note: this operation requires repository access.

SvnOperation.run() method returns SvnAnnotateItem information reported by the operation. SvnOperation.run() throws SVNException in the following cases:


Constructor Summary
protected SvnAnnotate(SvnOperationFactory factory)
           
 
Method Summary
 SVNDiffOptions getDiffOptions()
          Gets diff options for the operation.
 SVNRevision getEndRevision()
          Gets the revision of the operation to end with.
 ISVNAnnotateHandler getHandler()
          Gets the caller's handler to process annotation information.
 java.lang.String getInputEncoding()
          Gets the name of character set to decode input bytes.
 SVNRevision getStartRevision()
          Gets the revision of the operation to start from.
 boolean isChangesWorkingCopy()
          Gets whether the operation changes working copy
 boolean isIgnoreMimeType()
          Gets whether or not operation should be run on all files treated as text, no matter what SVNKit has inferred from the mime-type property.
 boolean isUseMergeHistory()
          Gets whether or not data based upon revisions which have been merged to targets also should be returned.
 void setDiffOptions(SVNDiffOptions diffOptions)
          Sets diff options for the operation.
 void setEndRevision(SVNRevision endRevision)
          Sets the revision of the operation to end with.
 void setHandler(ISVNAnnotateHandler handler)
          Sets the caller's handler to process annotation information.
 void setIgnoreMimeType(boolean ignoreMimeType)
          Sets whether or not operation should be run on all files treated as text, no matter what SVNKit has inferred from the mime-type property.
 void setInputEncoding(java.lang.String inputEncoding)
          Sets the name of character set to decode input bytes.
 void setStartRevision(SVNRevision startRevision)
          Sets the revision of the operation to start from.
 void setUseMergeHistory(boolean useMergeHistory)
          Sets whether or not data based upon revisions which have been merged to targets also should be returned.
 
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
 
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, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvnAnnotate

protected SvnAnnotate(SvnOperationFactory factory)
Method Detail

getHandler

public ISVNAnnotateHandler getHandler()
Gets the caller's handler to process annotation information.

Returns:
handler to process annotation information if set

setHandler

public void setHandler(ISVNAnnotateHandler handler)
Sets the caller's handler to process annotation information.

Parameters:
handler - handler to process annotation information

isUseMergeHistory

public boolean isUseMergeHistory()
Gets whether or not data based upon revisions which have been merged to targets also should be returned.

Returns:
true if merged history should be used, otherwise false

setUseMergeHistory

public void setUseMergeHistory(boolean useMergeHistory)
Sets whether or not data based upon revisions which have been merged to targets also should be returned.

Parameters:
useMergeHistory - true if merged history should be use, otherwise false

isIgnoreMimeType

public boolean isIgnoreMimeType()
Gets whether or not operation should be run on all files treated as text, no matter what SVNKit has inferred from the mime-type property.

Returns:
true if mime types should be ignored, otherwise false

setIgnoreMimeType

public void setIgnoreMimeType(boolean ignoreMimeType)
Sets whether or not operation should be run on all files treated as text, no matter what SVNKit has inferred from the mime-type property.

Parameters:
ignoreMimeType - true if mime types should be ignored, otherwise false

getStartRevision

public SVNRevision getStartRevision()
Gets the revision of the operation to start from.

Returns:
revision to start from

setStartRevision

public void setStartRevision(SVNRevision startRevision)
Sets the revision of the operation to start from.

Parameters:
startRevision - revision to start from

getEndRevision

public SVNRevision getEndRevision()
Gets the revision of the operation to end with.

Returns:
revision to end with

setEndRevision

public void setEndRevision(SVNRevision endRevision)
Sets the revision of the operation to end with.

Parameters:
endRevision - revision to end with

getInputEncoding

public java.lang.String getInputEncoding()
Gets the name of character set to decode input bytes.

Returns:
name of character set

setInputEncoding

public void setInputEncoding(java.lang.String inputEncoding)
Sets the name of character set to decode input bytes.

Parameters:
inputEncoding - name of character set

getDiffOptions

public SVNDiffOptions getDiffOptions()
Gets diff options for the operation.

Returns:
diff options

setDiffOptions

public void setDiffOptions(SVNDiffOptions diffOptions)
Sets diff options for the operation.

Parameters:
diffOptions - diff options

isChangesWorkingCopy

public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy

Overrides:
isChangesWorkingCopy in class SvnOperation<SvnAnnotateItem>
Returns:
true if the operation changes the working copy, otherwise false