Enlace a una URL externa en Javadoc?
Algo como:
/**
* See {@linktourl http://google.com}
*/
5 answers
Esto crea un encabezado "Ver también" que contiene el enlace, es decir:
/**
* @see <a href="http://google.com">http://google.com</a>
*/
Rendirá como:
Véase También:
http://google.com
considerando lo siguiente:
/**
* See <a href="http://google.com">http://google.com</a>
*/
Creará un enlace en línea:
Véase http://google.com
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-14 09:50:49
Tomado del javadoc spec
@see <a href="URL#value">label</a>
:
Añade un enlace como se define en URL#value
. URL#value
es una URL relativa o absoluta. La herramienta Javadoc distingue esto de otros casos buscando un símbolo menor que (<
) como primer carácter.
Por ejemplo : @see <a href="http://www.google.com">Google</a>
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-09-11 18:12:31
Los Javadocs no ofrecen herramientas especiales para enlaces externos, por lo que solo debes usar html estándar:
See <a href="http://groversmill.com/">Grover's Mill</a> for a history of the
Martian invasion.
O
@see <a href="http://groversmill.com/">Grover's Mill</a> for a history of
the Martian invasion.
No use {@link ...}
o {@linkplain ...}
porque estos son para enlaces a los javadocs de otras clases y métodos.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-08-12 20:01:26
Simplemente use un enlace HTML con un elemento a como
<a href="URL#value">label</a>
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-21 12:20:52
Es difícil encontrar una respuesta clara desde el sitio de Oracle. Lo siguiente es de javax.ws.rs.core.HttpHeaders.java
:
/**
* See {@link <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1">HTTP/1.1 documentation</a>}.
*/
public static final String ACCEPT = "Accept";
/**
* See {@link <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.2">HTTP/1.1 documentation</a>}.
*/
public static final String ACCEPT_CHARSET = "Accept-Charset";
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-09-14 12:59:06