@Documented @Target(value=TYPE) @Retention(value=RUNTIME) @Inherited public @interface HtmlLink
HtmlSerializer
class to define hyperlinks.
This annotation is applied to classes.
Annotation that can be used to specify that a class has a URL associated with it.
When rendered using the HtmlSerializer
class, this class will get
rendered as a hyperlink like so...
Modifier and Type | Optional Element and Description |
---|---|
String |
nameProperty
The bean property whose value becomes the name in the hyperlink.
|
String |
on
Dynamically apply this annotation to the specified classes.
|
String |
uriProperty
The bean property whose value becomes the url in the hyperlink.
|
public abstract String nameProperty
public abstract String on
Used in conjunction with the HtmlConfig.applyHtmlLink()
.
It is ignored when the annotation is applied directly to classes.
public abstract String uriProperty
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.