public class XMLStreamDataWriter extends Object implements DataWriter<XMLStreamWriter>
ENDPOINT
Constructor and Description |
---|
XMLStreamDataWriter(AegisDatabinding databinding,
Bus bus) |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(String key) |
void |
setAttachments(Collection<Attachment> attachments)
Attach a collection of attachments to this writer.
|
void |
setProperty(String prop,
Object value)
Set a property for the writer.
|
void |
setSchema(Schema s)
Attach a schema to the writer.
|
void |
write(Object obj,
MessagePartInfo part,
XMLStreamWriter output)
Write an object to an output sink, including extra processing based on the WSDL
service model for a particular message part.
|
void |
write(Object obj,
XMLStreamWriter output)
Write an object to an output sink.
|
public XMLStreamDataWriter(AegisDatabinding databinding, Bus bus)
public void setAttachments(Collection<Attachment> attachments)
DataWriter
setAttachments
in interface DataWriter<XMLStreamWriter>
public void setSchema(Schema s)
DataWriter
setSchema
in interface DataWriter<XMLStreamWriter>
s
- the schema.public void write(Object obj, MessagePartInfo part, XMLStreamWriter output)
DataWriter
write
in interface DataWriter<XMLStreamWriter>
obj
- The object to write.part
- the message part.output
- the output sink.public void write(Object obj, XMLStreamWriter output)
DataWriter
write
in interface DataWriter<XMLStreamWriter>
obj
- the object to write.output
- the output sink.public void setProperty(String prop, Object value)
DataWriter
setProperty
in interface DataWriter<XMLStreamWriter>
prop
- property keyvalue
- property value.Apache CXF