简体   繁体   English

在Java中取消发布Javadoc中的枚举

[英]unpublishing enum in javadoc in java

I have declared enum in my class like this 我在课堂上这样声明了枚举

/**
 * 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;
    }

I want this should not get published in javadoc. 我希望这不应在javadoc中发布。 I have return @unpublished then also it is showing in java doc. 我已经返回@unpublished,它也显示在java doc中。 Is there any way to unpublished it.?? 有什么办法可以取消发布。?? Even if it is publish ,is there any way it is not shown with hyperlink? 即使它已发布,有什么办法不显示超链接?

The tool javadoc.exe generates javadoc depending on the comment /** 工具javadoc.exe根据注释/**生成javadoc

using /* instead of /** 使用/*代替/**

it will be ok! 一切都会安好的!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM