public class DXMLPrinter
extends java.lang.Object
XMLStreamWriter.| Modifier and Type | Class and Description |
|---|---|
protected class |
DXMLPrinter.DXMLPrinterVisitor |
protected class |
DXMLPrinter.NameClassXMLPrinterVisitor |
protected class |
DXMLPrinter.XMLWriter |
protected class |
DXMLPrinter.XMLWriterException |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
afterEnd |
protected DOMPrinter |
domPrinter |
protected int |
indent |
protected java.lang.String |
indentStep |
protected DXMLPrinter.NameClassXMLPrinterVisitor |
ncVisitor |
protected java.lang.String |
newLine |
protected javax.xml.stream.XMLStreamWriter |
out |
protected DXMLPrinter.DXMLPrinterVisitor |
visitor |
| Constructor and Description |
|---|
DXMLPrinter(javax.xml.stream.XMLStreamWriter out) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
print(DPattern pattern)
Prints XML fragment for the given pattern.
|
void |
print(NameClass nc)
Prints XML fragment for the given name class.
|
void |
print(org.w3c.dom.Node node) |
void |
printDocument(DGrammarPattern grammar)
Prints grammar enclosed by start/end document.
|
protected javax.xml.stream.XMLStreamWriter out
protected java.lang.String indentStep
protected java.lang.String newLine
protected int indent
protected boolean afterEnd
protected DXMLPrinter.DXMLPrinterVisitor visitor
protected DXMLPrinter.NameClassXMLPrinterVisitor ncVisitor
protected DOMPrinter domPrinter
public DXMLPrinter(javax.xml.stream.XMLStreamWriter out)
out - Output stream.public void printDocument(DGrammarPattern grammar) throws javax.xml.stream.XMLStreamException
grammar - javax.xml.stream.XMLStreamExceptionpublic void print(DPattern pattern) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic void print(NameClass nc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic void print(org.w3c.dom.Node node)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception