org.nuxeo.theme.themes
Class ThemeParser
java.lang.Object
org.nuxeo.theme.themes.ThemeParser
public class ThemeParser
- extends Object
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)
|
ThemeParser
public ThemeParser()
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.