Package org.tmatesoft.svn.core.wc2
Class SvnCommitItem
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnCommitItem
public class SvnCommitItem
extends java.lang.Object
Provides information about a committed
revision. Commit information includes:
- a path;
- a node kind;
- URL;
- a revision number;
- copy from URL;
- copy from revision number;
- flags;
- outgoing properties.
- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate longprivate SVNURLstatic final intprivate intprivate java.util.Map<java.lang.String,SVNPropertyValue> private SVNNodeKindstatic final intstatic final intprivate java.io.Fileprivate java.util.Map<java.lang.String,SVNPropertyValue> private java.io.Filestatic final intprivate longstatic final intprivate SVNURL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIncomingProperty(java.lang.String name, SVNPropertyValue value) voidaddOutgoingProperty(java.lang.String name, SVNPropertyValue value) Adds property with the name and the value that should be committed within the item.longReturns revision number of the repository item from whose working copy item was copied.Returns URL from whose the item was copied.intgetFlags()Returns commit item's flags.java.util.Map<java.lang.String,SVNPropertyValue> getKind()Returns commit item's node kind.java.io.Filejava.util.Map<java.lang.String,SVNPropertyValue> Returns all properties that should be committed within the item.java.io.FilegetPath()Returns commit item's working copy path.longReturns the revision number the repository was committed to.getUrl()Returns commit item's repository URL.booleanhasFlag(int flag) Checks whether commit item has the flagvoidsetCopyFromRevision(long copyFromRevision) Sets revision number of the repository item from whose working copy item was copied.voidsetCopyFromUrl(SVNURL copyFromUrl) Sets URL from whose the item was copied.voidsetFlags(int commitFlags) Sets commit item's flags.voidsetKind(SVNNodeKind kind) Sets commit item's node kind.voidsetMovedFromAbsPath(java.io.File movedFromAbsPath) voidsetPath(java.io.File path) Sets commit item's working copy path.voidsetRevision(long revision) Sets the revision number the repository was committed to.voidSets commit item's repository URL.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ADD
public static final int ADD- See Also:
-
DELETE
public static final int DELETE- See Also:
-
TEXT_MODIFIED
public static final int TEXT_MODIFIED- See Also:
-
PROPS_MODIFIED
public static final int PROPS_MODIFIED- See Also:
-
COPY
public static final int COPY- See Also:
-
LOCK
public static final int LOCK- See Also:
-
MOVED_HERE
public static final int MOVED_HERE- See Also:
-
path
private java.io.File path -
kind
-
url
-
revision
private long revision -
copyFromUrl
-
copyFromRevision
private long copyFromRevision -
movedFromAbsPath
private java.io.File movedFromAbsPath -
flags
private int flags -
outgoingProperties
-
incomingProperties
-
-
Constructor Details
-
SvnCommitItem
public SvnCommitItem()
-
-
Method Details
-
getPath
public java.io.File getPath()Returns commit item's working copy path.- Returns:
- working copy path of the commit item
-
getKind
Returns commit item's node kind.- Returns:
- node kind of the commit item
-
getUrl
Returns commit item's repository URL.- Returns:
- URL of the source copy item
-
getRevision
public long getRevision()Returns the revision number the repository was committed to.- Returns:
- revision number of the commit item
-
getCopyFromUrl
Returns URL from whose the item was copied.- Returns:
- copy item URL
-
getCopyFromRevision
public long getCopyFromRevision()Returns revision number of the repository item from whose working copy item was copied.- Returns:
- revision number of the source copy item
-
getFlags
public int getFlags()Returns commit item's flags.- Returns:
- the flags of the commit item
- See Also:
-
setPath
public void setPath(java.io.File path) Sets commit item's working copy path.- Parameters:
path- working copy path of the commit item
-
setKind
Sets commit item's node kind.- Parameters:
kind- node kind of the commit item
-
setUrl
Sets commit item's repository URL.- Parameters:
url- repository URL of the commit item
-
setRevision
public void setRevision(long revision) Sets the revision number the repository was committed to.- Parameters:
revision- revision number of the commit item
-
setCopyFromUrl
Sets URL from whose the item was copied.- Parameters:
copyFromUrl- URL of the source copy item
-
setCopyFromRevision
public void setCopyFromRevision(long copyFromRevision) Sets revision number of the repository item from whose working copy item was copied.- Parameters:
copyFromRevision- revision number of the source copy item
-
getMovedFromAbsPath
public java.io.File getMovedFromAbsPath() -
setMovedFromAbsPath
public void setMovedFromAbsPath(java.io.File movedFromAbsPath) -
setFlags
public void setFlags(int commitFlags) Sets commit item's flags. They can be the following value(s):- Parameters:
commitFlags- the flags of the commit item
-
hasFlag
public boolean hasFlag(int flag) Checks whether commit item has the flag- Parameters:
flag- the value of the flag- Returns:
trueif commit item flags contain the requested value, otherwisefalse
-
getOutgoingProperties
Returns all properties that should be committed within the item.- Returns:
- properties of the commit item
-
addOutgoingProperty
Adds property with the name and the value that should be committed within the item.- Parameters:
name- of the propertyvalue- of the property
-
getIncomingProperties
-
addIncomingProperty
-