public class DataReaderImpl<T> extends JAXBDataBase implements DataReader<T>
attachments, context, mtomThreshold, schema
ENDPOINT, FAULT
Constructor and Description |
---|
DataReaderImpl(JAXBDataBinding binding,
boolean unwrap) |
Modifier and Type | Method and Description |
---|---|
Object |
read(MessagePartInfo part,
T reader)
Read an object from the input, applying additional conventions based on the WSDL message
part.
|
Object |
read(QName name,
T input,
Class<?> type)
Read an object from the input.
|
Object |
read(T input)
Read an object from the input.
|
void |
setProperty(String prop,
Object value)
Set an arbitrary property on the reader.
|
getAttachmentMarshaller, getAttachments, getAttachmentUnmarshaller, getJAXBAnnotation, getJAXBContext, getMtomThreshold, getSchema, getValidationEventHandler, getValidationEventHandler, honorJAXBAnnotations, isOutputMessage, setAttachments, setJAXBContext, setMtomThreshold, setSchema
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAttachments, setSchema
public DataReaderImpl(JAXBDataBinding binding, boolean unwrap)
public Object read(T input)
DataReader
read
in interface DataReader<T>
input
- input source object.public void setProperty(String prop, Object value)
DataReader
DataReader.FAULT
and DataReader.ENDPOINT
specify two common properties: the Fault object being read
and the Endpoint
.setProperty
in interface DataReader<T>
setProperty
in class JAXBDataBase
prop
- Name of the property.value
- Value of the property.public Object read(MessagePartInfo part, T reader)
DataReader
read
in interface DataReader<T>
part
- The message part for this item. If null, this API is equivalent to
DataReader.read(Object)
.reader
- input source object.public Object read(QName name, T input, Class<?> type)
DataReader
read
in interface DataReader<T>
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.Apache CXF