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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HtmlFormatReturns the@Html(format)annotation defined on the class.HtmlRender<?>Returns the@Html(render)annotation defined on the class.protected booleanisHtml()protected booleanprotected booleanbooleanReturns the@Html(noTableHeaders)annotation defined on the class.protected booleanReturns the@Html(noTables)annotation defined on the class.protected booleanprotected booleanisXml()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
-
getRender
Returns the@Html(render)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.
-
getFormat
Returns the@Html(format)annotation defined on the class.- Returns:
- The value of the annotation.
-
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.
-
isPlainText
- Returns:
true ifgetFormat()returnsHtmlFormat.PLAIN_TEXT.
-
isXml
- Returns:
true ifgetFormat()returnsHtmlFormat.XML.
-