Class SVNStatusUnversioned
- java.lang.Object
-
- org.tigris.subversion.svnclientadapter.SVNStatusUnversioned
-
- All Implemented Interfaces:
ISVNStatus
public class SVNStatusUnversioned extends java.lang.Object implements ISVNStatus
A specialISVNStatusimplementation 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 SVNConflictDescriptorgetConflictDescriptor()Returns the conflict descriptor for the tree conflictjava.io.FilegetConflictNew()Returns in case of conflict, the file of the most recent repository versionjava.io.FilegetConflictOld()Returns in case of conflict, the file of the common base versionjava.io.FilegetConflictWorking()Returns in case of conflict, the file of the former working copy versionjava.io.FilegetFile()java.util.DategetLastChangedDate()SVNRevision.NumbergetLastChangedRevision()java.lang.StringgetLastCommitAuthor()get the last commit author or null if resource is not versionned or if last commit author is unknownjava.lang.StringgetLockComment()Returns the lock commentjava.util.DategetLockCreationDate()Returns the lock creation datejava.lang.StringgetLockOwner()Returns the lock ownerjava.lang.StringgetMovedFromAbspath()java.lang.StringgetMovedToAbspath()SVNNodeKindgetNodeKind()java.lang.StringgetPath()SVNStatusKindgetPropStatus()SVNStatusKindgetRepositoryPropStatus()SVNStatusKindgetRepositoryTextStatus()SVNRevision.NumbergetRevision()SVNStatusKindgetTextStatus()SVNUrlgetUrl()java.lang.StringgetUrlString()booleanhasTreeConflict()Returns the tree conflicted statebooleanisCopied()booleanisFileExternal()Returns if the item is a file externalbooleanisSwitched()booleanisWcLocked()
-
-
-
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:
getPathin interfaceISVNStatus- Returns:
- The path to this item relative to the directory from
which
statuswas run.
-
getMovedFromAbspath
public java.lang.String getMovedFromAbspath()
- Specified by:
getMovedFromAbspathin interfaceISVNStatus- Returns:
- The absolute path from which this item was moved.
-
getMovedToAbspath
public java.lang.String getMovedToAbspath()
- Specified by:
getMovedToAbspathin interfaceISVNStatus- Returns:
- The absolute path to which this item was moved.
-
getFile
public java.io.File getFile()
- Specified by:
getFilein interfaceISVNStatus- Returns:
- The absolute path to this item.
-
getUrl
public SVNUrl getUrl()
- Specified by:
getUrlin interfaceISVNStatus- Returns:
- the SVNUrl instance of url of the resource on repository
-
getUrlString
public java.lang.String getUrlString()
- Specified by:
getUrlStringin interfaceISVNStatus- Returns:
- the url (String) of the resource in repository
-
getLastChangedRevision
public SVNRevision.Number getLastChangedRevision()
- Specified by:
getLastChangedRevisionin interfaceISVNStatus- Returns:
- the last changed revision or null if resource is not managed
-
getLastChangedDate
public java.util.Date getLastChangedDate()
- Specified by:
getLastChangedDatein interfaceISVNStatus- Returns:
- date this resource last changed
-
getLastCommitAuthor
public java.lang.String getLastCommitAuthor()
Description copied from interface:ISVNStatusget the last commit author or null if resource is not versionned or if last commit author is unknown- Specified by:
getLastCommitAuthorin interfaceISVNStatus- Returns:
- the last commit author or null
-
getTextStatus
public SVNStatusKind getTextStatus()
- Specified by:
getTextStatusin interfaceISVNStatus- Returns:
- the file or directory status
-
getPropStatus
public SVNStatusKind getPropStatus()
- Specified by:
getPropStatusin interfaceISVNStatus- Returns:
- status of properties (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)
-
getRepositoryTextStatus
public SVNStatusKind getRepositoryTextStatus()
- Specified by:
getRepositoryTextStatusin interfaceISVNStatus- Returns:
- the file or directory status of base
-
getRepositoryPropStatus
public SVNStatusKind getRepositoryPropStatus()
- Specified by:
getRepositoryPropStatusin interfaceISVNStatus- Returns:
- the status of the properties base (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)
-
getRevision
public SVNRevision.Number getRevision()
- Specified by:
getRevisionin interfaceISVNStatus- Returns:
- the revision of the resource or null if not managed
-
isCopied
public boolean isCopied()
- Specified by:
isCopiedin interfaceISVNStatus- Returns:
- true when the resource was copied
-
isWcLocked
public boolean isWcLocked()
- Specified by:
isWcLockedin interfaceISVNStatus- Returns:
- true when the working copy directory is locked.
-
isSwitched
public boolean isSwitched()
- Specified by:
isSwitchedin interfaceISVNStatus- Returns:
- true when the resource was switched relative to its parent.
-
getNodeKind
public SVNNodeKind getNodeKind()
- Specified by:
getNodeKindin interfaceISVNStatus- Returns:
- The node kind of the managed resource, or
SVNNodeKind.UNKNOWNnot managed.
-
getConflictNew
public java.io.File getConflictNew()
Description copied from interface:ISVNStatusReturns in case of conflict, the file of the most recent repository version- Specified by:
getConflictNewin interfaceISVNStatus- Returns:
- the filename of the most recent repository version
-
getConflictOld
public java.io.File getConflictOld()
Description copied from interface:ISVNStatusReturns in case of conflict, the file of the common base version- Specified by:
getConflictOldin interfaceISVNStatus- Returns:
- the filename of the common base version
-
getConflictWorking
public java.io.File getConflictWorking()
Description copied from interface:ISVNStatusReturns in case of conflict, the file of the former working copy version- Specified by:
getConflictWorkingin interfaceISVNStatus- Returns:
- the filename of the former working copy version
-
getLockComment
public java.lang.String getLockComment()
Description copied from interface:ISVNStatusReturns the lock comment- Specified by:
getLockCommentin interfaceISVNStatus- Returns:
- the lock comment
-
getLockCreationDate
public java.util.Date getLockCreationDate()
Description copied from interface:ISVNStatusReturns the lock creation date- Specified by:
getLockCreationDatein interfaceISVNStatus- Returns:
- the lock creation date
-
getLockOwner
public java.lang.String getLockOwner()
Description copied from interface:ISVNStatusReturns the lock owner- Specified by:
getLockOwnerin interfaceISVNStatus- Returns:
- the lock owner
-
getConflictDescriptor
public SVNConflictDescriptor getConflictDescriptor()
Description copied from interface:ISVNStatusReturns the conflict descriptor for the tree conflict- Specified by:
getConflictDescriptorin interfaceISVNStatus- Returns:
- the conflict descriptor for the tree conflict
-
hasTreeConflict
public boolean hasTreeConflict()
Description copied from interface:ISVNStatusReturns the tree conflicted state- Specified by:
hasTreeConflictin interfaceISVNStatus- Returns:
- the tree conflicted state
-
isFileExternal
public boolean isFileExternal()
Description copied from interface:ISVNStatusReturns if the item is a file external- Specified by:
isFileExternalin interfaceISVNStatus- Returns:
- is the item is a file external
-
-