@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
Treat as plain text.
|
boolean |
asXml
Treat as XML.
|
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
public abstract boolean asPlainText
Object is serialized to a String using the toString()
method and written directly to output.
Useful when you want to serialize custom HTML.
public abstract boolean asXml
Useful when creating beans that model HTML elements.
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.