@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.
|
boolean |
asPlainText
Deprecated.
- Use format=HtmlFormat.PLAINTEXT.
|
boolean |
asXml
Deprecated.
- Use format=HtmlFormat.XML.
|
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
|
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
HtmlSerializer.HTML_uriAnchorText
.public abstract HtmlFormat format
@Deprecated public abstract boolean asPlainText
@Deprecated public abstract boolean asXml
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 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 © 2018 Apache. All rights reserved.