Apache CXF API

org.apache.cxf.xmlbeans
Class DataReaderImpl

java.lang.Object
  extended by org.apache.cxf.xmlbeans.DataReaderImpl
All Implemented Interfaces:
BaseDataReader, DataReader<javax.xml.stream.XMLStreamReader>

public class DataReaderImpl
extends Object
implements DataReader<javax.xml.stream.XMLStreamReader>


Field Summary
 
Fields inherited from interface org.apache.cxf.databinding.BaseDataReader
ENDPOINT, FAULT
 
Constructor Summary
DataReaderImpl()
           
 
Method Summary
 Object read(MessagePartInfo part, javax.xml.stream.XMLStreamReader reader)
          Read an object from the input, applying additional conventions based on the WSDL message part.
 Object read(QName name, javax.xml.stream.XMLStreamReader reader, Class<?> typeClass)
          Read an object from the input.
 Object read(javax.xml.stream.XMLStreamReader input)
          Read an object from the input.
 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 setSchema(Schema s)
          Supply a schema to validate the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataReaderImpl

public DataReaderImpl()
Method Detail

read

public Object read(javax.xml.stream.XMLStreamReader input)
Description copied from interface: DataReader
Read an object from the input.

Specified by:
read in interface DataReader<javax.xml.stream.XMLStreamReader>
Parameters:
input - input source object.
Returns:
item read.

read

public Object read(MessagePartInfo part,
                   javax.xml.stream.XMLStreamReader reader)
Description copied from interface: DataReader
Read an object from the input, applying additional conventions based on the WSDL message part.

Specified by:
read in interface DataReader<javax.xml.stream.XMLStreamReader>
Parameters:
part - The message part for this item. If null, this API is equivalent to DataReader.read(Object).
reader - input source object.
Returns:
item read.

read

public Object read(QName name,
                   javax.xml.stream.XMLStreamReader reader,
                   Class<?> typeClass)
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 interface DataReader<javax.xml.stream.XMLStreamReader>
Parameters:
name - expected element. Generally ignored.
reader - input source object.
typeClass - 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.

setAttachments

public void setAttachments(Collection<Attachment> attachments)
Description copied from interface: BaseDataReader
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 interface BaseDataReader
Parameters:
attachments - attachments.

setProperty

public void setProperty(String prop,
                        Object value)
Description copied from interface: BaseDataReader
Set an arbitrary property on the reader. BaseDataReader.FAULT and BaseDataReader.ENDPOINT specify two common properties: the Fault object being read and the Endpoint.

Specified by:
setProperty in interface BaseDataReader
Parameters:
prop - Name of the property.
value - Value of the property.

setSchema

public void setSchema(Schema s)
Description copied from interface: BaseDataReader
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 interface BaseDataReader

Apache CXF API

Apache CXF