org.tigris.subversion.svnclientadapter
Class SVNStatusUnversioned

java.lang.Object
  extended by org.tigris.subversion.svnclientadapter.SVNStatusUnversioned
All Implemented Interfaces:
ISVNStatus

public class SVNStatusUnversioned
extends java.lang.Object
implements ISVNStatus

A special ISVNStatus implementation that is used if a File/Folder is not versioned or is ignored.

Author:
Philip Schatz (schatz at tigris), C?dric Chabanois (cchabanois at no-log.org)

Constructor Summary
SVNStatusUnversioned(java.io.File file)
          Constructor.
SVNStatusUnversioned(java.io.File file, boolean isIgnored)
          Constructor.
 
Method Summary
 SVNConflictDescriptor getConflictDescriptor()
          Returns the conflict descriptor for the tree conflict
 java.io.File getConflictNew()
          Returns in case of conflict, the file of the most recent repository version
 java.io.File getConflictOld()
          Returns in case of conflict, the file of the common base version
 java.io.File getConflictWorking()
          Returns in case of conflict, the file of the former working copy version
 java.io.File getFile()
           
 java.util.Date getLastChangedDate()
           
 SVNRevision.Number getLastChangedRevision()
           
 java.lang.String getLastCommitAuthor()
          get the last commit author or null if resource is not versionned or if last commit author is unknown
 java.lang.String getLockComment()
          Returns the lock comment
 java.util.Date getLockCreationDate()
          Returns the lock creation date
 java.lang.String getLockOwner()
          Returns the lock owner
 SVNNodeKind getNodeKind()
           
 java.lang.String getPath()
           
 SVNStatusKind getPropStatus()
           
 SVNStatusKind getRepositoryPropStatus()
           
 SVNStatusKind getRepositoryTextStatus()
           
 SVNRevision.Number getRevision()
           
 SVNStatusKind getTextStatus()
           
 SVNUrl getUrl()
           
 SVNUrl getUrlCopiedFrom()
           
 java.lang.String getUrlString()
           
 boolean hasTreeConflict()
          Returns the tree conflicted state
 boolean isCopied()
           
 boolean isFileExternal()
          Returns if the item is a file external
 boolean isSwitched()
           
 boolean isWcLocked()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVNStatusUnversioned

public SVNStatusUnversioned(java.io.File file,
                            boolean isIgnored)
Constructor.

Parameters:
file -
isIgnored - true when creating SVNStatusKind.IGNORED, otherwise SVNStatusKind.UNVERSIONED

SVNStatusUnversioned

public SVNStatusUnversioned(java.io.File file)
Constructor. Creates an unversioned status (i.e. not ignored)

Parameters:
file -
Method Detail

getPath

public java.lang.String getPath()
Specified by:
getPath in interface ISVNStatus
Returns:
The path to this item relative to the directory from which status was run.

getFile

public java.io.File getFile()
Specified by:
getFile in interface ISVNStatus
Returns:
The absolute path to this item.

getUrl

public SVNUrl getUrl()
Specified by:
getUrl in interface ISVNStatus
Returns:
the SVNUrl instance of url of the resource on repository

getUrlString

public java.lang.String getUrlString()
Specified by:
getUrlString in interface ISVNStatus
Returns:
the url (String) of the resource in repository

getLastChangedRevision

public SVNRevision.Number getLastChangedRevision()
Specified by:
getLastChangedRevision in interface ISVNStatus
Returns:
the last changed revision or null if resource is not managed

getLastChangedDate

public java.util.Date getLastChangedDate()
Specified by:
getLastChangedDate in interface ISVNStatus
Returns:
date this resource last changed

getLastCommitAuthor

public java.lang.String getLastCommitAuthor()
Description copied from interface: ISVNStatus
get the last commit author or null if resource is not versionned or if last commit author is unknown

Specified by:
getLastCommitAuthor in interface ISVNStatus
Returns:
the last commit author or null

getTextStatus

public SVNStatusKind getTextStatus()
Specified by:
getTextStatus in interface ISVNStatus
Returns:
the file or directory status

getPropStatus

public SVNStatusKind getPropStatus()
Specified by:
getPropStatus in interface ISVNStatus
Returns:
status of properties (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)

getRepositoryTextStatus

public SVNStatusKind getRepositoryTextStatus()
Specified by:
getRepositoryTextStatus in interface ISVNStatus
Returns:
the file or directory status of base

getRepositoryPropStatus

public SVNStatusKind getRepositoryPropStatus()
Specified by:
getRepositoryPropStatus in interface ISVNStatus
Returns:
the status of the properties base (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)

getRevision

public SVNRevision.Number getRevision()
Specified by:
getRevision in interface ISVNStatus
Returns:
the revision of the resource or null if not managed

isCopied

public boolean isCopied()
Specified by:
isCopied in interface ISVNStatus
Returns:
true when the resource was copied

isWcLocked

public boolean isWcLocked()
Specified by:
isWcLocked in interface ISVNStatus
Returns:
true when the working copy directory is locked.

isSwitched

public boolean isSwitched()
Specified by:
isSwitched in interface ISVNStatus
Returns:
true when the resource was switched relative to its parent.

getNodeKind

public SVNNodeKind getNodeKind()
Specified by:
getNodeKind in interface ISVNStatus
Returns:
The node kind of the managed resource, or SVNNodeKind.UNKNOWN not managed.

getUrlCopiedFrom

public SVNUrl getUrlCopiedFrom()
Specified by:
getUrlCopiedFrom in interface ISVNStatus
Returns:
the url of the copy source if copied, null otherwise

getConflictNew

public java.io.File getConflictNew()
Description copied from interface: ISVNStatus
Returns in case of conflict, the file of the most recent repository version

Specified by:
getConflictNew in interface ISVNStatus
Returns:
the filename of the most recent repository version

getConflictOld

public java.io.File getConflictOld()
Description copied from interface: ISVNStatus
Returns in case of conflict, the file of the common base version

Specified by:
getConflictOld in interface ISVNStatus
Returns:
the filename of the common base version

getConflictWorking

public java.io.File getConflictWorking()
Description copied from interface: ISVNStatus
Returns in case of conflict, the file of the former working copy version

Specified by:
getConflictWorking in interface ISVNStatus
Returns:
the filename of the former working copy version

getLockComment

public java.lang.String getLockComment()
Description copied from interface: ISVNStatus
Returns the lock comment

Specified by:
getLockComment in interface ISVNStatus
Returns:
the lock comment

getLockCreationDate

public java.util.Date getLockCreationDate()
Description copied from interface: ISVNStatus
Returns the lock creation date

Specified by:
getLockCreationDate in interface ISVNStatus
Returns:
the lock creation date

getLockOwner

public java.lang.String getLockOwner()
Description copied from interface: ISVNStatus
Returns the lock owner

Specified by:
getLockOwner in interface ISVNStatus
Returns:
the lock owner

getConflictDescriptor

public SVNConflictDescriptor getConflictDescriptor()
Description copied from interface: ISVNStatus
Returns the conflict descriptor for the tree conflict

Specified by:
getConflictDescriptor in interface ISVNStatus
Returns:
the conflict descriptor for the tree conflict

hasTreeConflict

public boolean hasTreeConflict()
Description copied from interface: ISVNStatus
Returns the tree conflicted state

Specified by:
hasTreeConflict in interface ISVNStatus
Returns:
the tree conflicted state

isFileExternal

public boolean isFileExternal()
Description copied from interface: ISVNStatus
Returns if the item is a file external

Specified by:
isFileExternal in interface ISVNStatus
Returns:
is the item is a file external