public class SvnStatus extends SvnObject
SvnGetStatus
operation.SvnGetStatus
Constructor and Description |
---|
SvnStatus() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChangedAuthor()
Gets the author who last changed the item.
|
SVNDate |
getChangedDate()
Gets the timestamp when the item was last changed (committed).
|
long |
getChangedRevision()
Gets the revision when the item was last changed (committed).
|
java.lang.String |
getChangelist()
Returns the name of the changelist which the working copy item, denoted
by this object, belongs to.
|
long |
getCopyFromRevision()
Gets the revision of the item's ancestor from which the item was copied
(the item is added with history).
|
SVNURL |
getCopyFromUrl()
Gets the URL (repository location) of the ancestor from which the item
was copied.
|
SVNDepth |
getDepth()
Returns the local item's depth.
|
long |
getFileSize()
Returns the item's file size.
|
SVNNodeKind |
getKind()
Gets the item's node kind characterizing it as an entry.
|
SVNLock |
getLock()
Gets the file item's local lock.
|
java.io.File |
getMovedFromPath() |
java.io.File |
getMovedToPath() |
SVNStatusType |
getNodeStatus()
Returns the item's node status.
|
java.io.File |
getPath()
Gets the item's path in the filesystem.
|
SVNStatusType |
getPropertiesStatus()
Gets the working copy local item's properties status type.
|
java.lang.String |
getRepositoryChangedAuthor()
Gets the item's last changed author.
|
SVNDate |
getRepositoryChangedDate()
Gets the item's last changed date.
|
long |
getRepositoryChangedRevision()
Gets the item's last revision.
|
SVNNodeKind |
getRepositoryKind()
Returns the kind of the item got from the repository.
|
SVNLock |
getRepositoryLock()
Gets the file item's repository lock.
|
SVNStatusType |
getRepositoryNodeStatus()
Returns the node status of the item got from the repository.
|
SVNStatusType |
getRepositoryPropertiesStatus()
Gets the working copy item's properties status type against the
repository - that is comparing the item's BASE revision and the latest
one in the repository when the item was changed.
|
java.lang.String |
getRepositoryRelativePath()
Returns the item's repository relative path.
|
SVNURL |
getRepositoryRootUrl()
Returns the item's repository root URL.
|
SVNStatusType |
getRepositoryTextStatus()
Gets the working copy item's contents status type against the repository
- that is comparing the item's BASE revision and the latest one in the
repository when the item was changed.
|
java.lang.String |
getRepositoryUuid()
Gets the repository Universal Unique IDentifier (UUID).
|
long |
getRevision()
Gets the item's current working revision.
|
SVNStatusType |
getTextStatus()
Gets the working copy local item's contents status type.
|
int |
getWorkingCopyFormat()
Get the working copy format.
|
boolean |
isConflicted()
Returns whether the item is in conflict state.
|
boolean |
isCopied()
Finds out if the item is added with history.
|
boolean |
isFileExternal()
Returns whether the item is the external file.
|
boolean |
isSwitched()
Returns whether the item is switched to a different repository location.
|
boolean |
isVersioned()
Returns whether the item is versioned.
|
boolean |
isWcLocked()
Finds out if the item is locked (not a user lock but a driver's one when
during an operation a working copy is locked in .svn
administrative areas to prevent from other operations interrupting until
the running one finishes).
|
void |
setChangedAuthor(java.lang.String changedAuthor)
Sets the author who last changed the item.
|
void |
setChangedDate(SVNDate changedDate)
Sets the timestamp when the item was last changed (committed).
|
void |
setChangedRevision(long changedRevision)
Sets the revision when the item was last changed (committed).
|
void |
setChangelist(java.lang.String changelist)
Sets the name of the changelist which the working copy item, denoted
by this object, belongs to.
|
void |
setConflicted(boolean conflicted)
Sets whether the item is in conflict state.
|
void |
setCopied(boolean copied)
Sets whether the item is in conflict state.
|
void |
setCopyFromRevision(long copyFromRevision)
Sets the revision of the item's ancestor from which the item was copied
(the item is added with history).
|
void |
setCopyFromUrl(SVNURL copyFromUrl)
Sets the URL (repository location) of the ancestor from which the item
was copied.
|
void |
setDepth(SVNDepth depth)
Sets the local item's depth.
|
void |
setFileExternal(boolean fileExternal)
Sets whether the item is the external file.
|
void |
setFileSize(long fileSize)
Sets the item's file size.
|
void |
setKind(SVNNodeKind kind)
Sets item's node kind.
|
void |
setLock(SVNLock lock)
Sets the file item's local lock.
|
void |
setMovedFromPath(java.io.File path) |
void |
setMovedToPath(java.io.File path) |
void |
setNodeStatus(SVNStatusType nodeStatus)
Sets the item's status.
|
void |
setPath(java.io.File path)
Sets item's working copy path.
|
void |
setPropertiesStatus(SVNStatusType propertiesStatus)
Sets the item's properties status type.
|
void |
setRepositoryChangedAuthor(java.lang.String repositoryChangedAuthor)
Sets the item's last changed author.
|
void |
setRepositoryChangedDate(SVNDate repositoryChangedDate)
Sets the item's last changed date.
|
void |
setRepositoryChangedRevision(long repositoryChangedRevision)
Sets the item's last revision.
|
void |
setRepositoryKind(SVNNodeKind repositoryKind)
Sets the kind of the item got from the repository.
|
void |
setRepositoryLock(SVNLock repositoryLock)
Sets the file item's repository lock.
|
void |
setRepositoryNodeStatus(SVNStatusType repositoryNodeStatus)
Sets the node status of the item got from the repository.
|
void |
setRepositoryPropertiesStatus(SVNStatusType repositoryPropertiesStatus)
Sets the working copy item's properties status type against the
repository.
|
void |
setRepositoryRelativePath(java.lang.String repositoryRelativePath)
Sets the item's repository relative path.
|
void |
setRepositoryRootUrl(SVNURL repositoryRootUrl)
Sets the item's repository root URL.
|
void |
setRepositoryTextStatus(SVNStatusType repositoryTextStatus)
Sets the working copy item's contents status type against the repository.
|
void |
setRepositoryUuid(java.lang.String repositoryUuid)
Sets the repository Universal Unique IDentifier (UUID).
|
void |
setRevision(long revision)
Sets the item's current working revision.
|
void |
setSwitched(boolean switched)
Sets whether the item is switched to a different repository location.
|
void |
setTextStatus(SVNStatusType textStatus)
Sets the item's contents status type.
|
void |
setVersioned(boolean versioned)
Sets whether the item is versioned.
|
void |
setWcLocked(boolean wcLocked)
Sets if the item is locked (not a user lock but a driver's one when
during an operation a working copy is locked in .svn
administrative areas to prevent from other operations interrupting until
the running one finishes).
|
void |
setWorkingCopyFormat(int workingCopyFormat)
Set the working copy format.
|
getUserData, setUserData
public SVNNodeKind getKind()
public java.io.File getPath()
public long getFileSize()
public boolean isVersioned()
true
if the item is versioned, otherwise false
public boolean isConflicted()
true
if the item is in conflict state, otherwise false
public SVNStatusType getNodeStatus()
public SVNStatusType getTextStatus()
public SVNStatusType getPropertiesStatus()
public boolean isWcLocked()
To clean up a working copy use SvnCleanup
.
true
if locked, otherwise false
SvnCleanup
public boolean isCopied()
true
if the item is added with history, otherwise false
public SVNURL getRepositoryRootUrl()
public java.lang.String getRepositoryUuid()
public java.lang.String getRepositoryRelativePath()
public long getRevision()
public long getChangedRevision()
public SVNDate getChangedDate()
public java.lang.String getChangedAuthor()
public boolean isSwitched()
true
if item is switched to a different repository location, otherwise false
public boolean isFileExternal()
true
if is the external file, otherwise false
public SVNLock getLock()
public SVNDepth getDepth()
public SVNNodeKind getRepositoryKind()
public SVNStatusType getRepositoryNodeStatus()
public SVNStatusType getRepositoryTextStatus()
If the repository contents status type != SVNStatusType.STATUS_NONE
the local file may be out of date.
public SVNStatusType getRepositoryPropertiesStatus()
If the repository properties status type != SVNStatusType.STATUS_NONE
the local file may be out of date.
public SVNLock getRepositoryLock()
public long getRepositoryChangedRevision()
public SVNDate getRepositoryChangedDate()
public java.lang.String getRepositoryChangedAuthor()
public void setKind(SVNNodeKind kind)
kind
- node kind of the itempublic void setPath(java.io.File path)
path
- working copy path of the itempublic void setFileSize(long fileSize)
fileSize
- the file size of the itempublic void setVersioned(boolean versioned)
versioned
- true
if the item is versioned, otherwise false
public void setConflicted(boolean conflicted)
conflicted
- true
if the item is in conflict state, otherwise false
public void setNodeStatus(SVNStatusType nodeStatus)
nodeStatus
- the node status of the itempublic void setTextStatus(SVNStatusType textStatus)
textStatus
- status type of the item's contentspublic void setPropertiesStatus(SVNStatusType propertiesStatus)
propertiesStatus
- status type of the item's propertiespublic void setWcLocked(boolean wcLocked)
wcLocked
- true
if locked, otherwise false
public void setCopied(boolean copied)
copied
- true
if the item is in conflict state, otherwise false
public void setRepositoryRootUrl(SVNURL repositoryRootUrl)
repositoryRootUrl
- the repository root URL of the itempublic void setRepositoryUuid(java.lang.String repositoryUuid)
repositoryUuid
- the repository UUIDpublic void setRepositoryRelativePath(java.lang.String repositoryRelativePath)
repositoryRelativePath
- the relative path of the itempublic void setRevision(long revision)
revision
- the item's working revisionpublic void setChangedRevision(long changedRevision)
changedRevision
- the last committed revisionpublic void setChangedDate(SVNDate changedDate)
changedDate
- the last committed datepublic void setChangedAuthor(java.lang.String changedAuthor)
changedAuthor
- the item's last commit authorpublic void setSwitched(boolean switched)
switched
- true
if item is switched to a different repository location, otherwise false
public void setFileExternal(boolean fileExternal)
fileExternal
- true
if is the external file, otherwise false
public void setLock(SVNLock lock)
lock
- file item's local lockpublic void setDepth(SVNDepth depth)
depth
- the local depth of the itempublic void setRepositoryKind(SVNNodeKind repositoryKind)
repositoryKind
- a repository item kindpublic void setRepositoryNodeStatus(SVNStatusType repositoryNodeStatus)
repositoryNodeStatus
- a repository node statuspublic void setRepositoryTextStatus(SVNStatusType repositoryTextStatus)
repositoryTextStatus
- the repository contents status typepublic void setRepositoryPropertiesStatus(SVNStatusType repositoryPropertiesStatus)
repositoryPropertiesStatus
- the repository properties status typepublic void setRepositoryLock(SVNLock repositoryLock)
repositoryLock
- file item's repository lockpublic void setRepositoryChangedRevision(long repositoryChangedRevision)
repositoryChangedRevision
- a repository last revisionpublic void setRepositoryChangedDate(SVNDate repositoryChangedDate)
repositoryChangedDate
- a repository last changed datepublic void setRepositoryChangedAuthor(java.lang.String repositoryChangedAuthor)
repositoryChangedAuthor
- a last commit authorpublic java.lang.String getChangelist()
public void setChangelist(java.lang.String changelist)
changelist
- name of changelistpublic void setCopyFromUrl(SVNURL copyFromUrl)
copyFromUrl
- the item ancestor's URLpublic SVNURL getCopyFromUrl()
public void setCopyFromRevision(long copyFromRevision)
copyFromRevision
- the ancestor's revisionpublic long getCopyFromRevision()
public int getWorkingCopyFormat()
public void setWorkingCopyFormat(int workingCopyFormat)
workingCopyFormat
- working copy formatpublic java.io.File getMovedToPath()
public void setMovedToPath(java.io.File path)
public java.io.File getMovedFromPath()
public void setMovedFromPath(java.io.File path)
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.