Package org.kohsuke.rngom.digested
Class DXMLPrinter
java.lang.Object
org.kohsuke.rngom.digested.DXMLPrinter
Printer of RELAX NG digested model to XML using StAX
XMLStreamWriter
.- Author:
- Alexey Demakov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
protected class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected org.kohsuke.rngom.digested.DOMPrinter
protected int
protected String
protected DXMLPrinter.NameClassXMLPrinterVisitor
protected String
protected XMLStreamWriter
protected DXMLPrinter.DXMLPrinterVisitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
Prints XML fragment for the given pattern.void
Prints XML fragment for the given name class.void
void
printDocument
(DGrammarPattern grammar) Prints grammar enclosed by start/end document.
-
Field Details
-
out
-
indentStep
-
newLine
-
indent
protected int indent -
afterEnd
protected boolean afterEnd -
visitor
-
ncVisitor
-
domPrinter
protected org.kohsuke.rngom.digested.DOMPrinter domPrinter
-
-
Constructor Details
-
DXMLPrinter
- Parameters:
out
- Output stream.
-
-
Method Details
-
printDocument
Prints grammar enclosed by start/end document.- Parameters:
grammar
-- Throws:
XMLStreamException
-
print
Prints XML fragment for the given pattern.- Throws:
XMLStreamException
-
print
Prints XML fragment for the given name class.- Throws:
XMLStreamException
-
print
- Throws:
XMLStreamException
-
main
- Throws:
Exception
-