Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.themes
Class ThemeParser

java.lang.Object
  extended by org.nuxeo.theme.themes.ThemeParser

public class ThemeParser
extends Object


Constructor Summary
ThemeParser()
           
 
Method Summary
static boolean checkElementName(String name)
           
static void createCommonStyles(String themeName, Map<Style,Map<String,Properties>> commonStyles)
           
static Node getBaseNode(Element doc)
           
static List<Node> getChildElementsByTagName(Node node, String tagName)
           
static void parseFormats(ThemeElement theme, Element doc, Map<Style,Map<String,Properties>> commonStyles, Map<Integer,String> inheritanceMap, Node node)
           
static void parseLayout(Element parent, Node node)
           
static void parsePresets(ThemeElement theme, Node node)
           
static void parseProperties(Element doc, Node node)
           
static void registerTheme(ThemeDescriptor themeDescriptor, boolean preload)
           
static void registerTheme(ThemeDescriptor themeDescriptor, String xmlSource, boolean preload)
           
static void registerThemePages(Element parent, Node node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeParser

public ThemeParser()
Method Detail

registerTheme

public static void registerTheme(ThemeDescriptor themeDescriptor,
                                 boolean preload)
                          throws ThemeIOException
Throws:
ThemeIOException

registerTheme

public static void registerTheme(ThemeDescriptor themeDescriptor,
                                 String xmlSource,
                                 boolean preload)
                          throws ThemeIOException
Throws:
ThemeIOException

checkElementName

public static boolean checkElementName(String name)
                                throws ThemeIOException
Throws:
ThemeIOException

registerThemePages

public static void registerThemePages(Element parent,
                                      Node node)
                               throws ThemeIOException,
                                      ThemeException
Throws:
ThemeIOException
ThemeException

parseLayout

public static void parseLayout(Element parent,
                               Node node)
                        throws ThemeIOException,
                               ThemeException
Throws:
ThemeIOException
ThemeException

parsePresets

public static void parsePresets(ThemeElement theme,
                                Node node)

parseFormats

public static void parseFormats(ThemeElement theme,
                                Element doc,
                                Map<Style,Map<String,Properties>> commonStyles,
                                Map<Integer,String> inheritanceMap,
                                Node node)
                         throws ThemeIOException,
                                ThemeException
Throws:
ThemeIOException
ThemeException

createCommonStyles

public static void createCommonStyles(String themeName,
                                      Map<Style,Map<String,Properties>> commonStyles)
                               throws ThemeException
Throws:
ThemeException

parseProperties

public static void parseProperties(Element doc,
                                   Node node)
                            throws ThemeIOException
Throws:
ThemeIOException

getChildElementsByTagName

public static List<Node> getChildElementsByTagName(Node node,
                                                   String tagName)

getBaseNode

public static Node getBaseNode(Element doc)
                        throws ThemeIOException
Throws:
ThemeIOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.