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 classprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected com.sun.tools.rngom.digested.DOMPrinterprotected intprotected Stringprotected DXMLPrinter.NameClassXMLPrinterVisitorprotected Stringprotected XMLStreamWriterprotected DXMLPrinter.DXMLPrinterVisitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidPrints XML fragment for the given pattern.voidPrints XML fragment for the given name class.voidvoidprintDocument(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.- 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
-