org.apache.cxf.jaxb.io
Class DataReaderImpl<T>

java.lang.Object
  extended by org.apache.cxf.jaxb.JAXBDataBase
      extended by org.apache.cxf.jaxb.io.DataReaderImpl<T>
All Implemented Interfaces:
DataReader<T>

public class DataReaderImpl<T>
extends JAXBDataBase
implements DataReader<T>


Field Summary
 
Fields inherited from class org.apache.cxf.jaxb.JAXBDataBase
attachmentProcessingEnabled, attachments, context, schema, unwrapJAXBElement
 
Fields inherited from interface org.apache.cxf.databinding.DataReader
ENDPOINT, FAULT
 
Constructor Summary
DataReaderImpl(javax.xml.bind.JAXBContext ctx)
           
 
Method Summary
 java.lang.Object read(MessagePartInfo part, T reader)
          Read an object from the input, applying additional conventions based on the WSDL message part.
 java.lang.Object read(javax.xml.namespace.QName name, T input, java.lang.Class type)
          Read an object from the input.
 java.lang.Object read(T input)
          Read an object from the input.
 
Methods inherited from class org.apache.cxf.jaxb.JAXBDataBase
getAttachmentMarshaller, getAttachments, getAttachmentUnmarshaller, getJAXBContext, getSchema, setAttachments, setJAXBContext, setProperty, setSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.databinding.DataReader
setAttachments, setProperty, setSchema
 

Constructor Detail

DataReaderImpl

public DataReaderImpl(javax.xml.bind.JAXBContext ctx)
Method Detail

read

public java.lang.Object read(T input)
Description copied from interface: DataReader
Read an object from the input.

Specified by:
read in interface DataReader<T>
Parameters:
input - input source object.
Returns:
item read.

read

public java.lang.Object read(MessagePartInfo part,
                             T 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<T>
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 java.lang.Object read(javax.xml.namespace.QName name,
                             T input,
                             java.lang.Class type)
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<T>
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.


Apache CXF