Class XmlThemeBuilder

    • Constructor Summary

      Constructors 
      Constructor Description
      XmlThemeBuilder​(org.oscim.theme.ThemeFile theme)  
      XmlThemeBuilder​(org.oscim.theme.ThemeFile theme, org.oscim.theme.ThemeCallback themeCallback)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endDocument()  
      void endElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName)  
      void error​(SAXParseException exception)  
      static org.oscim.theme.IRenderTheme read​(org.oscim.theme.ThemeFile theme)  
      static org.oscim.theme.IRenderTheme read​(org.oscim.theme.ThemeFile theme, org.oscim.theme.ThemeCallback themeCallback)  
      void startElement​(java.lang.String uri, java.lang.String localName, java.lang.String qName, Attributes attributes)  
      void warning​(SAXParseException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlThemeBuilder

        public XmlThemeBuilder​(org.oscim.theme.ThemeFile theme)
      • XmlThemeBuilder

        public XmlThemeBuilder​(org.oscim.theme.ThemeFile theme,
                               org.oscim.theme.ThemeCallback themeCallback)
    • Method Detail

      • read

        public static org.oscim.theme.IRenderTheme read​(org.oscim.theme.ThemeFile theme)
                                                 throws org.oscim.theme.IRenderTheme.ThemeException
        Parameters:
        theme - an input theme containing valid render theme XML data.
        Returns:
        a new RenderTheme which is created by parsing the XML data from the input theme.
        Throws:
        org.oscim.theme.IRenderTheme.ThemeException - if an error occurs while parsing the render theme XML.
      • read

        public static org.oscim.theme.IRenderTheme read​(org.oscim.theme.ThemeFile theme,
                                                        org.oscim.theme.ThemeCallback themeCallback)
                                                 throws org.oscim.theme.IRenderTheme.ThemeException
        Parameters:
        theme - an input theme containing valid render theme XML data.
        themeCallback - the theme callback.
        Returns:
        a new RenderTheme which is created by parsing the XML data from the input theme.
        Throws:
        org.oscim.theme.IRenderTheme.ThemeException - if an error occurs while parsing the render theme XML.
      • endElement

        public void endElement​(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String qName)
        Overrides:
        endElement in class DefaultHandler
      • startElement

        public void startElement​(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 Attributes attributes)
                          throws org.oscim.theme.IRenderTheme.ThemeException
        Overrides:
        startElement in class DefaultHandler
        Throws:
        org.oscim.theme.IRenderTheme.ThemeException