簡體   English   中英

在Java中取消發布Javadoc中的枚舉

[英]unpublishing enum in javadoc in java

我在課堂上這樣聲明了枚舉

/**
 * Preference type to check the doc
 * 
 * @unpublished
 */
public enum TCPreferenceType
{
    /** String preference. */
    STRING_TYPE,

    /** Logical preference. */
    LOGICAL_TYPE,

    /** Integer preference. */
    INTEGER_TYPE,

    /** Double preference. */
    DOUBLE_TYPE,

    /** Date preference. */
    DATE_TYPE,

    /**
     * Defines an invalid preference type.
     */
    INVALID_TYPE;

    /**
     * @param preferenceType preference type
     * @return type
     * @unpublished
     */
    public static TCPreferenceType convertType( int preferenceType )
    {
        if( preferenceType == 0 )
        {
            return STRING_TYPE;
        }
        if( preferenceType == 1 )
        {
            return LOGICAL_TYPE;
        }
        if( preferenceType == 2 )
        {
            return INTEGER_TYPE;
        }
        if( preferenceType == 3 )
        {
            return DOUBLE_TYPE;
        }
        if( preferenceType == 4 )
        {
            return DATE_TYPE;
        }

        Assert.isLegal( false, "Invalid preference type encounter - " + preferenceType );
        return INVALID_TYPE;
    }

我希望這不應在javadoc中發布。 我已經返回@unpublished,它也顯示在java doc中。 有什么辦法可以取消發布。?? 即使它已發布,有什么辦法不顯示超鏈接?

工具javadoc.exe根據注釋/**生成javadoc

使用/*代替/**

一切都會安好的!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM