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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the anchor text for this property.protected HtmlFormatReturns 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.getStyle()Returns the CSS style string for this property.protected booleanisHtml()protected booleanprotected booleanbooleanReturns whether this bean property should not include table headers when serialized as an HTML table.protected booleanReturns whether this bean property should not be serialized as an HTML table.protected booleanprotected booleanisXml()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.ap- The annotation provider.mp- HTML metadata provider (for finding information about other artifacts).
-
-
Method Details
-
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.
-
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.
-
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 .
-
getStyle
Returns the CSS style string for this property.This value is specified via the
@Html(style)annotation.- Returns:
- The CSS style string, or
null if not specified.
-
isNoTableHeaders
Returns whether this bean property should not include table headers when serialized as an HTML table.- Returns:
true if the the@Htmlannotation is specified, and@Html(noTableHeaders)istrue .
-
getFormat
Returns the format of this bean property- Returns:
- The value of the
Html.format()annotation.
-
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@Htmlannotation is specified, and@Html(noTables)istrue .
-
isPlainText
- Returns:
true ifgetFormat()returnsHtmlFormat.PLAIN_TEXT.
-
isXml
- Returns:
true ifgetFormat()returnsHtmlFormat.XML.
-