public class CommitItem
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CommitItem.StateFlags
the class for the commit item state flags.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
copyUrl
the source of the copy
|
(package private) int |
nodeKind
the kind node (file or directory)
|
(package private) java.lang.String |
path
the pathname of the item to be commit
|
(package private) long |
revision
the revision
|
private static long |
serialVersionUID |
(package private) int |
stateFlags
the kind of change to be committed (See CommitItemStateFlages)
|
(package private) java.lang.String |
url
the url of the item
|
Constructor and Description |
---|
CommitItem(CommitItem aItem)
A backward-compat constructor.
|
CommitItem(java.lang.String p,
int nk,
int sf,
java.lang.String u,
java.lang.String cu,
long r)
This constructor will be only called from the jni code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCopyUrl()
Returns the source url if the item is copied
|
int |
getNodeKind()
return the node kind of the commit item
|
java.lang.String |
getPath()
retrieve the path of the commit item
|
long |
getRevision()
Returns the revision number
|
int |
getStateFlags()
return the kind of change for the commit item.
|
java.lang.String |
getUrl()
Returns the url of the item
|
private static final long serialVersionUID
java.lang.String path
int nodeKind
int stateFlags
java.lang.String url
java.lang.String copyUrl
long revision
CommitItem(java.lang.String p, int nk, int sf, java.lang.String u, java.lang.String cu, long r)
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 numberpublic CommitItem(CommitItem aItem)
public java.lang.String getPath()
public int getNodeKind()
public int getStateFlags()
public java.lang.String getUrl()
public java.lang.String getCopyUrl()
public long getRevision()