org.tigris.subversion.javahl
Class Status

java.lang.Object
  |
  +--org.tigris.subversion.javahl.Status

public class Status
extends java.lang.Object

Subversion status API. This describes the status of one subversion item (file or directory) in the working copy. Will be returned by SVNClient.status or SVNClient.singleStatus


Inner Class Summary
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 Summary
Status(java.lang.String path, java.lang.String url, int nodeKind, long revision, long lastChangedRevision, long lastChangedDate, java.lang.String lastCommitAuthor, int textStatus, int propStatus, int repositoryTextStatus, int repositoryPropStatus, boolean locked, boolean copied, java.lang.String conflictOld, java.lang.String conflictNew, java.lang.String conflictWorking, java.lang.String urlCopiedFrom, long revisionCopiedFrom, boolean switched)
          this constructor should only called from JNI code
 
Method Summary
 java.lang.String getConflictNew()
          Returns in case of conflict, the filename of the most recent repository version
 java.lang.String getConflictOld()
          Returns in case of conflict, the filename of the common base version
 java.lang.String getConflictWorking()
          Returns in case of conflict, the filename of the former working copy version
 java.util.Date getLastChangedDate()
          Returns the last date the item was changed or null
 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
 int getNodeKind()
          Returns the kind of the node (file, directory or unknown, see NodeKind)
 java.lang.String getPath()
          Returns the file system path of the item
 int getPropStatus()
          Returns the status of the properties (See Status Kind)
 java.lang.String getPropStatusDescription()
          Returns the status of the properties as text
 int getRepositoryPropStatus()
          Returns test status of the properties in the repository (See StatusKind)
 int getRepositoryTextStatus()
          Returns the status of the item in the repository (See StatusKind)
 Revision.Number getRevision()
          Returns the revision as a Revision object
 Revision.Number getRevisionCopiedFrom()
          Returns if copied the source revision as a Revision object
 long getRevisionCopiedFromNumber()
          Returns if copied the source revision as s long integer
 long getRevisionNumber()
          Returns the revision as a long integer
 int getTextStatus()
          Returns the status of the item (See StatusKind)
 java.lang.String getTextStatusDescription()
          Returns the status of the item as text.
 java.lang.String getUrl()
          Returns the repository url if any
 java.lang.String getUrlCopiedFrom()
          Returns if copied the copy source url or null
 boolean hasRemote()
          Returns if the resource has a remote counter-part
 boolean isAdded()
          Returns if the resource just has been added
 boolean isCopied()
          Returns if the item has been copied
 boolean isDeleted()
          Returns if the resource is schedules for delete
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Status

public Status(java.lang.String path,
              java.lang.String url,
              int nodeKind,
              long revision,
              long lastChangedRevision,
              long lastChangedDate,
              java.lang.String lastCommitAuthor,
              int textStatus,
              int propStatus,
              int repositoryTextStatus,
              int repositoryPropStatus,
              boolean locked,
              boolean copied,
              java.lang.String conflictOld,
              java.lang.String conflictNew,
              java.lang.String conflictWorking,
              java.lang.String urlCopiedFrom,
              long revisionCopiedFrom,
              boolean switched)
