public class ThemeParser extends Object
| Constructor and Description |
|---|
ThemeParser() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ThemeParser()
public static void registerTheme(ThemeDescriptor themeDescriptor, boolean preload) throws ThemeIOException
ThemeIOExceptionpublic static void registerTheme(ThemeDescriptor themeDescriptor, String xmlSource, boolean preload) throws ThemeIOException
ThemeIOExceptionpublic static boolean checkElementName(String name) throws ThemeIOException
ThemeIOExceptionpublic static void registerThemePages(Element parent, Node node) throws ThemeIOException, ThemeException
ThemeIOExceptionThemeExceptionpublic static void parseLayout(Element parent, Node node) throws ThemeIOException, ThemeException
ThemeIOExceptionThemeExceptionpublic static void parsePresets(ThemeElement theme, Node node)
public static void parseFormats(ThemeElement theme, Element doc, Map<Style,Map<String,Properties>> commonStyles, Map<Integer,String> inheritanceMap, Node node) throws ThemeIOException, ThemeException
ThemeIOExceptionThemeExceptionpublic static void createCommonStyles(String themeName, Map<Style,Map<String,Properties>> commonStyles) throws ThemeException
ThemeExceptionpublic static void parseProperties(Element doc, Node node) throws ThemeIOException
ThemeIOExceptionpublic static List<Node> getChildElementsByTagName(Node node, String tagName)
public static Node getBaseNode(Element doc) throws ThemeIOException
ThemeIOExceptionCopyright © 2016 Nuxeo SA. All rights reserved.