org.kohsuke.rngom.digested
Class DXMLPrinter
java.lang.Object
org.kohsuke.rngom.digested.DXMLPrinter
public class DXMLPrinter
- extends Object
Printer of RELAX NG digested model to XML using StAX XMLStreamWriter
.
- Author:
- Alexey Demakov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected javax.xml.stream.XMLStreamWriter out
indentStep
protected String indentStep
newLine
protected String newLine
indent
protected int indent
afterEnd
protected boolean afterEnd
visitor
protected DXMLPrinter.DXMLPrinterVisitor visitor
ncVisitor
protected DXMLPrinter.NameClassXMLPrinterVisitor ncVisitor
domPrinter
protected org.kohsuke.rngom.digested.DOMPrinter domPrinter
DXMLPrinter
public DXMLPrinter(javax.xml.stream.XMLStreamWriter out)
- Parameters:
out
- Output stream.
printDocument
public void printDocument(DGrammarPattern grammar)
throws javax.xml.stream.XMLStreamException
- Prints grammar enclosed by start/end document.
- Parameters:
grammar
-
- Throws:
javax.xml.stream.XMLStreamException
print
public void print(DPattern pattern)
throws javax.xml.stream.XMLStreamException
- Prints XML fragment for the given pattern.
- Throws:
javax.xml.stream.XMLStreamException
print
public void print(NameClass nc)
throws javax.xml.stream.XMLStreamException
- Prints XML fragment for the given name class.
- Throws:
javax.xml.stream.XMLStreamException
print
public void print(Node node)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2011. All Rights Reserved.