public class LagartoHtmlRendererNodeVisitor extends java.lang.Object implements NodeVisitor
NodeVisitor
that renders DOM tree to string.Modifier and Type | Class and Description |
---|---|
static class |
LagartoHtmlRendererNodeVisitor.Case
Enumeration of case options for output name.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.Appendable |
appendable |
protected LagartoHtmlRendererNodeVisitor.Case |
attributeCase
Letter case of attributes names.
|
protected LagartoHtmlRendererNodeVisitor.Case |
tagCase
Letter case of tag names.
|
Constructor and Description |
---|
LagartoHtmlRendererNodeVisitor(java.lang.Appendable appendable) |
Modifier and Type | Method and Description |
---|---|
protected void |
_element(Element element) |
void |
cdata(CData cdata) |
void |
comment(Comment comment) |
void |
document(Document document) |
void |
documentType(DocumentType documentType) |
void |
element(Element element) |
protected void |
elementBody(Element element) |
LagartoHtmlRendererNodeVisitor.Case |
getAttributeCase() |
LagartoHtmlRendererNodeVisitor.Case |
getTagCase() |
protected void |
renderAttribute(Node node,
Attribute attribute,
java.lang.Appendable appendable)
Renders attribute.
|
void |
reset()
Resets all cases to default.
|
protected java.lang.String |
resolveAttributeName(Node node,
Attribute attribute)
Renders attribute name.
|
protected java.lang.String |
resolveNodeName(Node node)
Renders node name.
|
void |
setAttributeCase(LagartoHtmlRendererNodeVisitor.Case attributeCase)
Sets
case of attribute names. |
void |
setTagCase(LagartoHtmlRendererNodeVisitor.Case tagCase)
Sets
case of tag names. |
void |
text(Text text) |
void |
xmlDeclaration(XmlDeclaration xmlDeclaration) |
protected final java.lang.Appendable appendable
protected LagartoHtmlRendererNodeVisitor.Case tagCase
protected LagartoHtmlRendererNodeVisitor.Case attributeCase
public LagartoHtmlRendererNodeVisitor(java.lang.Appendable appendable)
public void cdata(CData cdata)
cdata
in interface NodeVisitor
public void comment(Comment comment)
comment
in interface NodeVisitor
public void document(Document document)
document
in interface NodeVisitor
public void documentType(DocumentType documentType)
documentType
in interface NodeVisitor
public void text(Text text)
text
in interface NodeVisitor
public void xmlDeclaration(XmlDeclaration xmlDeclaration)
xmlDeclaration
in interface NodeVisitor
public void setTagCase(LagartoHtmlRendererNodeVisitor.Case tagCase)
case
of tag names.public LagartoHtmlRendererNodeVisitor.Case getTagCase()
public void setAttributeCase(LagartoHtmlRendererNodeVisitor.Case attributeCase)
case
of attribute names.public LagartoHtmlRendererNodeVisitor.Case getAttributeCase()
public void reset()
protected java.lang.String resolveNodeName(Node node)
protected java.lang.String resolveAttributeName(Node node, Attribute attribute)
protected void renderAttribute(Node node, Attribute attribute, java.lang.Appendable appendable) throws java.io.IOException
java.io.IOException
public void element(Element element)
element
in interface NodeVisitor
protected void _element(Element element) throws java.io.IOException
java.io.IOException
protected void elementBody(Element element) throws java.io.IOException
java.io.IOException
Copyright © 2003-present Jodd Team