Class XmlModelParser

    • Constructor Detail

      • XmlModelParser

        public XmlModelParser()
    • 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)