Package gov.nasa.worldwind.util.xml
Class XmlModelParser
- java.lang.Object
-
- gov.nasa.worldwind.util.xml.XmlModelParser
-
- Direct Known Subclasses:
GmlParser
,OwsXmlParser
,WcsXmlParser
,WmsXmlParser
,WmtsXmlParser
public class XmlModelParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmlModelParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xmlpull.v1.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(org.xmlpull.v1.XmlPullParser parser)
-
-
-
Method Detail
-
getPullParser
public org.xmlpull.v1.XmlPullParser getPullParser()
-
setPullParser
public void setPullParser(org.xmlpull.v1.XmlPullParser parser)
-
parse
public java.lang.Object parse() throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
- Throws:
org.xmlpull.v1.XmlPullParserException
java.io.IOException
-
registerXmlModel
public void registerXmlModel(java.lang.String namespace, java.lang.String name, java.lang.Class<? extends XmlModel> parsableModel)
Registers a xpp for a specified element name. A xpp of the same type and namespace is returned when is called for the same element name.
-
registerTxtModel
public void registerTxtModel(java.lang.String namespace, java.lang.String name)
-
registerAllModels
public void registerAllModels(XmlModelParser registry)
-
-