public class Status
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Status.Kind
class for kind status of the item or its properties
the constants are defined in the interface StatusKind for building
reasons
|
Constructor and Description |
---|
Status(java.lang.String path,
java.lang.String url,
NodeKind nodeKind,
long revision,
long lastChangedRevision,
long lastChangedDate,
java.lang.String lastCommitAuthor,
Status.Kind textStatus,
Status.Kind propStatus,
Status.Kind repositoryTextStatus,
Status.Kind repositoryPropStatus,
boolean locked,
boolean copied,
boolean isConflicted,
boolean switched,
boolean fileExternal,
Lock localLock,
Lock reposLock,
long reposLastCmtRevision,
long reposLastCmtDate,
NodeKind reposKind,
java.lang.String reposLastCmtAuthor,
java.lang.String changelist,
java.lang.String movedFromAbspath,
java.lang.String movedToAbspath)
Deprecated.
|
Status(java.lang.String path,
java.lang.String url,
NodeKind nodeKind,
long revision,
long lastChangedRevision,
long lastChangedDate,
java.lang.String lastCommitAuthor,
Status.Kind nodeStatus,
Status.Kind textStatus,
Status.Kind propStatus,
Status.Kind repositoryNodeStatus,
Status.Kind repositoryTextStatus,
Status.Kind repositoryPropStatus,
boolean locked,
boolean copied,
Depth depth,
boolean isConflicted,
boolean switched,
boolean fileExternal,
Lock localLock,
Lock reposLock,
long reposLastCmtRevision,
long reposLastCmtDate,
NodeKind reposKind,
java.lang.String reposLastCmtAuthor,
java.lang.String changelist,
java.lang.String movedFromAbspath,
java.lang.String movedToAbspath)
this constructor should only called from JNI code
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChangelist() |
Depth |
getDepth()
Returns the inherent depth of the node, as recorded in the working copy.
|
java.util.Date |
getLastChangedDate()
Returns the last date the item was changed or null
|
long |
getLastChangedDateMicros()
Returns the last date the item was changed measured in the
number of microseconds since 00:00:00 January 1, 1970 UTC.
|
Revision.Number |
getLastChangedRevision()
Returns the last revision the file was changed as a Revision object
|
long |
getLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integer
|
java.lang.String |
getLastCommitAuthor()
Returns the author of the last changed or null
|
Lock |
getLocalLock()
Returns the local lock
|
java.lang.String |
getMovedFromAbspath() |
java.lang.String |
getMovedToAbspath() |
NodeKind |
getNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)
|
Status.Kind |
getNodeStatus()
Returns the status of the node.
|
java.lang.String |
getNodeStatusDescription()
Returns the status of the node as text.
|
java.lang.String |
getPath()
Returns the file system path of the item
|
Status.Kind |
getPropStatus()
Returns the status of the properties.
|
java.lang.String |
getPropStatusDescription()
Returns the status of the properties as text
|
Status.Kind |
getRawRepositoryTextStatus()
Returns the real status of the item's contents in the repository.
|
Status.Kind |
getRawTextStatus()
Returns the real status of the item's contents.
|
java.lang.String |
getRawTextStatusDescription()
Returns the real status of the item's contents as a string.
|
Status.Kind |
getRepositoryNodeStatus()
Returns the status of the node in the repository.
|
Status.Kind |
getRepositoryPropStatus()
Returns test status of the properties in the repository.
|
Status.Kind |
getRepositoryTextStatus()
Returns the adjusted status of the item's contents in the
repository, as compatible with JavaHL 1.8 and older verions.
|
NodeKind |
getReposKind() |
java.lang.String |
getReposLastCmtAuthor() |
java.util.Date |
getReposLastCmtDate() |
long |
getReposLastCmtDateMicros()
Return the last committed date measured in the number of
microseconds since 00:00:00 January 1, 1970 UTC.
|
Revision.Number |
getReposLastCmtRevision() |
long |
getReposLastCmtRevisionNumber() |
Lock |
getReposLock()
Returns the lock as in the repository
|
Revision.Number |
getRevision()
Returns the revision as a Revision object
|
long |
getRevisionNumber()
Returns the revision as a long integer
|
Status.Kind |
getTextStatus()
Returns the adjusted status of the item's contents, as
compatible with JavaHL 1.8 and older verions.
|
java.lang.String |
getTextStatusDescription()
Returns the adjusted status of the item's contents as text.
|
java.lang.String |
getUrl()
Returns the URI to where the item might exist in the
repository.
|
boolean |
hasRemote()
Returns if the resource has a remote counter-part
|
boolean |
isAdded()
Returns if the resource just has been added
|
boolean |
isConflicted() |
boolean |
isCopied()
Returns if the item has been copied
|
boolean |
isDeleted()
Returns if the resource is schedules for delete
|
boolean |
isFileExternal()
Returns if the item is a file external
|
boolean |
isIgnored()
Returns if the resource is ignored by svn (only returned if noIgnore
is set on SVNClient.list)
|
boolean |
isLocked()
Returns if the item is locked (running or aborted subversion operation)
|
boolean |
isManaged()
Returns if is managed by svn (added, normal, modified ...)
|
boolean |
isMerged()
Returns if the resource has been merged
|
boolean |
isModified()
Returns if the resource itself is modified
|
boolean |
isSwitched()
Returns if the repository url has been switched
|
public Status(java.lang.String path, java.lang.String url, NodeKind nodeKind, long revision, long lastChangedRevision, long lastChangedDate, java.lang.String lastCommitAuthor, Status.Kind nodeStatus, Status.Kind textStatus, Status.Kind propStatus, Status.Kind repositoryNodeStatus, Status.Kind repositoryTextStatus, Status.Kind repositoryPropStatus, boolean locked, boolean copied, Depth depth, boolean isConflicted, boolean switched, boolean fileExternal, Lock localLock, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, NodeKind reposKind, java.lang.String reposLastCmtAuthor, java.lang.String changelist, java.lang.String movedFromAbspath, java.lang.String movedToAbspath)
path
- the file system path of itemurl
- the url of the itemnodeKind
- kind of item (directory, file or unknownrevision
- the revision number of the baselastChangedRevision
- the last revision this item was changedlastChangedDate
- the last date this item was changedlastCommitAuthor
- the author of the last changenodeStatus
- the status of the nodetextStatus
- the file or directory contents statuspropStatus
- the property statusrepositoryNodeStatus
- the status of the base noderepositoryTextStatus
- the file or directory contents status of the baserepositoryPropStatus
- the property status of the baselocked
- if the item is locked (running or aborted
operation)copied
- if the item is copydepth
- the inherent depth of the node in the working copyisConflicted
- if the item is part of a conflictswitched
- flag if the node has been switched in the
pathfileExternal
- flag if the node is a file externallocalLock
- the current lockreposLock
- the lock as stored in the repository if
anyreposLastCmtRevision
- the youngest revision, if out of datereposLastCmtDate
- the last commit date, if out of datereposKind
- the kind of the youngest revision, if
out of datereposLastCmtAuthor
- the author of the last commit, if out of
datechangelist
- the changelist the item is a member ofmovedFromAbspath
- path moved frommovedToAbspath
- path moved from@Deprecated public Status(java.lang.String path, java.lang.String url, NodeKind nodeKind, long revision, long lastChangedRevision, long lastChangedDate, java.lang.String lastCommitAuthor, Status.Kind textStatus, Status.Kind propStatus, Status.Kind repositoryTextStatus, Status.Kind repositoryPropStatus, boolean locked, boolean copied, boolean isConflicted, boolean switched, boolean fileExternal, Lock localLock, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, NodeKind reposKind, java.lang.String reposLastCmtAuthor, java.lang.String changelist, java.lang.String movedFromAbspath, java.lang.String movedToAbspath)
path
- the file system path of itemurl
- the url of the itemnodeKind
- kind of item (directory, file or unknownrevision
- the revision number of the baselastChangedRevision
- the last revision this item was changedlastChangedDate
- the last date this item was changedlastCommitAuthor
- the author of the last changetextStatus
- the file or directory status (See
StatusKind)propStatus
- the property status (See StatusKind)repositoryTextStatus
- the file or directory status of the baserepositoryPropStatus
- the property status of the baselocked
- if the item is locked (running or aborted
operation)copied
- if the item is copyisConflicted
- if the item is part of a conflictswitched
- flag if the node has been switched in the
pathfileExternal
- flag if the node is a file externallocalLock
- the current lockreposLock
- the lock as stored in the repository if
anyreposLastCmtRevision
- the youngest revision, if out of datereposLastCmtDate
- the last commit date, if out of datereposKind
- the kind of the youngest revision, if
out of datereposLastCmtAuthor
- the author of the last commit, if out of
datechangelist
- the changelist the item is a member ofmovedFromAbspath
- path moved frommovedToAbspath
- path moved frompublic java.lang.String getPath()
public Revision.Number getRevision()
public long getRevisionNumber()
public java.util.Date getLastChangedDate()
public long getLastChangedDateMicros()
public java.lang.String getLastCommitAuthor()
public Status.Kind getNodeStatus()
public java.lang.String getNodeStatusDescription()
public Status.Kind getRawTextStatus()
public java.lang.String getRawTextStatusDescription()
public Status.Kind getTextStatus()
public java.lang.String getTextStatusDescription()
public Status.Kind getPropStatus()
public java.lang.String getPropStatusDescription()
public Status.Kind getRepositoryNodeStatus()
public Status.Kind getRawRepositoryTextStatus()
public Status.Kind getRepositoryTextStatus()
public Status.Kind getRepositoryPropStatus()
public boolean isLocked()
public boolean isCopied()
public java.lang.String getUrl()
null
if the item
exists in neither the repository nor the WC.public Revision.Number getLastChangedRevision()
public long getLastChangedRevisionNumber()
public NodeKind getNodeKind()
public boolean isSwitched()
public boolean isFileExternal()
public boolean isManaged()
public boolean hasRemote()
public boolean isAdded()
public boolean isDeleted()
public boolean isMerged()
public boolean isIgnored()
public boolean isModified()
public Lock getLocalLock()
public Lock getReposLock()
public Revision.Number getReposLastCmtRevision()
Revision.SVN_INVALID_REVNUM
if up to date.public long getReposLastCmtRevisionNumber()
-1
if up to date.public java.util.Date getReposLastCmtDate()
null
if up to
date.public long getReposLastCmtDateMicros()
public NodeKind getReposKind()
null
if up to date.public java.lang.String getReposLastCmtAuthor()
null
if
up to date.public java.lang.String getChangelist()
public boolean isConflicted()
public java.lang.String getMovedFromAbspath()
public java.lang.String getMovedToAbspath()
public Depth getDepth()