public class LagartoNodeHtmlRenderer
extends java.lang.Object
Node.| Modifier and Type | Class and Description |
|---|---|
static class |
LagartoNodeHtmlRenderer.Case
Enumeration of case options for output name.
|
| Modifier and Type | Field and Description |
|---|---|
protected LagartoNodeHtmlRenderer.Case |
attributeCase
Letter case of attributes names.
|
protected boolean |
attributeValuePreserveSingleQuote |
protected LagartoNodeHtmlRenderer.Case |
tagCase
Letter case of tag names.
|
| Constructor and Description |
|---|
LagartoNodeHtmlRenderer() |
| Modifier and Type | Method and Description |
|---|---|
LagartoNodeHtmlRenderer.Case |
getAttributeCase() |
LagartoNodeHtmlRenderer.Case |
getTagCase() |
boolean |
isAttributeValuePreserveSingleQuote() |
protected void |
renderAttribute(Node node,
Attribute attribute,
java.lang.Appendable appendable)
Renders attribute.
|
void |
renderCData(CData cdata,
java.lang.Appendable appendable)
Renders
cdata. |
void |
renderComment(Comment comment,
java.lang.Appendable appendable)
Renders
comments. |
void |
renderDocumentType(DocumentType documentType,
java.lang.Appendable appendable)
Renders
DocumentType. |
void |
renderElement(Element element,
java.lang.Appendable appendable)
Renders single element.
|
protected void |
renderElementBody(Element element,
java.lang.Appendable appendable)
Renders element body.
|
void |
renderNodeValue(Node node,
java.lang.Appendable appendable)
Renders generic node value.
|
void |
renderText(Text text,
java.lang.Appendable appendable)
Renders
text nodes. |
void |
renderXmlDeclaration(XmlDeclaration xmlDeclaration,
java.lang.Appendable appendable)
Renders
XmlDeclaration nodes. |
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(LagartoNodeHtmlRenderer.Case attributeCase)
Sets
case of attribute names. |
void |
setAttributeValuePreserveSingleQuote(boolean attributeValuePreserveSingleQuote)
Defines if attribute values should encode apostrophe or not.
|
void |
setTagCase(LagartoNodeHtmlRenderer.Case tagCase)
Sets
case of tag names. |
protected LagartoNodeHtmlRenderer.Case tagCase
protected LagartoNodeHtmlRenderer.Case attributeCase
protected boolean attributeValuePreserveSingleQuote
public void renderNodeValue(Node node, java.lang.Appendable appendable) throws java.io.IOException
java.io.IOExceptionpublic void renderCData(CData cdata, java.lang.Appendable appendable) throws java.io.IOException
cdata.java.io.IOExceptionpublic void renderComment(Comment comment, java.lang.Appendable appendable) throws java.io.IOException
comments.java.io.IOExceptionpublic void renderDocumentType(DocumentType documentType, java.lang.Appendable appendable) throws java.io.IOException
DocumentType.java.io.IOExceptionpublic void renderText(Text text, java.lang.Appendable appendable) throws java.io.IOException
text nodes.java.io.IOExceptionpublic void renderXmlDeclaration(XmlDeclaration xmlDeclaration, java.lang.Appendable appendable) throws java.io.IOException
XmlDeclaration nodes.java.io.IOExceptionpublic void setTagCase(LagartoNodeHtmlRenderer.Case tagCase)
case of tag names.public LagartoNodeHtmlRenderer.Case getTagCase()
public void setAttributeCase(LagartoNodeHtmlRenderer.Case attributeCase)
case of attribute names.public LagartoNodeHtmlRenderer.Case getAttributeCase()
public boolean isAttributeValuePreserveSingleQuote()
public void setAttributeValuePreserveSingleQuote(boolean attributeValuePreserveSingleQuote)
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.IOExceptionpublic void renderElement(Element element, java.lang.Appendable appendable) throws java.io.IOException
java.io.IOExceptionprotected void renderElementBody(Element element, java.lang.Appendable appendable) throws java.io.IOException
java.io.IOExceptionCopyright © 2003-2013 Jodd Team