|
|||||||||
| Home >> All >> org >> enhydra >> xml >> xmlc >> dom >> [ lazydom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.enhydra.xml.xmlc.dom.lazydom
Class PreFormatter

java.lang.Objectorg.enhydra.xml.xmlc.dom.lazydom.PreFormatter
- class PreFormatter
- extends java.lang.Object
Create pre-formatted text for inclusion in template DOM. Save's overhead of formatting the text. This adds character entity references for CharacterData nodes and formats the entire opening tag, with attributes, for elements. The default encoding is used to determine if this is an 7, 8, or 16 bit encoding, and substituting character references as needed.
| Field Summary | |
private org.enhydra.xml.io.Formatter |
fFormatter
Formatter for this document. |
private boolean |
fIsHtmlDocument
Is this an HTML document? |
private org.enhydra.xml.io.OutputOptions |
fOptions
Output options being used |
| Constructor Summary | |
PreFormatter(org.enhydra.xml.xmlc.dom.XMLCDocument xmlcDoc)
Constructor. |
|
| Method Summary | |
void |
createOutputOptionsCodeGenerator(java.lang.String varName,
org.enhydra.xml.xmlc.codegen.JavaCode code)
Generate code to recreate the output options used to format this code. |
java.lang.String |
getMIMEEncoding()
Get the encoding being used for the preformatted text. |
private boolean |
isHtmlFormatProtected(org.w3c.dom.Node node)
Check to see if this node is a descendent of a HTML script or style element. |
java.lang.String |
preFormatNode(org.w3c.dom.Node node)
Get pre-formatted text for a node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
fFormatter
private org.enhydra.xml.io.Formatter fFormatter
- Formatter for this document.
fIsHtmlDocument
private boolean fIsHtmlDocument
- Is this an HTML document?
fOptions
private org.enhydra.xml.io.OutputOptions fOptions
- Output options being used
| Constructor Detail |
PreFormatter
public PreFormatter(org.enhydra.xml.xmlc.dom.XMLCDocument xmlcDoc)
- Constructor.
| Method Detail |
isHtmlFormatProtected
private boolean isHtmlFormatProtected(org.w3c.dom.Node node)
- Check to see if this node is a descendent of a HTML script
or style element. If so, no pre-formatting is done, as the
text is written as-is.
preFormatNode
public java.lang.String preFormatNode(org.w3c.dom.Node node)
- Get pre-formatted text for a node.
getMIMEEncoding
public java.lang.String getMIMEEncoding()
- Get the encoding being used for the preformatted text.
createOutputOptionsCodeGenerator
public void createOutputOptionsCodeGenerator(java.lang.String varName, org.enhydra.xml.xmlc.codegen.JavaCode code)
- Generate code to recreate the output options used to format this code.
|
|||||||||
| Home >> All >> org >> enhydra >> xml >> xmlc >> dom >> [ lazydom overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.enhydra.xml.xmlc.dom.lazydom.PreFormatter