Package org.apache.cxf.aegis.databinding
Class ElementDataWriter
- java.lang.Object
-
- org.apache.cxf.aegis.databinding.ElementDataWriter
-
- All Implemented Interfaces:
DataWriter<Element>
public class ElementDataWriter extends Object implements DataWriter<Element>
-
-
Field Summary
-
Fields inherited from interface org.apache.cxf.databinding.DataWriter
ENDPOINT
-
-
Constructor Summary
Constructors Constructor Description ElementDataWriter(AegisDatabinding databinding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetProperty(String key)voidsetAttachments(Collection<Attachment> attachments)Attach a collection of attachments to this writer.voidsetProperty(String prop, Object value)Set a property for the writer.voidsetSchema(Schema s)Attach a schema to the writer.voidwrite(Object obj, MessagePartInfo part, Element output)Write an object to an output sink, including extra processing based on the WSDL service model for a particular message part.voidwrite(Object obj, Element output)Write an object to an output sink.
-
-
-
Constructor Detail
-
ElementDataWriter
public ElementDataWriter(AegisDatabinding databinding)
-
-
Method Detail
-
setAttachments
public void setAttachments(Collection<Attachment> attachments)
Description copied from interface:DataWriterAttach a collection of attachments to this writer.- Specified by:
setAttachmentsin interfaceDataWriter<Element>
-
setSchema
public void setSchema(Schema s)
Description copied from interface:DataWriterAttach 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:
setSchemain interfaceDataWriter<Element>- Parameters:
s- the schema.
-
write
public void write(Object obj, MessagePartInfo part, Element output)
Description copied from interface:DataWriterWrite an object to an output sink, including extra processing based on the WSDL service model for a particular message part.- Specified by:
writein interfaceDataWriter<Element>- Parameters:
obj- The object to write.part- the message part.output- the output sink.
-
write
public void write(Object obj, Element output)
Description copied from interface:DataWriterWrite an object to an output sink.- Specified by:
writein interfaceDataWriter<Element>- Parameters:
obj- the object to write.output- the output sink.
-
setProperty
public void setProperty(String prop, Object value)
Description copied from interface:DataWriterSet a property for the writer.- Specified by:
setPropertyin interfaceDataWriter<Element>- Parameters:
prop- property keyvalue- property value.
-
-