Class DXMLPrinter


  • public class DXMLPrinter
    extends java.lang.Object
    Printer of RELAX NG digested model to XML using StAX XMLStreamWriter.
    • 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DXMLPrinter

        public DXMLPrinter​(javax.xml.stream.XMLStreamWriter out)
        Parameters:
        out - Output stream.
    • 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