Package org.apache.cxf.aegis
Interface AegisWriter<SinkT>
- Type Parameters:
SinkT-
- All Superinterfaces:
AegisIo
- All Known Implementing Classes:
AegisElementDataWriter,AegisXMLStreamDataWriter
Interface for Aegis writers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidWrite an object to the sink, providing aTypeto specify its type.voidWrite 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 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
-