Package org.apache.cxf.aegis
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(Object obj, QName elementName, boolean optional, SinkT output, Type objectType)Write an object to the sink, providing aTypeto specify its type.voidwrite(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 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 aTypeto specify its type.- Parameters:
obj- the objectelementName- XML element nameoptional- 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
-
-