Class NodeDataReader
- java.lang.Object
- 
- org.apache.cxf.databinding.source.NodeDataReader
 
- 
- All Implemented Interfaces:
- DataReader<Node>
 
 public class NodeDataReader extends Object implements DataReader<Node> 
- 
- 
Field Summary- 
Fields inherited from interface org.apache.cxf.databinding.DataReaderENDPOINT, FAULT
 
- 
 - 
Constructor SummaryConstructors Constructor Description NodeDataReader()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectread(QName name, Node input, Class<?> type)Read an object from the input.Objectread(MessagePartInfo part, Node input)Read an object from the input, applying additional conventions based on the WSDL message part.Objectread(Node n)Read an object from the input.voidsetAttachments(Collection<Attachment> attachments)Attach a collection of attachments to a binding.voidsetProperty(String prop, Object value)Set an arbitrary property on the reader.voidsetSchema(Schema s)Supply a schema to validate the input.
 
- 
- 
- 
Method Detail- 
readpublic Object read(MessagePartInfo part, Node input) Description copied from interface:DataReaderRead an object from the input, applying additional conventions based on the WSDL message part.- Specified by:
- readin interface- DataReader<Node>
- Parameters:
- part- The message part for this item. If null, this API is equivalent to- DataReader.read(Object).
- input- input source object.
- Returns:
- item read.
 
 - 
readpublic Object read(QName name, Node input, Class<?> type) 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 interface- DataReader<Node>
- 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.
 
 - 
readpublic Object read(Node n) Description copied from interface:DataReaderRead an object from the input.- Specified by:
- readin interface- DataReader<Node>
- Parameters:
- n- input source object.
- Returns:
- item read.
 
 - 
setSchemapublic void setSchema(Schema s) Description copied from interface:DataReaderSupply 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:
- setSchemain interface- DataReader<Node>
 
 - 
setAttachmentspublic void setAttachments(Collection<Attachment> attachments) Description copied from interface:DataReaderAttach 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:
- setAttachmentsin interface- DataReader<Node>
- Parameters:
- attachments- attachments.
 
 - 
setPropertypublic void setProperty(String prop, Object value) 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 interface- DataReader<Node>
- Parameters:
- prop- Name of the property.
- value- Value of the property.
 
 
- 
 
-