Package org.apache.cxf.jaxb.io
Class DataReaderImpl<T>
java.lang.Object
org.apache.cxf.jaxb.JAXBDataBase
org.apache.cxf.jaxb.io.DataReaderImpl<T>
- All Implemented Interfaces:
DataReader<T>
-
Field Summary
Fields inherited from class org.apache.cxf.jaxb.JAXBDataBase
attachments, context, mtomThreshold, schemaFields inherited from interface org.apache.cxf.databinding.DataReader
ENDPOINT, FAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRead an object from the input.read(MessagePartInfo part, T reader) Read an object from the input, applying additional conventions based on the WSDL message part.Read an object from the input.voidsetProperty(String prop, Object value) Set an arbitrary property on the reader.Methods inherited from class org.apache.cxf.jaxb.JAXBDataBase
getAttachmentMarshaller, getAttachments, getAttachmentUnmarshaller, getJAXBAnnotation, getJAXBContext, getMtomThreshold, getSchema, getValidationEventHandler, getValidationEventHandler, honorJAXBAnnotations, isOutputMessage, setAttachments, setJAXBContext, setMtomThreshold, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.databinding.DataReader
setAttachments, setSchema
-
Constructor Details
-
DataReaderImpl
-
-
Method Details
-
read
Description copied from interface:DataReaderRead an object from the input.- Specified by:
readin interfaceDataReader<T>- Parameters:
input- input source object.- Returns:
- item read.
-
setProperty
Description copied from interface:DataReaderSet an arbitrary property on the reader.DataReader.FAULTandDataReader.ENDPOINTspecify two common properties: the Fault object being read and theEndpoint.- Specified by:
setPropertyin interfaceDataReader<T>- Overrides:
setPropertyin classJAXBDataBase- Parameters:
prop- Name of the property.value- Value of the property.
-
read
Description copied from interface:DataReaderRead an object from the input, applying additional conventions based on the WSDL message part.- Specified by:
readin interfaceDataReader<T>- Parameters:
part- The message part for this item. If null, this API is equivalent toDataReader.read(Object).reader- input source object.- Returns:
- item read.
-
read
Description copied from interface:DataReaderRead 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:
readin interfaceDataReader<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.
-