⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 status.java

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     */    public boolean isLocked()    {        return locked;    }    /**     * Returns if the item has been copied     * @return true if copied     */    public boolean isCopied()    {        return copied;    }    /**     * Returns in case of conflict, the filename of the most recent repository     * version     * @return the filename of the most recent repository version     */    public String getConflictNew()    {        return conflictNew;    }    /**     * Returns in case of conflict, the filename of the common base version     * @return the filename of the common base version     */    public String getConflictOld()    {        return conflictOld;    }    /**     * Returns in case of conflict, the filename of the former working copy     * version     * @return the filename of the former working copy version     */    public String getConflictWorking()    {        return conflictWorking;    }    /**     * Returns the URI to where the item might exist in the     * repository.  We say "might" because the item might exist in     * your working copy, but have been deleted from the repository.     * Or it might exist in the repository, but your working copy     * might not yet contain it (because the WC is not up to date).     * @return URI in repository, or <code>null</code> if the item     * exists in neither the repository nor the WC.     */    public String getUrl()    {        return url;    }    /**     * Returns the last revision the file was changed as a Revision object     * @return last changed revision     */    public Revision.Number getLastChangedRevision()    {        return Revision.createNumber(lastChangedRevision);    }    /**     * Returns the last revision the file was changed as a long integer     * @return last changed revision     */    public long getLastChangedRevisionNumber()    {        return lastChangedRevision;    }    /**     * Returns the kind of the node (file, directory or unknown, see NodeKind)     * @return the node kind     */    public int getNodeKind()    {        return nodeKind;    }    /**     * Returns if copied the copy source url or null     * @return the source url     */    public String getUrlCopiedFrom()    {        return urlCopiedFrom;    }    /**     * Returns if copied the source revision as a Revision object     * @return the source revision     */    public Revision.Number getRevisionCopiedFrom()    {        return Revision.createNumber(revisionCopiedFrom);    }    /**     * Returns if copied the source revision as s long integer     * @return the source revision     */    public long getRevisionCopiedFromNumber()    {        return revisionCopiedFrom;    }    /**     * Returns if the repository url has been switched     * @return is the item has been switched     */    public boolean isSwitched()    {        return switched;    }    /**     * Returns if is managed by svn (added, normal, modified ...)     * @return if managed by svn     */    public boolean isManaged()    {        int status = getTextStatus();        return (status != Status.Kind.unversioned &&                status != Status.Kind.none &&                status != Status.Kind.ignored);    }    /**     * Returns if the resource has a remote counter-part     * @return has version in repository     */    public boolean hasRemote()    {        return (isManaged() && getTextStatus() != Status.Kind.added);    }    /**     * Returns if the resource just has been added     * @return if added     */    public boolean isAdded()    {        return getTextStatus() == Status.Kind.added;    }    /**     * Returns if the resource is schedules for delete     * @return if deleted     */    public boolean isDeleted()    {        return getTextStatus() == Status.Kind.deleted;    }    /**     * Returns if the resource has been merged     * @return if merged     */    public boolean isMerged()    {        return getTextStatus() == Status.Kind.merged;    }    /**     * Returns if the resource is ignored by svn (only returned if noIgnore     * is set on SVNClient.list)     * @return if ignore     */    public boolean isIgnored()    {        return getTextStatus() == Status.Kind.ignored;    }    /**     * Returns if the resource itself is modified     * @return if modified     */    public boolean isModified()    {        return getTextStatus() == Status.Kind.modified;    }    /**     * Returns the lock token     * @return the lock token     * @since 1.2     */    public String getLockToken()    {        return lockToken;    }    /**     * Returns the lock  owner     * @return the lock owner     * @since 1.2     */    public String getLockOwner()    {        return lockOwner;    }    /**     * Returns the lock comment     * @return the lock comment     * @since 1.2     */    public String getLockComment()    {        return lockComment;    }    /**     * Returns the lock creation date     * @return the lock creation date     * @since 1.2     */    public Date getLockCreationDate()    {        return microsecondsToDate(lockCreationDate);    }    /**     * Returns the lock as in the repository     * @return the lock as in the repository     * @since 1.2     */    public Lock getReposLock()    {        return reposLock;    }    /**     * @return The last committed revision, or {@link     * Revision#SVN_INVALID_REVNUM} if up to date.     * @since 1.3     */    public Revision.Number getReposLastCmtRevision()    {        return Revision.createNumber(reposLastCmtRevision);    }    /**     * @return The last committed revision as a long integer, or     * <code>-1</code> if up to date.     * @since 1.3     */    public long getReposLastCmtRevisionNumber()    {        return reposLastCmtRevision;    }    /**     * @return The last committed date, or <code>null</code> if up to     * date.     * @since 1.3     */    public Date getReposLastCmtDate()    {        return microsecondsToDate(reposLastCmtDate);    }    /**     * @return The node kind (e.g. file, directory, etc.), or     * <code>null</code> if up to date.     * @since 1.3     */    public int getReposKind()    {        return reposKind;    }    /**     * @return The author of the last commit, or <code>null</code> if     * up to date.     * @since 1.3     */    public String getReposLastCmtAuthor()    {        return reposLastCmtAuthor;    }    /**     * class for kind status of the item or its properties     * the constants are defined in the interface StatusKind for building     * reasons     */    public static final class Kind implements StatusKind    {        /**         * Returns the textual representation of the status         * @param kind of status         * @return english status         */        public static final String getDescription(int kind)        {            switch (kind)            {            case StatusKind.none:                return "non-svn";            case StatusKind.normal:                return "normal";            case StatusKind.added:                return "added";            case StatusKind.missing:                return "missing";            case StatusKind.deleted:                return "deleted";            case StatusKind.replaced:                return "replaced";            case StatusKind.modified:                return "modified";            case StatusKind.merged:                return "merged";            case StatusKind.conflicted:                return "conflicted";            case StatusKind.ignored:                return "ignored";            case StatusKind.incomplete:                return "incomplete";            case StatusKind.external:                return "external";            case StatusKind.unversioned:            default:                return "unversioned";            }        }    }    /**     * Converts microseconds since the epoch to a Date object.     *     * @param micros Microseconds since the epoch.     * @return A Date object, or <code>null</code> if     * <code>micros</code> was zero.     */    private static Date microsecondsToDate(long micros)    {        return (micros == 0 ? null : new Date(micros / 1000));    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -