Apache CXF API

org.apache.cxf.aegis.databinding
Class XMLStreamDataWriter

java.lang.Object
  extended by org.apache.cxf.aegis.databinding.XMLStreamDataWriter
All Implemented Interfaces:
BaseDataWriter, DataWriter<javax.xml.stream.XMLStreamWriter>

public class XMLStreamDataWriter
extends Object
implements DataWriter<javax.xml.stream.XMLStreamWriter>


Field Summary
 
Fields inherited from interface org.apache.cxf.databinding.DataWriter
ENDPOINT
 
Constructor Summary
XMLStreamDataWriter(AegisDatabinding databinding, Bus bus)
           
 
Method Summary
 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, javax.xml.stream.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, javax.xml.stream.XMLStreamWriter output)
          Write an object to an output sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStreamDataWriter

public XMLStreamDataWriter(AegisDatabinding databinding,
                           Bus bus)
Method Detail

setAttachments

public void setAttachments(Collection<Attachment> attachments)
Description copied from interface: BaseDataWriter
Attach a collection of attachments to this writer.

Specified by:
setAttachments in interface BaseDataWriter

setSchema

public void setSchema(Schema s)
Description copied from interface: BaseDataWriter
Attach a schema to the writer. If the binding supports validation, it will validate the XML that it produces (assuming that it produces XML).

Specified by:
setSchema in interface BaseDataWriter
Parameters:
s - the schema.

write

public void write(Object obj,
                  MessagePartInfo part,
                  javax.xml.stream.XMLStreamWriter output)
Description copied from interface: DataWriter
Write an object to an output sink, including extra processing based on the WSDL service model for a particular message part.

Specified by:
write in interface DataWriter<javax.xml.stream.XMLStreamWriter>
Parameters:
obj - The object to write.
part - the message part.
output - the output sink.

write

public void write(Object obj,
                  javax.xml.stream.XMLStreamWriter output)
Description copied from interface: DataWriter
Write an object to an output sink.

Specified by:
write in interface DataWriter<javax.xml.stream.XMLStreamWriter>
Parameters:
obj - the object to write.
output - the output sink.

setProperty

public void setProperty(String prop,
                        Object value)
Description copied from interface: BaseDataWriter
Set a property for the writer.

Specified by:
setProperty in interface BaseDataWriter
Parameters:
prop - property key
value - property value.

getProperty

public Object getProperty(String key)

Apache CXF API

Apache CXF