Class 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 Detail

      • 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.
      • getMovedFromAbspath

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

        public java.lang.String getMovedToAbspath()
        Specified by:
        getMovedToAbspath in interface ISVNStatus
        Returns:
        The absolute path to which this item was moved.
      • 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
      • 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
      • getPropStatus

        public SVNStatusKind getPropStatus()
        Specified by:
        getPropStatus in interface ISVNStatus
        Returns:
        status of properties (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)
      • 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)
      • 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.
      • 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
      • 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