Class AegisElementDataWriter

java.lang.Object
org.apache.cxf.aegis.AbstractAegisIoImpl
org.apache.cxf.aegis.AegisElementDataWriter
All Implemented Interfaces:
AegisIo, AegisWriter<Element>

public class AegisElementDataWriter extends AbstractAegisIoImpl implements AegisWriter<Element>
  • Field Details

  • Constructor Details

    • AegisElementDataWriter

      public AegisElementDataWriter(AegisContext globalContext)
  • Method Details

    • write

      public void write(Object obj, QName elementName, boolean optional, Element output, AegisType aegisType) throws Exception
      Description copied from interface: AegisWriter
      Write an object to the sink.
      Specified by:
      write in interface AegisWriter<Element>
      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

      public void write(Object obj, QName elementName, boolean optional, Element output, Type objectType) throws Exception
      Description copied from interface: AegisWriter
      Write an object to the sink, providing a Type to specify its type.
      Specified by:
      write in interface AegisWriter<Element>
      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