Package org.apache.juneau.html
Class HtmlClassMeta
java.lang.Object
org.apache.juneau.ExtendedMeta
org.apache.juneau.ExtendedClassMeta
org.apache.juneau.html.HtmlClassMeta
Metadata on classes specific to the HTML serializers and parsers pulled from the
@Html
annotation on
the class.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected HtmlFormat
Returns the@Html(format)
annotation defined on the class.HtmlRender<?>
Returns the@Html(render)
annotation defined on the class.protected boolean
isHtml()
protected boolean
protected boolean
boolean
Returns the@Html(noTableHeaders)
annotation defined on the class.protected boolean
Returns the@Html(noTables)
annotation defined on the class.protected boolean
protected boolean
isXml()
Methods inherited from class org.apache.juneau.ExtendedClassMeta
getClassMeta, getInnerClass
-
Constructor Details
-
HtmlClassMeta
Constructor.- Parameters:
cm
- The class that this annotation is defined on.mp
- HTML metadata provider (for finding information about other artifacts).
-
-
Method Details
-
getFormat
Returns the@Html(format)
annotation defined on the class.- Returns:
- The value of the 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 the@Html(noTables)
annotation defined on the class.- Returns:
- The value of the annotation.
-
isNoTableHeaders
Returns the@Html(noTableHeaders)
annotation defined on the class.- Returns:
- The value of the annotation.
-
getRender
Returns the@Html(render)
annotation defined on the class.- Returns:
- The value of the annotation.
-