Class SVNStatusUnversioned

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

public class SVNStatusUnversioned extends 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 Details

    • SVNStatusUnversioned

      public SVNStatusUnversioned(File file, boolean isIgnored)
      Constructor.
      Parameters:
      file -
      isIgnored - true when creating SVNStatusKind.IGNORED, otherwise SVNStatusKind.UNVERSIONED
    • SVNStatusUnversioned

      public SVNStatusUnversioned(File file)
      Constructor. Creates an unversioned status (i.e. not ignored)
      Parameters:
      file -
  • Method Details

    • getPath

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

      public String getMovedFromAbspath()
      Specified by:
      getMovedFromAbspath in interface ISVNStatus
      Returns:
      The absolute path from which this item was moved.
    • getMovedToAbspath

      public String getMovedToAbspath()
      Specified by:
      getMovedToAbspath in interface ISVNStatus
      Returns:
      The absolute path to which this item was moved.
    • getFile

      public 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 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 Date getLastChangedDate()
      Specified by:
      getLastChangedDate in interface ISVNStatus
      Returns:
      date this resource last changed
    • getLastCommitAuthor

      public 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.
    • getConflictNew

      public 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 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 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 String getLockComment()
      Description copied from interface: ISVNStatus
      Returns the lock comment
      Specified by:
      getLockComment in interface ISVNStatus
      Returns:
      the lock comment
    • getLockCreationDate

      public 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 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