Package org.tmatesoft.svn.core.wc2
Class SvnStatus
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnObject
org.tmatesoft.svn.core.wc2.SvnStatus
Provides detailed status information for
a working copy item as a result of a status operation invoked by a
SvnGetStatus operation.- Version:
- 1.7
- Author:
- TMate Software Ltd.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the author who last changed the item.org.tmatesoft.svn.core.internal.util.SVNDateGets the timestamp when the item was last changed (committed).longGets the revision when the item was last changed (committed).Returns the name of the changelist which the working copy item, denoted by this object, belongs to.longGets the revision of the item's ancestor from which the item was copied (the item is added with history).Gets the URL (repository location) of the ancestor from which the item was copied.getDepth()Returns the local item's depth.longReturns the item's file size.getKind()Gets the item's node kind characterizing it as an entry.getLock()Gets the file item's local lock.Returns the item's node status.getPath()Gets the item's path in the filesystem.Gets the working copy local item's properties status type.Gets the item's last changed author.org.tmatesoft.svn.core.internal.util.SVNDateGets the item's last changed date.longGets the item's last revision.Returns the kind of the item got from the repository.Gets the file item's repository lock.Returns the node status of the item got from the repository.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.Returns the item's repository relative path.Returns the item's repository root URL.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.Gets the repository Universal Unique IDentifier (UUID).longGets the item's current working revision.Gets the working copy local item's contents status type.intGet the working copy format.booleanReturns whether the item is in conflict state.booleanisCopied()Finds out if the item is added with history.booleanReturns whether the item is the external file.booleanReturns whether the item is switched to a different repository location.booleanReturns whether the item is versioned.booleanFinds 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).voidsetChangedAuthor(String changedAuthor) Sets the author who last changed the item.voidsetChangedDate(org.tmatesoft.svn.core.internal.util.SVNDate changedDate) Sets the timestamp when the item was last changed (committed).voidsetChangedRevision(long changedRevision) Sets the revision when the item was last changed (committed).voidsetChangelist(String changelist) Sets the name of the changelist which the working copy item, denoted by this object, belongs to.voidsetConflicted(boolean conflicted) Sets whether the item is in conflict state.voidsetCopied(boolean copied) Sets whether the item is in conflict state.voidsetCopyFromRevision(long copyFromRevision) Sets the revision of the item's ancestor from which the item was copied (the item is added with history).voidsetCopyFromUrl(SVNURL copyFromUrl) Sets the URL (repository location) of the ancestor from which the item was copied.voidSets the local item's depth.voidsetFileExternal(boolean fileExternal) Sets whether the item is the external file.voidsetFileSize(long fileSize) Sets the item's file size.voidsetKind(SVNNodeKind kind) Sets item's node kind.voidSets the file item's local lock.voidsetMovedFromPath(File path) voidsetMovedToPath(File path) voidsetNodeStatus(SVNStatusType nodeStatus) Sets the item's status.voidSets item's working copy path.voidsetPropertiesStatus(SVNStatusType propertiesStatus) Sets the item's properties status type.voidsetRepositoryChangedAuthor(String repositoryChangedAuthor) Sets the item's last changed author.voidsetRepositoryChangedDate(org.tmatesoft.svn.core.internal.util.SVNDate repositoryChangedDate) Sets the item's last changed date.voidsetRepositoryChangedRevision(long repositoryChangedRevision) Sets the item's last revision.voidsetRepositoryKind(SVNNodeKind repositoryKind) Sets the kind of the item got from the repository.voidsetRepositoryLock(SVNLock repositoryLock) Sets the file item's repository lock.voidsetRepositoryNodeStatus(SVNStatusType repositoryNodeStatus) Sets the node status of the item got from the repository.voidsetRepositoryPropertiesStatus(SVNStatusType repositoryPropertiesStatus) Sets the working copy item's properties status type against the repository.voidsetRepositoryRelativePath(String repositoryRelativePath) Sets the item's repository relative path.voidsetRepositoryRootUrl(SVNURL repositoryRootUrl) Sets the item's repository root URL.voidsetRepositoryTextStatus(SVNStatusType repositoryTextStatus) Sets the working copy item's contents status type against the repository.voidsetRepositoryUuid(String repositoryUuid) Sets the repository Universal Unique IDentifier (UUID).voidsetRevision(long revision) Sets the item's current working revision.voidsetSwitched(boolean switched) Sets whether the item is switched to a different repository location.voidsetTextStatus(SVNStatusType textStatus) Sets the item's contents status type.voidsetVersioned(boolean versioned) Sets whether the item is versioned.voidsetWcLocked(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).voidsetWorkingCopyFormat(int workingCopyFormat) Set the working copy format.Methods inherited from class org.tmatesoft.svn.core.wc2.SvnObject
getUserData, setUserData
-
Constructor Details
-
SvnStatus
public SvnStatus()
-
-
Method Details
-
getKind
Gets the item's node kind characterizing it as an entry.- Returns:
- the item's node kind (whether it's a file, directory, etc.)
-
getPath
Gets the item's path in the filesystem.- Returns:
- a File representation of the item's path
-
getFileSize
public long getFileSize()Returns the item's file size.- Returns:
- the file size of the item
-
isVersioned
public boolean isVersioned()Returns whether the item is versioned.- Returns:
trueif the item is versioned, otherwisefalse
-
isConflicted
public boolean isConflicted()Returns whether the item is in conflict state.- Returns:
trueif the item is in conflict state, otherwisefalse
-
getNodeStatus
Returns the item's node status.- Returns:
- the node status of the item
-
getTextStatus
Gets the working copy local item's contents status type.- Returns:
- the local contents status type
-
getPropertiesStatus
Gets the working copy local item's properties status type.- Returns:
- the local properties status type
-
isWcLocked
public 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).To clean up a working copy use
SvnCleanup.- Returns:
trueif locked, otherwisefalse- See Also:
-
isCopied
public boolean isCopied()Finds out if the item is added with history.- Returns:
trueif the item is added with history, otherwisefalse
-
getRepositoryRootUrl
Returns the item's repository root URL.- Returns:
- the repository root URL of the item
-
getRepositoryUuid
Gets the repository Universal Unique IDentifier (UUID).- Returns:
- the repository UUID
-
getRepositoryRelativePath
Returns the item's repository relative path.- Returns:
- the repository relative path of the item
-
getRevision
public long getRevision()Gets the item's current working revision.- Returns:
- the item's working revision
-
getChangedRevision
public long getChangedRevision()Gets the revision when the item was last changed (committed).- Returns:
- the last committed revision
-
getChangedDate
public org.tmatesoft.svn.core.internal.util.SVNDate getChangedDate()Gets the timestamp when the item was last changed (committed).- Returns:
- the last committed date
-
getChangedAuthor
Gets the author who last changed the item.- Returns:
- the item's last commit author
-
isSwitched
public boolean isSwitched()Returns whether the item is switched to a different repository location.- Returns:
trueif item is switched to a different repository location, otherwisefalse
-
isFileExternal
public boolean isFileExternal()Returns whether the item is the external file.- Returns:
trueif is the external file, otherwisefalse
-
getLock
Gets the file item's local lock.- Returns:
- file item's local lock
-
getDepth
Returns the local item's depth.- Returns:
- the local depth of the item
-
getRepositoryKind
Returns the kind of the item got from the repository. Relevant for a remote status invocation.- Returns:
- a repository item kind
-
getRepositoryNodeStatus
Returns the node status of the item got from the repository. Relevant for a remote status invocation.- Returns:
- a repository node status
-
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. Applicable for a remote status invocation.If the repository contents status type !=
SVNStatusType.STATUS_NONEthe local file may be out of date.- Returns:
- the repository contents status type
-
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. Applicable for a remote status invocation.If the repository properties status type !=
SVNStatusType.STATUS_NONEthe local file may be out of date.- Returns:
- the repository properties status type
-
getRepositoryLock
Gets the file item's repository lock.- Returns:
- file item's repository lock
-
getRepositoryChangedRevision
public long getRepositoryChangedRevision()Gets the item's last revision.- Returns:
- a repository last revision
-
getRepositoryChangedDate
public org.tmatesoft.svn.core.internal.util.SVNDate getRepositoryChangedDate()Gets the item's last changed date.- Returns:
- a repository last changed date
-
getRepositoryChangedAuthor
Gets the item's last changed author.- Returns:
- a last commit author
-
setKind
Sets item's node kind.- Parameters:
kind- node kind of the item
-
setPath
Sets item's working copy path.- Parameters:
path- working copy path of the item
-
setFileSize
public void setFileSize(long fileSize) Sets the item's file size.- Parameters:
fileSize- the file size of the item
-
setVersioned
public void setVersioned(boolean versioned) Sets whether the item is versioned.- Parameters:
versioned-trueif the item is versioned, otherwisefalse
-
setConflicted
public void setConflicted(boolean conflicted) Sets whether the item is in conflict state.- Parameters:
conflicted-trueif the item is in conflict state, otherwisefalse
-
setNodeStatus
Sets the item's status.- Parameters:
nodeStatus- the node status of the item
-
setTextStatus
Sets the item's contents status type.- Parameters:
textStatus- status type of the item's contents
-
setPropertiesStatus
Sets the item's properties status type.- Parameters:
propertiesStatus- status type of the item's properties
-
setWcLocked
public 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).- Parameters:
wcLocked-trueif locked, otherwisefalse
-
setCopied
public void setCopied(boolean copied) Sets whether the item is in conflict state.- Parameters:
copied-trueif the item is in conflict state, otherwisefalse
-
setRepositoryRootUrl
Sets the item's repository root URL.- Parameters:
repositoryRootUrl- the repository root URL of the item
-
setRepositoryUuid
Sets the repository Universal Unique IDentifier (UUID).- Parameters:
repositoryUuid- the repository UUID
-
setRepositoryRelativePath
Sets the item's repository relative path.- Parameters:
repositoryRelativePath- the relative path of the item
-
setRevision
public void setRevision(long revision) Sets the item's current working revision.- Parameters:
revision- the item's working revision
-
setChangedRevision
public void setChangedRevision(long changedRevision) Sets the revision when the item was last changed (committed).- Parameters:
changedRevision- the last committed revision
-
setChangedDate
public void setChangedDate(org.tmatesoft.svn.core.internal.util.SVNDate changedDate) Sets the timestamp when the item was last changed (committed).- Parameters:
changedDate- the last committed date
-
setChangedAuthor
Sets the author who last changed the item.- Parameters:
changedAuthor- the item's last commit author
-
setSwitched
public void setSwitched(boolean switched) Sets whether the item is switched to a different repository location.- Parameters:
switched-trueif item is switched to a different repository location, otherwisefalse
-
setFileExternal
public void setFileExternal(boolean fileExternal) Sets whether the item is the external file.- Parameters:
fileExternal-trueif is the external file, otherwisefalse
-
setLock
Sets the file item's local lock.- Parameters:
lock- file item's local lock
-
setDepth
Sets the local item's depth.- Parameters:
depth- the local depth of the item
-
setRepositoryKind
Sets the kind of the item got from the repository.- Parameters:
repositoryKind- a repository item kind
-
setRepositoryNodeStatus
Sets the node status of the item got from the repository.- Parameters:
repositoryNodeStatus- a repository node status
-
setRepositoryTextStatus
Sets the working copy item's contents status type against the repository.- Parameters:
repositoryTextStatus- the repository contents status type
-
setRepositoryPropertiesStatus
Sets the working copy item's properties status type against the repository.- Parameters:
repositoryPropertiesStatus- the repository properties status type
-
setRepositoryLock
Sets the file item's repository lock.- Parameters:
repositoryLock- file item's repository lock
-
setRepositoryChangedRevision
public void setRepositoryChangedRevision(long repositoryChangedRevision) Sets the item's last revision.- Parameters:
repositoryChangedRevision- a repository last revision
-
setRepositoryChangedDate
public void setRepositoryChangedDate(org.tmatesoft.svn.core.internal.util.SVNDate repositoryChangedDate) Sets the item's last changed date.- Parameters:
repositoryChangedDate- a repository last changed date
-
setRepositoryChangedAuthor
Sets the item's last changed author.- Parameters:
repositoryChangedAuthor- a last commit author
-
getChangelist
Returns the name of the changelist which the working copy item, denoted by this object, belongs to.- Returns:
- changelist name
-
setChangelist
Sets the name of the changelist which the working copy item, denoted by this object, belongs to.- Parameters:
changelist- name of changelist
-
setCopyFromUrl
Sets the URL (repository location) of the ancestor from which the item was copied. That is when the item is added with history.- Parameters:
copyFromUrl- the item ancestor's URL
-
getCopyFromUrl
Gets the URL (repository location) of the ancestor from which the item was copied. That is when the item is added with history.- Returns:
- the item ancestor's URL
-
setCopyFromRevision
public void setCopyFromRevision(long copyFromRevision) Sets the revision of the item's ancestor from which the item was copied (the item is added with history).- Parameters:
copyFromRevision- the ancestor's revision
-
getCopyFromRevision
public long getCopyFromRevision()Gets the revision of the item's ancestor from which the item was copied (the item is added with history).- Returns:
- the ancestor's revision
-
getWorkingCopyFormat
public int getWorkingCopyFormat()Get the working copy format. This method is used for internal purposes only- Returns:
- working copy format
-
setWorkingCopyFormat
public void setWorkingCopyFormat(int workingCopyFormat) Set the working copy format. This method is used for internal purposes only- Parameters:
workingCopyFormat- working copy format
-
getMovedToPath
-
setMovedToPath
-
getMovedFromPath
-
setMovedFromPath
-