@Documented @Target(value={TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) @Inherited public @interface Html
HtmlSerializer
.
Modifier and Type | Optional Element and Description |
---|---|
String |
anchorText
Use the specified anchor text when serializing a URI.
|
HtmlFormat |
format
Specifies what format to use for the HTML element.
|
String |
link
Adds a hyperlink to a bean property when rendered as HTML.
|
boolean |
noTableHeaders
When
|
boolean |
noTables
When
|
String |
on
Dynamically apply this annotation to the specified classes/methods/fields.
|
Class<? extends HtmlRender> |
render
Associates an
HtmlRender with a bean property for custom HTML rendering of the property. |
public abstract String anchorText
The text can contain any bean property values resolved through variables of the form
This overrides the behavior specified by HtmlSerializer.HTML_uriAnchorText
.
public abstract HtmlFormat format
public abstract String link
The text can contain any bean property values resolved through variables of the form
The URLs can be any of the following forms:
public abstract boolean noTableHeaders
public abstract boolean noTables
Default is
public abstract String on
Used in conjunction with the HtmlConfig.applyHtml()
.
It is ignored when the annotation is applied directly to classes/methods/fields.
public abstract Class<? extends HtmlRender> render
HtmlRender
with a bean property for custom HTML rendering of the property.
This annotation applies to bean properties and classes.
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.