public class DXMLPrinter extends 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 org.kohsuke.rngom.digested.DOMPrinter | 
domPrinter  | 
protected int | 
indent  | 
protected String | 
indentStep  | 
protected DXMLPrinter.NameClassXMLPrinterVisitor | 
ncVisitor  | 
protected String | 
newLine  | 
protected XMLStreamWriter | 
out  | 
protected DXMLPrinter.DXMLPrinterVisitor | 
visitor  | 
| Constructor and Description | 
|---|
DXMLPrinter(XMLStreamWriter out)  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
main(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(Node node)  | 
void | 
printDocument(DGrammarPattern grammar)
Prints grammar enclosed by start/end document. 
 | 
protected XMLStreamWriter out
protected String indentStep
protected String newLine
protected int indent
protected boolean afterEnd
protected DXMLPrinter.DXMLPrinterVisitor visitor
protected DXMLPrinter.NameClassXMLPrinterVisitor ncVisitor
protected org.kohsuke.rngom.digested.DOMPrinter domPrinter
public DXMLPrinter(XMLStreamWriter out)
out - Output stream.public void printDocument(DGrammarPattern grammar) throws XMLStreamException
grammar - XMLStreamExceptionpublic void print(DPattern pattern) throws XMLStreamException
XMLStreamExceptionpublic void print(NameClass nc) throws XMLStreamException
XMLStreamExceptionpublic void print(Node node) throws XMLStreamException
XMLStreamExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.