Class AqdefWriter

  • All Implemented Interfaces:
    AqdefConstants

    public class AqdefWriter
    extends Object
    implements AqdefConstants
    Writes AqdefObjectModel to AQDFQ text structure.

    You can call #writeTo(Writer) to write DFQ content to a given writer or #getData() to get DFQ content as a String. DFQ content is created lazily when one of these methods is called.

    Author:
    Vlastimil Dolejs
    • Constructor Detail

      • AqdefWriter

        public AqdefWriter()
    • Method Detail

      • writeToString

        public String writeToString​(AqdefObjectModel aqdefObjectModel)
        Creates AQDFQ structure and returns it as a String
        Parameters:
        aqdefObjectModel - model to be written, must not be null
        Returns:
        AQDFQ content as a String, never null
      • writeTo

        public void writeTo​(AqdefObjectModel aqdefObjectModel,
                            Writer writer)
                     throws IOException
        Creates AQDEF structure and writes it to a given writer
        Parameters:
        aqdefObjectModel - model to be written, must not be null
        writer - writer to write model to, must not be null
        Throws:
        IOException - thrown when some I/O error occur