Package com.sun.tools.rngom.digested
Class DXMLPrinter
java.lang.Object
com.sun.tools.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 com.sun.tools.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 com.sun.tools.rngom.digested.DOMPrinter domPrinter
-
-
Constructor Details
-
DXMLPrinter
- Parameters:
out
- Output stream.
-
-
Method Details
-
printDocument
Prints grammar enclosed by start/end document.- 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
-