public class LinkArgument
extends Object
Represents a link pair (href, packages) with optional JPMS module.
The packages are comma separated. When a module is specified, the
module name is inserted between the base href and the package path,
matching the JPMS-era Javadoc layout (e.g. .../api/java.base/java/lang/Object.html).
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
getHref()Get the href attribute, with the module name appended when set. |
|
public String |
getModule()Get the module attribute. |
|
public String |
getPackages()Get the packages attribute. |
|
public void |
setHref(String hr)Set the href attribute. |
|
public void |
setModule(String module)Set the module attribute. |
|
public void |
setPackages(String packages)Set the packages attribute. |
Get the href attribute, with the module name appended when set.
For pre-JPMS external docs, returns the raw href; for JPMS-aware
external docs (e.g. JDK 9+), returns href + module + "/".
Get the module attribute.
Get the packages attribute.
Set the href attribute.
hr - a String value representing the URL to use for this link Set the module attribute. When set, the module name is inserted
between the base href and the package path, yielding JPMS-era
Javadoc URLs such as .../api/java.base/java/lang/Object.html.
module - the JPMS module name (e.g. java.base)Set the packages attribute.
packages - the comma separated package prefixes corresponding to this link