M
- the model type to return from the readerBase
- an intermediate type that represents the data passed in as XML.
May be the same as Mpublic class XmlReader<M,Base> extends AbstractAutoBeanReader<M,Base,String>
DataReader
implementation that reads XML data and build it
into the given AutoBean
type, using other types from the given
factory.
These AutoBean interfaces should use
AutoBean.PropertyName
to
specify the path to properties. Collections can be referenced by specifying
the path to the items.
Subclasses can override AbstractAutoBeanReader.createReturnData(Object, Object)
to control
what object is returned by the reader.Modifier and Type | Class and Description |
---|---|
static class |
XmlReader.XmlSplittable
A
Splittable for XML data. |
Constructor and Description |
---|
XmlReader(AutoBeanFactory factory,
Class<Base> rootBeanType)
Creates a new XML reader that can turn XML into an AutoBean.
|
public XmlReader(AutoBeanFactory factory, Class<Base> rootBeanType)
factory
- an auto bean factory capable of encoding objects of type MrootBeanType
- AutoBean based type to represent the base dataCopyright © 2015. All rights reserved.