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 classSVNInfoCommand.SVNInfoItemType
-
Field Summary
Fields Modifier and Type Field Description private booleanmyIsMultipleTargetsprivate booleanmyIsStartNewLineprivate SVNInfoCommand.SVNInfoItemTypemyPrintWhatprivate booleanmyTargetIsPathprivate static intSIM_RANGE_MAX
-
Constructor Summary
Constructors Constructor Description SVNInfoCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.CollectioncreateSupportedOptions()private voidfindPrintWhat(java.lang.String keyword)voidhandleInfo(SVNInfo info)Handles item's information using an SVNInfo object.private java.lang.StringBufferprintConflictVersionXML(SVNConflictVersion version, java.lang.String name, java.lang.StringBuffer target)protected voidprintInfo(SVNInfo info)private voidprintInfoItem(SVNInfo info)private voidprintInfoItemRevision(SVNRevision revision, java.lang.String targetPath)private voidprintInfoItemString(java.lang.String text, java.lang.String targetPath)protected voidprintInfoXML(SVNInfo info)private java.lang.StringrelativeUrl(SVNInfo info)voidrun()private intsimilarityCheck(java.lang.String key, java.util.List<java.lang.String> tokens)private intstringDiff(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:
createSupportedOptionsin classAbstractSVNCommand
-
run
public void run() throws SVNException- Specified by:
runin classAbstractSVNCommand- Throws:
SVNException
-
handleInfo
public void handleInfo(SVNInfo info) throws SVNException
Description copied from interface:ISVNInfoHandlerHandles item's information using an SVNInfo object.- Specified by:
handleInfoin 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)
-
-