Package org.apache.subversion.javahl
Class CommitItem
java.lang.Object
org.apache.subversion.javahl.CommitItem
- All Implemented Interfaces:
java.io.Serializable
public class CommitItem
extends java.lang.Object
implements java.io.Serializable
This class describes a item which will be committed.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classthe class for the commit item state flags. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) java.lang.Stringthe source of the copy(package private) java.lang.Stringthe source of the move(package private) NodeKindthe kind node (file or directory)(package private) java.lang.Stringthe pathname of the item to be commit(package private) longthe revisionprivate static final long(package private) intthe kind of change to be committed (See CommitItemStateFlages)(package private) java.lang.Stringthe url of the item -
Constructor Summary
ConstructorsConstructorDescriptionCommitItem(java.lang.String p, NodeKind nk, int sf, java.lang.String u, java.lang.String cu, long r, java.lang.String mf) This constructor will be only called from the jni code. -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.StringReturns the source url if the item is copiedjava.lang.Stringreturn the node kind of the commit itemjava.lang.StringgetPath()retrieve the path of the commit itemlongReturns the revision numberintreturn the kind of change for the commit item.java.lang.StringgetUrl()Returns the url of the itemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
path
java.lang.String paththe pathname of the item to be commit -
nodeKind
NodeKind nodeKindthe kind node (file or directory) -
stateFlags
int stateFlagsthe kind of change to be committed (See CommitItemStateFlages) -
url
java.lang.String urlthe url of the item -
copyUrl
java.lang.String copyUrlthe source of the copy -
revision
long revisionthe revision -
movedFromPath
java.lang.String movedFromPaththe source of the move
-
-
Constructor Details
-
CommitItem
CommitItem(java.lang.String p, NodeKind nk, int sf, java.lang.String u, java.lang.String cu, long r, java.lang.String mf) This constructor will be only called from the jni code.- Parameters:
p- path to the commit itemnk- kind of node (see NodeKind)sf- state flags (see StateFlags)u- url of the itemcu- copy source urlr- revision numbermf- move source abspath
-
-
Method Details
-
getPath
public java.lang.String getPath()retrieve the path of the commit item- Returns:
- the path
-
getNodeKind
return the node kind of the commit item- Returns:
- the node kind. Look at the NodeKind class.
-
getStateFlags
public int getStateFlags()return the kind of change for the commit item.- Returns:
- the state flags. Look at the CommitItemStateFlags interface.
-
getUrl
public java.lang.String getUrl()Returns the url of the item- Returns:
- url
-
getCopyUrl
public java.lang.String getCopyUrl()Returns the source url if the item is copied- Returns:
- source url
-
getRevision
public long getRevision()Returns the revision number- Returns:
- revision number
-
getMovedFromPath
public java.lang.String getMovedFromPath()- Returns:
- the absolute path of the source of a move.
- Since:
- 1.8
-