Interface AegisWriter<SinkT>

    • Method Detail

      • write

        void write​(Object obj,
                   QName elementName,
                   boolean optional,
                   SinkT output,
                   AegisType aegisType)
            throws Exception
        Write an object to the sink.
        Parameters:
        obj - The object.
        elementName - The element QName.
        optional - true to omit for null. (minOccurs=0)
        output - The output sink.
        aegisType - The aegis type to use. Null is allowed, but only if obj is not null.
        Throws:
        Exception
      • write

        void write​(Object obj,
                   QName elementName,
                   boolean optional,
                   SinkT output,
                   Type objectType)
            throws Exception
        Write an object to the sink, providing a Type to specify its type.
        Parameters:
        obj - the object
        elementName - XML element name
        optional - true if null maps to no output at all.
        output - where to put it.
        objectType - A description of the type of the object.
        Throws:
        Exception