Interface AegisWriter<SinkT>

Type Parameters:
SinkT -
All Superinterfaces:
AegisIo
All Known Implementing Classes:
AegisElementDataWriter, AegisXMLStreamDataWriter

public interface AegisWriter<SinkT> extends AegisIo
Interface for Aegis writers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(Object obj, QName elementName, boolean optional, SinkT output, Type objectType)
    Write an object to the sink, providing a Type to specify its type.
    void
    write(Object obj, QName elementName, boolean optional, SinkT output, AegisType aegisType)
    Write an object to the sink.

    Methods inherited from interface org.apache.cxf.aegis.AegisIo

    setProperty, setSchema
  • Method Details

    • 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