Package org.apache.cxf.aegis
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 Summary
Fields Modifier and Type Field Description protected AegisXMLStreamDataWriterwriter-
Fields inherited from class org.apache.cxf.aegis.AbstractAegisIoImpl
aegisContext, context, properties, schema
-
-
Constructor Summary
Constructors Constructor Description AegisElementDataWriter(AegisContext globalContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(Object obj, QName elementName, boolean optional, Element output, Type objectType)Write an object to the sink, providing aTypeto specify its type.voidwrite(Object obj, QName elementName, boolean optional, Element output, AegisType aegisType)Write an object to the sink.-
Methods inherited from class org.apache.cxf.aegis.AbstractAegisIoImpl
getContext, setProperty, setSchema
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.aegis.AegisIo
setProperty, setSchema
-
-
-
-
Field Detail
-
writer
protected AegisXMLStreamDataWriter writer
-
-
Constructor Detail
-
AegisElementDataWriter
public AegisElementDataWriter(AegisContext globalContext)
-
-
Method Detail
-
write
public void write(Object obj, QName elementName, boolean optional, Element output, AegisType aegisType) throws Exception
Description copied from interface:AegisWriterWrite an object to the sink.- Specified by:
writein interfaceAegisWriter<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:AegisWriterWrite an object to the sink, providing aTypeto specify its type.- Specified by:
writein interfaceAegisWriter<Element>- 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
-
-