Class XMLStreamDataReader
java.lang.Object
org.apache.cxf.databinding.source.XMLStreamDataReader
- All Implemented Interfaces:
DataReader<XMLStreamReader>
-
Field Summary
Fields inherited from interface org.apache.cxf.databinding.DataReader
ENDPOINT, FAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(QName name, XMLStreamReader input, Class<?> type) Read an object from the input.read
(XMLStreamReader reader) Read an object from the input.read
(MessagePartInfo part, XMLStreamReader input) Read an object from the input, applying additional conventions based on the WSDL message part.void
setAttachments
(Collection<Attachment> attachments) Attach a collection of attachments to a binding.void
setProperty
(String prop, Object value) Set an arbitrary property on the reader.void
Supply a schema to validate the input.
-
Constructor Details
-
XMLStreamDataReader
public XMLStreamDataReader() -
XMLStreamDataReader
-
-
Method Details
-
read
Description copied from interface:DataReader
Read an object from the input, applying additional conventions based on the WSDL message part.- Specified by:
read
in interfaceDataReader<XMLStreamReader>
- Parameters:
part
- The message part for this item. If null, this API is equivalent toDataReader.read(Object)
.input
- input source object.- Returns:
- item read.
-
read
Description copied from interface:DataReader
Read an object from the input. In the current version of CXF, not all binding support this API, and those that do ignore the element QName parameter.- Specified by:
read
in interfaceDataReader<XMLStreamReader>
- Parameters:
name
- expected element. Generally ignored.input
- input source object.type
- the type of object required/requested. This is generally used when the caller wants to receive a raw source object and avoid any binding processing. For example, passing javax.xml.transform.Source. The bindings do not necessarily throw if they cannot provide an object of the requested type, and will apply their normal mapping processing, instead.- Returns:
- item read.
-
read
Description copied from interface:DataReader
Read an object from the input.- Specified by:
read
in interfaceDataReader<XMLStreamReader>
- Parameters:
reader
- input source object.- Returns:
- item read.
-
setSchema
Description copied from interface:DataReader
Supply a schema to validate the input. Bindings silently ignore this parameter if they do not support schema validation, or the particular form of validation implied by a particular form of Schema.- Specified by:
setSchema
in interfaceDataReader<XMLStreamReader>
-
setAttachments
Description copied from interface:DataReader
Attach a collection of attachments to a binding. This permits a binding to process the contents of one or more attachments as part of reading from this reader.- Specified by:
setAttachments
in interfaceDataReader<XMLStreamReader>
- Parameters:
attachments
- attachments.
-
setProperty
Description copied from interface:DataReader
Set an arbitrary property on the reader.DataReader.FAULT
andDataReader.ENDPOINT
specify two common properties: the Fault object being read and theEndpoint
.- Specified by:
setProperty
in interfaceDataReader<XMLStreamReader>
- Parameters:
prop
- Name of the property.value
- Value of the property.
-