public class HtmlSerializerInnerOuterText extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder
Helper to compose the text for the serializer based on several modes.
|
Constructor and Description |
---|
HtmlSerializerInnerOuterText(BrowserVersion browserVersion)
Ctor.
|
public HtmlSerializerInnerOuterText(BrowserVersion browserVersion)
browserVersion
- the BrowserVersion
public String asText(DomNode node)
node
- a nodeprotected void appendChildren(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder, DomNode node, HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode, boolean insideHead)
builder
- the StringBuilder to add tonode
- the node to processmode
- the HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode
to use for processinginsideHead
- true if inside head sectionprotected void appendNode(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder, DomNode node, HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode, boolean insideHead)
builder
- the StringBuilder to add tonode
- the node to processmode
- the HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode
to use for processinginsideHead
- true if inside head sectionprotected void appendText(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder, DomText domText, HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode)
DomText
.builder
- the StringBuilder to add todomText
- the target to processmode
- the HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode
to use for processingprotected void appendBreak(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder, HtmlBreak htmlBreak)
HtmlBreak
.builder
- the StringBuilder to add tohtmlBreak
- the target to processprotected void appendParagraph(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder, HtmlParagraph htmlParagraph, HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode, boolean insideHead)
HtmlListItem
.builder
- the StringBuilder to add tohtmlParagraph
- the target to processmode
- the HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode
to use for processinginsideHead
- true if inside head sectionprotected void appendListItem(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder, HtmlListItem htmlListItem, HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode, boolean insideHead)
HtmlListItem
.builder
- the StringBuilder to add tohtmlListItem
- the target to processmode
- the HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode
to use for processinginsideHead
- true if inside head sectionprotected void appendDetails(HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder builder, HtmlDetails htmlDetails, HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode mode, boolean insideHead)
HtmlDetails
.builder
- the StringBuilder to add tohtmlDetails
- the target to processmode
- the HtmlSerializerInnerOuterText.HtmlSerializerTextBuilder.Mode
to use for processinginsideHead
- true if inside head sectionCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.