Class LagartoHtmlRendererNodeVisitor
java.lang.Object
jodd.lagarto.dom.render.LagartoHtmlRendererNodeVisitor
- All Implemented Interfaces:
NodeVisitor
NodeVisitor that renders DOM tree to string.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of case options for output name. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Appendableprotected LagartoHtmlRendererNodeVisitor.CaseLetter case of attributes names.protected LagartoHtmlRendererNodeVisitor.CaseLetter case of tag names. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidvoidvoidvoiddocumentType(DocumentType documentType) voidprotected voidelementBody(Element element) protected voidrenderAttribute(Node node, Attribute attribute, Appendable appendable) Renders attribute.voidreset()Resets all cases to default.protected StringresolveAttributeName(Node node, Attribute attribute) Renders attribute name.protected StringresolveNodeName(Node node) Renders node name.voidsetAttributeCase(LagartoHtmlRendererNodeVisitor.Case attributeCase) Setscaseof attribute names.voidSetscaseof tag names.voidvoidxmlDeclaration(XmlDeclaration xmlDeclaration)
-
Field Details
-
appendable
-
tagCase
Letter case of tag names. -
attributeCase
Letter case of attributes names.
-
-
Constructor Details
-
LagartoHtmlRendererNodeVisitor
-
-
Method Details
-
cdata
- Specified by:
cdatain interfaceNodeVisitor
-
comment
- Specified by:
commentin interfaceNodeVisitor
-
document
- Specified by:
documentin interfaceNodeVisitor
-
documentType
- Specified by:
documentTypein interfaceNodeVisitor
-
text
- Specified by:
textin interfaceNodeVisitor
-
xmlDeclaration
- Specified by:
xmlDeclarationin interfaceNodeVisitor
-
setTagCase
Setscaseof tag names. -
getTagCase
-
setAttributeCase
Setscaseof attribute names. -
getAttributeCase
-
reset
public void reset()Resets all cases to default. -
resolveNodeName
-
resolveAttributeName
-
renderAttribute
protected void renderAttribute(Node node, Attribute attribute, Appendable appendable) throws IOException Renders attribute.- Throws:
IOException
-
element
- Specified by:
elementin interfaceNodeVisitor
-
_element
- Throws:
IOException
-
elementBody
- Throws:
IOException
-