public interface HtmlDocTemplate
HtmlDocSerializer
serializer.
The HTML doc serializer produces the following document structure with the typical contents:
This interface allows you to control how these sections get rendered.
Modifier and Type | Method and Description |
---|---|
void |
article(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void |
aside(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void |
body(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void |
footer(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
boolean |
hasAside(HtmlDocSerializerSession session)
Returns
element. |
boolean |
hasFooter(HtmlDocSerializerSession session)
Returns
element. |
boolean |
hasHeader(HtmlDocSerializerSession session)
Returns
element. |
boolean |
hasNav(HtmlDocSerializerSession session)
Returns
element. |
boolean |
hasScript(HtmlDocSerializerSession session)
Returns
element. |
boolean |
hasStyle(HtmlDocSerializerSession session)
Returns
element. |
void |
head(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void |
header(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void |
nav(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void |
script(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void |
style(HtmlDocSerializerSession session,
HtmlWriter w,
Object o)
Renders the contents of the
element. |
void head(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<head>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void style(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<head> /<style>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void script(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<head> /<script>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void body(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<body>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void header(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<body> /<header>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void nav(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<body> /<nav>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void article(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<body> /<article>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void aside(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<body> /<aside>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.void footer(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception
<body> /<footer>
element.session
- The current serializer session.w
- The writer being written to.o
- The object being serialized.Exception
- Any exception can be thrown.boolean hasStyle(HtmlDocSerializerSession session)
<head> /<style>
element.session
- The current serializer session.boolean hasScript(HtmlDocSerializerSession session)
<head> /<script>
element.session
- The current serializer session.boolean hasHeader(HtmlDocSerializerSession session)
<body> /<header>
element.session
- The current serializer session.boolean hasNav(HtmlDocSerializerSession session)
<body> /<nav>
element.session
- The current serializer session.boolean hasAside(HtmlDocSerializerSession session)
<body> /<aside>
element.session
- The current serializer session.boolean hasFooter(HtmlDocSerializerSession session)
<body> /<footer>
element.session
- The current serializer session.Copyright © 2018 Apache. All rights reserved.