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 static void registerTheme(ThemeDescriptor themeDescriptor, boolean preload) throws ThemeIOException
ThemeIOException
public static void registerTheme(ThemeDescriptor themeDescriptor, String xmlSource, boolean preload) throws ThemeIOException
ThemeIOException
public static boolean checkElementName(String name) throws ThemeIOException
ThemeIOException
public static void registerThemePages(Element parent, Node node) throws ThemeIOException, ThemeException
ThemeIOException
ThemeException
public static void parseLayout(Element parent, Node node) throws ThemeIOException, ThemeException
ThemeIOException
ThemeException
public 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
ThemeIOException
ThemeException
public static void createCommonStyles(String themeName, Map<Style,Map<String,Properties>> commonStyles) throws ThemeException
ThemeException
public static void parseProperties(Element doc, Node node) throws ThemeIOException
ThemeIOException
public static List<Node> getChildElementsByTagName(Node node, String tagName)
public static Node getBaseNode(Element doc) throws ThemeIOException
ThemeIOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.