public class AegisElementDataWriter extends AbstractAegisIoImpl implements AegisWriter<Element>
Modifier and Type | Field and Description |
---|---|
protected AegisXMLStreamDataWriter |
writer |
aegisContext, context, properties, schema
Constructor and Description |
---|
AegisElementDataWriter(AegisContext globalContext) |
Modifier and Type | Method and Description |
---|---|
void |
write(Object obj,
QName elementName,
boolean optional,
Element output,
AegisType aegisType)
Write an object to the sink.
|
void |
write(Object obj,
QName elementName,
boolean optional,
Element output,
Type objectType)
Write an object to the sink, providing a
Type to specify
its type. |
getContext, setProperty, setSchema
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setProperty, setSchema
protected AegisXMLStreamDataWriter writer
public AegisElementDataWriter(AegisContext globalContext)
public void write(Object obj, QName elementName, boolean optional, Element output, AegisType aegisType) throws Exception
AegisWriter
write
in interface AegisWriter<Element>
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.Exception
public void write(Object obj, QName elementName, boolean optional, Element output, Type objectType) throws Exception
AegisWriter
Type
to specify
its type.write
in interface AegisWriter<Element>
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.Exception
Apache CXF