public class DefaultSVNCommitHandler extends java.lang.Object implements ISVNCommitHandler
Since methods of those SVN*Client classes that can initiate a commit operation use ISVNCommitHandler to process user's commit log messages there should be a default implementation. If no special implementation of ISVNCommitHandler is provided into those classes then DefaultSVNCommitHandler is the one that is used by default.
ISVNCommitHandler
Constructor and Description |
---|
DefaultSVNCommitHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommitMessage(java.lang.String message,
SVNCommitItem[] commitables)
Returns the
message itself without any modifications to it
or "" if the message is null. |
SVNProperties |
getRevisionProperties(java.lang.String message,
SVNCommitItem[] commitables,
SVNProperties revisionProperties)
Returns
revisionProperties as is if it's not null, or
an empty SVNProperties object if revisionProperties is null. |
public java.lang.String getCommitMessage(java.lang.String message, SVNCommitItem[] commitables) throws SVNException
message
itself without any modifications to it
or ""
if the message
is null.
In other words this method does nothing except of replacing null
for ""
.
getCommitMessage
in interface ISVNCommitHandler
message
- a user's initial commit log messagecommitables
- an array of SVNCommitItem objects
that represent Working Copy items which have local modifications
and so need to be committed to the repository""
if the message is nullSVNException
public SVNProperties getRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException
revisionProperties
as is if it's not null, or
an empty SVNProperties
object if revisionProperties
is null.getRevisionProperties
in interface ISVNCommitHandler
message
- log message for commitcommitables
- paths to commitrevisionProperties
- initial revision properties to setrevisionProperties
itself or an empty SVNProperties
object if revisionProperties
is nullSVNException
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.