Class SVNStatusUnversioned
- java.lang.Object
-
- org.tigris.subversion.svnclientadapter.SVNStatusUnversioned
-
- All Implemented Interfaces:
ISVNStatus
public class SVNStatusUnversioned extends java.lang.Object implements ISVNStatus
A specialISVNStatus
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
Constructors Constructor Description SVNStatusUnversioned(java.io.File file)
Constructor.SVNStatusUnversioned(java.io.File file, boolean isIgnored)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SVNConflictDescriptor
getConflictDescriptor()
Returns the conflict descriptor for the tree conflictjava.io.File
getConflictNew()
Returns in case of conflict, the file of the most recent repository versionjava.io.File
getConflictOld()
Returns in case of conflict, the file of the common base versionjava.io.File
getConflictWorking()
Returns in case of conflict, the file of the former working copy versionjava.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 unknownjava.lang.String
getLockComment()
Returns the lock commentjava.util.Date
getLockCreationDate()
Returns the lock creation datejava.lang.String
getLockOwner()
Returns the lock ownerjava.lang.String
getMovedFromAbspath()
java.lang.String
getMovedToAbspath()
SVNNodeKind
getNodeKind()
java.lang.String
getPath()
SVNStatusKind
getPropStatus()
SVNStatusKind
getRepositoryPropStatus()
SVNStatusKind
getRepositoryTextStatus()
SVNRevision.Number
getRevision()
SVNStatusKind
getTextStatus()
SVNUrl
getUrl()
java.lang.String
getUrlString()
boolean
hasTreeConflict()
Returns the tree conflicted stateboolean
isCopied()
boolean
isFileExternal()
Returns if the item is a file externalboolean
isSwitched()
boolean
isWcLocked()
-
-
-
Constructor Detail
-
SVNStatusUnversioned
public SVNStatusUnversioned(java.io.File file, boolean isIgnored)
Constructor.- Parameters:
file
-isIgnored
- true when creatingSVNStatusKind.IGNORED
, otherwiseSVNStatusKind.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 interfaceISVNStatus
- Returns:
- The path to this item relative to the directory from
which
status
was run.
-
getMovedFromAbspath
public java.lang.String getMovedFromAbspath()
- Specified by:
getMovedFromAbspath
in interfaceISVNStatus
- Returns:
- The absolute path from which this item was moved.
-
getMovedToAbspath
public java.lang.String getMovedToAbspath()
- Specified by:
getMovedToAbspath
in interfaceISVNStatus
- Returns:
- The absolute path to which this item was moved.
-
getFile
public java.io.File getFile()
- Specified by:
getFile
in interfaceISVNStatus
- Returns:
- The absolute path to this item.
-
getUrl
public SVNUrl getUrl()
- Specified by:
getUrl
in interfaceISVNStatus
- Returns:
- the SVNUrl instance of url of the resource on repository
-
getUrlString
public java.lang.String getUrlString()
- Specified by:
getUrlString
in interfaceISVNStatus
- Returns:
- the url (String) of the resource in repository
-
getLastChangedRevision
public SVNRevision.Number getLastChangedRevision()
- Specified by:
getLastChangedRevision
in interfaceISVNStatus
- Returns:
- the last changed revision or null if resource is not managed
-
getLastChangedDate
public java.util.Date getLastChangedDate()
- Specified by:
getLastChangedDate
in interfaceISVNStatus
- 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 interfaceISVNStatus
- Returns:
- the last commit author or null
-
getTextStatus
public SVNStatusKind getTextStatus()
- Specified by:
getTextStatus
in interfaceISVNStatus
- Returns:
- the file or directory status
-
getPropStatus
public SVNStatusKind getPropStatus()
- Specified by:
getPropStatus
in interfaceISVNStatus
- Returns:
- status of properties (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)
-
getRepositoryTextStatus
public SVNStatusKind getRepositoryTextStatus()
- Specified by:
getRepositoryTextStatus
in interfaceISVNStatus
- Returns:
- the file or directory status of base
-
getRepositoryPropStatus
public SVNStatusKind getRepositoryPropStatus()
- Specified by:
getRepositoryPropStatus
in interfaceISVNStatus
- Returns:
- the status of the properties base (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)
-
getRevision
public SVNRevision.Number getRevision()
- Specified by:
getRevision
in interfaceISVNStatus
- Returns:
- the revision of the resource or null if not managed
-
isCopied
public boolean isCopied()
- Specified by:
isCopied
in interfaceISVNStatus
- Returns:
- true when the resource was copied
-
isWcLocked
public boolean isWcLocked()
- Specified by:
isWcLocked
in interfaceISVNStatus
- Returns:
- true when the working copy directory is locked.
-
isSwitched
public boolean isSwitched()
- Specified by:
isSwitched
in interfaceISVNStatus
- Returns:
- true when the resource was switched relative to its parent.
-
getNodeKind
public SVNNodeKind getNodeKind()
- Specified by:
getNodeKind
in interfaceISVNStatus
- Returns:
- The node kind of the managed resource, or
SVNNodeKind.UNKNOWN
not managed.
-
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 interfaceISVNStatus
- 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 interfaceISVNStatus
- 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 interfaceISVNStatus
- 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 interfaceISVNStatus
- Returns:
- the lock comment
-
getLockCreationDate
public java.util.Date getLockCreationDate()
Description copied from interface:ISVNStatus
Returns the lock creation date- Specified by:
getLockCreationDate
in interfaceISVNStatus
- Returns:
- the lock creation date
-
getLockOwner
public java.lang.String getLockOwner()
Description copied from interface:ISVNStatus
Returns the lock owner- Specified by:
getLockOwner
in interfaceISVNStatus
- 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 interfaceISVNStatus
- 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 interfaceISVNStatus
- 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 interfaceISVNStatus
- Returns:
- is the item is a file external
-
-