Package org.apache.juneau.html
Class HtmlBeanPropertyMeta
java.lang.Object
org.apache.juneau.ExtendedMeta
org.apache.juneau.ExtendedBeanPropertyMeta
org.apache.juneau.html.HtmlBeanPropertyMeta
Metadata on bean properties specific to the HTML serializers and parsers pulled from the
@Html
annotation on the bean property.
See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the anchor text for this property.protected HtmlFormat
Returns the format of this bean propertygetLink()
Adds a hyperlink to this value in HTML.Returns the render class for rendering the style and contents of this property value in HTML.protected boolean
isHtml()
protected boolean
protected boolean
boolean
Returns whether this bean property should not include table headers when serialized as an HTML table.protected boolean
Returns whether this bean property should not be serialized as an HTML table.protected boolean
protected boolean
isXml()
Methods inherited from class org.apache.juneau.ExtendedBeanPropertyMeta
getBeanPropertyMeta
-
Field Details
-
DEFAULT
Default instance.
-
-
Constructor Details
-
HtmlBeanPropertyMeta
Constructor.- Parameters:
bpm
- The metadata of the bean property of this additional metadata.mp
- HTML metadata provider (for finding information about other artifacts).
-
-
Method Details
-
getFormat
Returns the format of this bean property- Returns:
- The value of the
Html.format()
annotation.
-
isXml
- Returns:
true ifgetFormat()
returnsHtmlFormat.XML
.
-
isPlainText
- Returns:
true ifgetFormat()
returnsHtmlFormat.PLAIN_TEXT
.
-
isHtml
- Returns:
true ifgetFormat()
returnsHtmlFormat.HTML
.
-
isHtmlCdc
- Returns:
true ifgetFormat()
returnsHtmlFormat.HTML_CDC
.
-
isHtmlSdc
- Returns:
true ifgetFormat()
returnsHtmlFormat.HTML_SDC
.
-
isNoTables
Returns whether this bean property should not be serialized as an HTML table.- Returns:
true if the the@Html
annotation is specified, and@Html(noTables)
istrue .
-
isNoTableHeaders
Returns whether this bean property should not include table headers when serialized as an HTML table.- Returns:
true if the the@Html
annotation is specified, and@Html(noTableHeaders)
istrue .
-
getRender
Returns the render class for rendering the style and contents of this property value in HTML.This value is specified via the
@Html(render)
annotation.- Returns:
- The render class, never
null .
-
getLink
Adds a hyperlink to this value in HTML.This value is specified via the
@Html(link)
annotation.- Returns:
- The link string, or
null if not specified.
-
getAnchorText
Specifies the anchor text for this property.This value is specified via the
@Html(anchorText)
annotation.- Returns:
- The link string, or
null if not specified.
-