Package org.tmatesoft.svn.cli.svn
Class SVNPropertiesCommand
- 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.SVNPropertiesCommand
-
- All Implemented Interfaces:
ISVNPropertyHandler
- Direct Known Subclasses:
SVNPropDelCommand,SVNPropEditCommand,SVNPropGetCommand,SVNPropListCommand,SVNPropSetCommand
public abstract class SVNPropertiesCommand extends SVNXMLCommand implements ISVNPropertyHandler
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.MapmyPathPropertiesprivate java.util.MapmyRevisionPropertiesprivate java.util.MapmyURLProperties-
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNPropertyHandler
NULL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSVNPropertiesCommand(java.lang.String name, java.lang.String[] aliases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckBooleanProperty(java.lang.String name, SVNPropertyValue value)protected java.lang.StringcheckRevPropTarget(SVNRevision revision, java.util.Collection targets)protected voidclearCollectedProperties()protected java.util.MapgetPathProperties()protected SVNPropertyDatagetPathProperty(java.io.File path)protected java.util.MapgetRevisionProperties()protected SVNPropertyDatagetRevisionProperty(long revision)protected SVNURLgetRevpropURL(SVNRevision revision, java.util.Collection targets)protected java.util.MapgetURLProperties()protected SVNPropertyDatagetURLProperty(SVNURL url)voidhandleProperty(long revision, SVNPropertyData property)Handles a revision property.voidhandleProperty(java.io.File path, SVNPropertyData property)Handles local item's properties (located in a Working Copy).voidhandleProperty(SVNURL url, SVNPropertyData property)Handles remote item's properies (located in a repository).protected voidprintProperty(SVNPropertyValue value, boolean isPropListLike, boolean omitNewLine)protected voidprintProplist(java.util.List<SVNPropertyData> props, boolean omitNewLine)-
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, createSupportedOptions, getAliases, getCommand, getDescription, getEnvironment, getName, getSupportedOptions, getValidOptions, init, isAlias, isFailed, isOptionSupported, registerCommand, run, setFailed
-
-
-
-
Method Detail
-
clearCollectedProperties
protected void clearCollectedProperties()
-
getRevpropURL
protected SVNURL getRevpropURL(SVNRevision revision, java.util.Collection targets) throws SVNException
- Throws:
SVNException
-
checkRevPropTarget
protected java.lang.String checkRevPropTarget(SVNRevision revision, java.util.Collection targets) throws SVNException
- Throws:
SVNException
-
handleProperty
public void handleProperty(java.io.File path, SVNPropertyData property) throws SVNExceptionDescription copied from interface:ISVNPropertyHandlerHandles local item's properties (located in a Working Copy). Not called for revision properties.- Specified by:
handlePropertyin interfaceISVNPropertyHandler- Parameters:
path- an item's pathproperty- an item's versioned property- Throws:
SVNException
-
handleProperty
public void handleProperty(SVNURL url, SVNPropertyData property) throws SVNException
Description copied from interface:ISVNPropertyHandlerHandles remote item's properies (located in a repository). Not called for revision properties.- Specified by:
handlePropertyin interfaceISVNPropertyHandler- Parameters:
url- an item's repository locationproperty- an item's versioned property- Throws:
SVNException
-
handleProperty
public void handleProperty(long revision, SVNPropertyData property) throws SVNExceptionDescription copied from interface:ISVNPropertyHandlerHandles a revision property. SVNWCClient's methods operating on revision properties call this method to handle properties.- Specified by:
handlePropertyin interfaceISVNPropertyHandler- Parameters:
revision- a repository revision whichpropertyis to be handledproperty- a revision (unversioned) property- Throws:
SVNException- See Also:
SVNWCClient
-
getRevisionProperty
protected SVNPropertyData getRevisionProperty(long revision)
-
getPathProperty
protected SVNPropertyData getPathProperty(java.io.File path)
-
getURLProperty
protected SVNPropertyData getURLProperty(SVNURL url)
-
getURLProperties
protected java.util.Map getURLProperties()
-
getPathProperties
protected java.util.Map getPathProperties()
-
getRevisionProperties
protected java.util.Map getRevisionProperties()
-
printProplist
protected void printProplist(java.util.List<SVNPropertyData> props, boolean omitNewLine)
-
printProperty
protected void printProperty(SVNPropertyValue value, boolean isPropListLike, boolean omitNewLine)
-
checkBooleanProperty
protected void checkBooleanProperty(java.lang.String name, SVNPropertyValue value) throws SVNException- Throws:
SVNException
-
-