Package org.tmatesoft.svn.cli.svn
Class SVNInfoCommand
- java.lang.Object
-
- org.tmatesoft.svn.cli.AbstractSVNCommand
-
- org.tmatesoft.svn.cli.svn.SVNCommand
-
- org.tmatesoft.svn.cli.svn.SVNXMLCommand
-
- org.tmatesoft.svn.cli.svn.SVNInfoCommand
-
- All Implemented Interfaces:
ISVNInfoHandler
public class SVNInfoCommand extends SVNXMLCommand implements ISVNInfoHandler
- Version:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SVNInfoCommand.SVNInfoItemType
-
Field Summary
Fields Modifier and Type Field Description private boolean
myIsMultipleTargets
private boolean
myIsStartNewLine
private SVNInfoCommand.SVNInfoItemType
myPrintWhat
private boolean
myTargetIsPath
private static int
SIM_RANGE_MAX
-
Constructor Summary
Constructors Constructor Description SVNInfoCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection
createSupportedOptions()
private void
findPrintWhat(java.lang.String keyword)
void
handleInfo(SVNInfo info)
Handles item's information using an SVNInfo object.private java.lang.StringBuffer
printConflictVersionXML(SVNConflictVersion version, java.lang.String name, java.lang.StringBuffer target)
protected void
printInfo(SVNInfo info)
private void
printInfoItem(SVNInfo info)
private void
printInfoItemRevision(SVNRevision revision, java.lang.String targetPath)
private void
printInfoItemString(java.lang.String text, java.lang.String targetPath)
protected void
printInfoXML(SVNInfo info)
private java.lang.String
relativeUrl(SVNInfo info)
void
run()
private int
similarityCheck(java.lang.String key, java.util.List<java.lang.String> tokens)
private int
stringDiff(java.lang.String s1, java.lang.String s2)
-
Methods inherited from class org.tmatesoft.svn.cli.svn.SVNXMLCommand
addXMLProp, closeXMLTag, openCDataTag, openXMLTag, openXMLTag, printXMLFooter, printXMLHeader, printXMLPropHash
-
Methods inherited from class org.tmatesoft.svn.cli.svn.SVNCommand
acceptsRevisionRange, getFileAmbigousErrorMessage, getGlobalOptions, getMessageAmbigousErrorMessage, getResourceBundleName, getSVNEnvironment, isCommitter
-
Methods inherited from class org.tmatesoft.svn.cli.AbstractSVNCommand
availableCommands, getAliases, getCommand, getDescription, getEnvironment, getName, getSupportedOptions, getValidOptions, init, isAlias, isFailed, isOptionSupported, registerCommand, setFailed
-
-
-
-
Field Detail
-
myIsMultipleTargets
private boolean myIsMultipleTargets
-
myIsStartNewLine
private boolean myIsStartNewLine
-
myPrintWhat
private SVNInfoCommand.SVNInfoItemType myPrintWhat
-
myTargetIsPath
private boolean myTargetIsPath
-
SIM_RANGE_MAX
private static final int SIM_RANGE_MAX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSupportedOptions
protected java.util.Collection createSupportedOptions()
- Specified by:
createSupportedOptions
in classAbstractSVNCommand
-
run
public void run() throws SVNException
- Specified by:
run
in classAbstractSVNCommand
- Throws:
SVNException
-
handleInfo
public void handleInfo(SVNInfo info) throws SVNException
Description copied from interface:ISVNInfoHandler
Handles item's information using an SVNInfo object.- Specified by:
handleInfo
in interfaceISVNInfoHandler
- Parameters:
info
- an object that contain's item's information details- Throws:
SVNException
-
printInfo
protected void printInfo(SVNInfo info)
-
printInfoItem
private void printInfoItem(SVNInfo info) throws SVNException
- Throws:
SVNException
-
relativeUrl
private java.lang.String relativeUrl(SVNInfo info)
-
printInfoItemString
private void printInfoItemString(java.lang.String text, java.lang.String targetPath)
-
printInfoItemRevision
private void printInfoItemRevision(SVNRevision revision, java.lang.String targetPath)
-
printInfoXML
protected void printInfoXML(SVNInfo info)
-
printConflictVersionXML
private java.lang.StringBuffer printConflictVersionXML(SVNConflictVersion version, java.lang.String name, java.lang.StringBuffer target)
-
findPrintWhat
private void findPrintWhat(java.lang.String keyword) throws SVNException
- Throws:
SVNException
-
similarityCheck
private int similarityCheck(java.lang.String key, java.util.List<java.lang.String> tokens)
-
stringDiff
private int stringDiff(java.lang.String s1, java.lang.String s2)
-
-