Class DXMLPrinter
- java.lang.Object
-
- org.kohsuke.rngom.rngparser.digested.DXMLPrinter
-
public class DXMLPrinter extends java.lang.Object
Printer of RELAX NG digested model to XML using StAXXMLStreamWriter
.
-
-
Constructor Summary
Constructors Constructor Description DXMLPrinter(javax.xml.stream.XMLStreamWriter out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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(org.w3c.dom.Node node) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
-