org.nuxeo.theme.themes
Class ThemeParser
java.lang.Object
org.nuxeo.theme.themes.ThemeParser
public class ThemeParser
- extends java.lang.Object
Method Summary |
static void |
checkElementName(java.lang.String name)
|
static void |
createCommonStyles(java.lang.String themeName,
java.util.Map<Style,java.util.Map<java.lang.String,java.util.Properties>> commonStyles)
|
static org.w3c.dom.Node |
getBaseNode(org.w3c.dom.Element doc)
|
static java.util.List<org.w3c.dom.Node> |
getChildElementsByTagName(org.w3c.dom.Node node,
java.lang.String tagName)
|
static void |
parseFormats(ThemeElement theme,
org.w3c.dom.Element doc,
java.util.Map<Style,java.util.Map<java.lang.String,java.util.Properties>> commonStyles,
java.util.Map<java.lang.Integer,java.lang.String> inheritanceMap,
org.w3c.dom.Node node)
|
static void |
parseLayout(Element parent,
org.w3c.dom.Node node)
|
static void |
parsePresets(ThemeElement theme,
org.w3c.dom.Node node)
|
static void |
parseProperties(org.w3c.dom.Element doc,
org.w3c.dom.Node node)
|
static void |
registerTheme(ThemeDescriptor themeDescriptor,
boolean preload)
|
static void |
registerTheme(ThemeDescriptor themeDescriptor,
java.lang.String xmlSource,
boolean preload)
|
static void |
registerThemePages(Element parent,
org.w3c.dom.Node node)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThemeParser
public ThemeParser()
registerTheme
public static void registerTheme(ThemeDescriptor themeDescriptor,
boolean preload)
throws ThemeIOException
- Throws:
ThemeIOException
registerTheme
public static void registerTheme(ThemeDescriptor themeDescriptor,
java.lang.String xmlSource,
boolean preload)
throws ThemeIOException
- Throws:
ThemeIOException
checkElementName
public static void checkElementName(java.lang.String name)
throws ThemeIOException
- Throws:
ThemeIOException
registerThemePages
public static void registerThemePages(Element parent,
org.w3c.dom.Node node)
throws ThemeIOException,
ThemeException
- Throws:
ThemeIOException
ThemeException
parseLayout
public static void parseLayout(Element parent,
org.w3c.dom.Node node)
throws ThemeIOException,
ThemeException
- Throws:
ThemeIOException
ThemeException
parsePresets
public static void parsePresets(ThemeElement theme,
org.w3c.dom.Node node)
parseFormats
public static void parseFormats(ThemeElement theme,
org.w3c.dom.Element doc,
java.util.Map<Style,java.util.Map<java.lang.String,java.util.Properties>> commonStyles,
java.util.Map<java.lang.Integer,java.lang.String> inheritanceMap,
org.w3c.dom.Node node)
throws ThemeIOException,
ThemeException
- Throws:
ThemeIOException
ThemeException
createCommonStyles
public static void createCommonStyles(java.lang.String themeName,
java.util.Map<Style,java.util.Map<java.lang.String,java.util.Properties>> commonStyles)
throws ThemeException
- Throws:
ThemeException
parseProperties
public static void parseProperties(org.w3c.dom.Element doc,
org.w3c.dom.Node node)
throws ThemeIOException
- Throws:
ThemeIOException
getChildElementsByTagName
public static java.util.List<org.w3c.dom.Node> getChildElementsByTagName(org.w3c.dom.Node node,
java.lang.String tagName)
getBaseNode
public static org.w3c.dom.Node getBaseNode(org.w3c.dom.Element doc)
throws ThemeIOException
- Throws:
ThemeIOException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.