this constructor should only called from JNI code
Parameters:
path - the file system path of item
url - the url of the item
nodeKind - kind of item (directory, file or unknown
revision - the revision number of the base
lastChangedRevision - the last revision this item was changed
lastChangedDate - the last date this item was changed
lastCommitAuthor - the author of the last change
textStatus - the file or directory status (See StatusKind)
propStatus - the property status (See StatusKind)
repositoryTextStatus - the file or directory status of the base
repositoryPropStatus - the property status of the base
locked - if the item is locked (running or aborted operation)
copied - if the item is copy
conflictOld - in case of conflict, the file name of the the common base version
conflictNew - in case of conflict, the file name of new repository version
conflictWorking - in case of conflict, the file name of the former working copy version
urlCopiedFrom - if copied, the url of the copy source
revisionCopiedFrom - if copied, the revision number of the copy source
switched -  
Method Detail

getPath

public java.lang.String getPath()
Returns the file system path of the item
Returns:
path of status entry

getRevision

public Revision.Number getRevision()
Returns the revision as a Revision object
Returns:
revision if versioned, otherwise SVN_INVALID_REVNUM

getRevisionNumber

public long getRevisionNumber()
Returns the revision as a long integer
Returns:
revision if versioned, otherwise SVN_INVALID_REVNUM

getLastChangedDate

public java.util.Date getLastChangedDate()
Returns the last date the item was changed or null
Returns:
the last time the item was changed. or null if not available

getLastCommitAuthor

public java.lang.String getLastCommitAuthor()
Returns the author of the last changed or null
Returns:
name of author if versioned, null otherwise

getTextStatus

public int getTextStatus()
Returns the status of the item (See StatusKind)
Returns:
file status property enum of the "textual" component.

getTextStatusDescription

public java.lang.String getTextStatusDescription()
Returns the status of the item as text.
Returns:
english text

getPropStatus

public int getPropStatus()
Returns the status of the properties (See Status Kind)
Returns:
file status property enum of the "property" component.

getPropStatusDescription

public java.lang.String getPropStatusDescription()
Returns the status of the properties as text
Returns:
english text

getRepositoryTextStatus

public int getRepositoryTextStatus()
Returns the status of the item in the repository (See StatusKind)
Returns:
file status property enum of the "textual" component in the repository.

getRepositoryPropStatus

public int getRepositoryPropStatus()
Returns test status of the properties in the repository (See StatusKind)
Returns:
file status property enum of the "property" component im the repository.

isLocked

public boolean isLocked()
Returns if the item is locked (running or aborted subversion operation)
Returns:
true if locked

isCopied

public boolean isCopied()
Returns if the item has been copied
Returns:
true if copied

getConflictNew

public java.lang.String getConflictNew()
Returns in case of conflict, the filename of the most recent repository version
Returns:
the filename of the most recent repository version

getConflictOld

public java.lang.String getConflictOld()
Returns in case of conflict, the filename of the common base version
Returns:
the filename of the common base version

getConflictWorking

public java.lang.String getConflictWorking()
Returns in case of conflict, the filename of the former working copy version
Returns:
the filename of the former working copy version

getUrl

public java.lang.String getUrl()
Returns the repository url if any
Returns:
url in repository or null if not known

getLastChangedRevision

public Revision.Number getLastChangedRevision()
Returns the last revision the file was changed as a Revision object
Returns:
last changed revision

getLastChangedRevisionNumber

public long getLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integer
Returns:
last changed revision

getNodeKind

public int getNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)
Returns:
the node kind

getUrlCopiedFrom

public java.lang.String getUrlCopiedFrom()
Returns if copied the copy source url or null
Returns:
the source url

getRevisionCopiedFrom

public Revision.Number getRevisionCopiedFrom()
Returns if copied the source revision as a Revision object
Returns:
the source revision

getRevisionCopiedFromNumber

public long getRevisionCopiedFromNumber()
Returns if copied the source revision as s long integer
Returns:
the source revision

isSwitched

public boolean isSwitched()
Returns if the repository url has been switched
Returns:
is the item has been switched

isManaged

public boolean isManaged()
Returns if is managed by svn (added, normal, modified ...)
Returns:
if managed by svn

hasRemote

public boolean hasRemote()
Returns if the resource has a remote counter-part
Returns:
has version in repository

isAdded

public boolean isAdded()
Returns if the resource just has been added
Returns:
if added

isDeleted

public boolean isDeleted()
Returns if the resource is schedules for delete
Returns:
if deleted

isMerged

public boolean isMerged()
Returns if the resource has been merged
Returns:
if merged

isIgnored

public boolean isIgnored()
Returns if the resource is ignored by svn (only returned if noIgnore is set on SVNClient.list)
Returns:
if ignore

isModified

public boolean isModified()
Returns if the resource itself is modified
Returns:
if modified