|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.svn.core.wc2.SvnOperation<T>
org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SvnAnnotateItem>
org.tmatesoft.svn.core.wc2.SvnAnnotate
public class SvnAnnotate
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.
endRevision is SVNRevision.UNDEFINED,
then it defaults to SVNRevision.HEAD if target
is URL or SVNRevision.WORKING if target is working copy path.
startRevision is null or
invalid, then it defaults to revision 1.
If endRevision is null or
invalid, then it defaults to
target's pegRevision.
SvnOperation.run() method returns SvnAnnotateItem information reported by the operation.
SvnOperation.run() throws SVNException in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION error code
- if startRevision is older than endRevision
exception with SVNErrorCode.CLIENT_BAD_REVISION error code
- if both startRevision and endRevision are either null or
invalid
exception with SVNErrorCode.CLIENT_IS_BINARY_FILE error code
- if any of the revisions of target's path have a binary
mime-type, unless ignoreMimeType is true, in which case blame
information will be generated regardless of the MIME types of
the revisions
exception with SVNErrorCode.UNSUPPORTED_FEATURE error code -
if either startRevision or endRevision
is SVNRevision.WORKING (for SVN 1.6 working copy only).
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SvnAnnotate(SvnOperationFactory factory)
| Method Detail |
|---|
public ISVNAnnotateHandler getHandler()
public void setHandler(ISVNAnnotateHandler handler)
handler - handler to process annotation informationpublic boolean isUseMergeHistory()
true if merged history should be used, otherwise falsepublic void setUseMergeHistory(boolean useMergeHistory)
useMergeHistory - true if merged history should be use, otherwise falsepublic boolean isIgnoreMimeType()
true if mime types should be ignored, otherwise falsepublic void setIgnoreMimeType(boolean ignoreMimeType)
ignoreMimeType - true if mime types should be ignored, otherwise falsepublic SVNRevision getStartRevision()
public void setStartRevision(SVNRevision startRevision)
startRevision - revision to start frompublic SVNRevision getEndRevision()
public void setEndRevision(SVNRevision endRevision)
endRevision - revision to end withpublic java.lang.String getInputEncoding()
public void setInputEncoding(java.lang.String inputEncoding)
inputEncoding - name of character setpublic SVNDiffOptions getDiffOptions()
public void setDiffOptions(SVNDiffOptions diffOptions)
diffOptions - diff optionspublic boolean isChangesWorkingCopy()
isChangesWorkingCopy in class SvnOperation<SvnAnnotateItem>true if the operation changes the working copy, otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||