public class XmlModelParser
extends java.lang.Object
Constructor and Description |
---|
XmlModelParser() |
Modifier and Type | Method and Description |
---|---|
XmlPullParser |
getPullParser() |
java.lang.Object |
parse() |
void |
registerAllModels(XmlModelParser registry) |
void |
registerTxtModel(java.lang.String namespace,
java.lang.String name) |
void |
registerXmlModel(java.lang.String namespace,
java.lang.String name,
java.lang.Class<? extends XmlModel> parsableModel)
Registers a xpp for a specified element name.
|
void |
setPullParser(XmlPullParser parser) |
public XmlPullParser getPullParser()
public void setPullParser(XmlPullParser parser)
public java.lang.Object parse() throws XmlPullParserException, java.io.IOException
XmlPullParserException
java.io.IOException
public void registerXmlModel(java.lang.String namespace, java.lang.String name, java.lang.Class<? extends XmlModel> parsableModel)
public void registerTxtModel(java.lang.String namespace, java.lang.String name)
public void registerAllModels(XmlModelParser registry)