public static class StaxDataBinding.XMLStreamDataReader extends Object implements DataReader<XMLStreamReader>
ENDPOINT, FAULT
Constructor and Description |
---|
XMLStreamDataReader() |
Modifier and Type | Method and Description |
---|---|
Object |
read(MessagePartInfo part,
XMLStreamReader input)
Read an object from the input, applying additional conventions based on the WSDL message
part.
|
Object |
read(QName name,
XMLStreamReader input,
Class<?> type)
Read an object from the input.
|
Object |
read(XMLStreamReader reader)
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.
|
public Object read(MessagePartInfo part, XMLStreamReader input)
DataReader
read
in interface DataReader<XMLStreamReader>
part
- The message part for this item. If null, this API is equivalent to
DataReader.read(Object)
.input
- input source object.public Object read(QName name, XMLStreamReader input, Class<?> type)
DataReader
read
in interface DataReader<XMLStreamReader>
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.public Object read(XMLStreamReader reader)
DataReader
read
in interface DataReader<XMLStreamReader>
reader
- input source object.public void setSchema(Schema s)
DataReader
setSchema
in interface DataReader<XMLStreamReader>
public void setAttachments(Collection<Attachment> attachments)
DataReader
setAttachments
in interface DataReader<XMLStreamReader>
attachments
- attachments.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<XMLStreamReader>
prop
- Name of the property.value
- Value of the property.Copyright © 2016 JBoss by Red Hat. All rights reserved.