public final class StyleSheetParserUtil extends Object
| Constructor and Description |
|---|
StyleSheetParserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static StyleSheetParserUtil |
getInstance() |
static String[] |
parseNamespaceIdent(String attrName)
Parses a single namespace identifier.
|
CSSDeclarationRule |
parseStyleRule(Map namespaces,
String styleText,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
StyleKeyRegistry styleKeyRegistry)
Parses a style rule.
|
CSSStyleRule |
parseStyles(Map namespaces,
String name,
String value,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
StyleKeyRegistry styleKeyRegistry)
Parses a style value.
|
CSSStyleRule |
parseStyles(Map namespaces,
String name,
String value,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
StyleKeyRegistry styleKeyRegistry)
Parses a style value.
|
CSSValue |
parseStyleValue(Map namespaces,
StyleKey key,
String value,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
StyleKeyRegistry styleKeyRegistry)
Parses a single style value for the given key.
|
public static StyleSheetParserUtil getInstance()
public CSSValue parseStyleValue(Map namespaces, StyleKey key, String value, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, StyleKeyRegistry styleKeyRegistry)
null,
if the key denotes a compound definition, which has no internal
representation.namespaces - an optional map of known namespaces (prefix -> uri)key - the stylekey to which the value should be assigned.value - the value textbaseURL - an optional base urlpublic CSSDeclarationRule parseStyleRule(Map namespaces, String styleText, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL, CSSDeclarationRule baseRule, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, StyleKeyRegistry styleKeyRegistry)
namespaces - an optional map of known namespaces (prefix -> uri)styleText - the css text that should be parsedbaseURL - an optional base urlbaseRule - an optional base-rule to which the result gets added.public CSSStyleRule parseStyles(Map namespaces, String name, String value, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, StyleKeyRegistry styleKeyRegistry)
namespaces - an optional map of known namespaces (prefix -> uri)name - the stylekey-name to which the value should be assigned.value - the value textbaseURL - an optional base urlpublic CSSStyleRule parseStyles(Map namespaces, String name, String value, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL, CSSDeclarationRule baseRule, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, StyleKeyRegistry styleKeyRegistry)
namespaces - an optional map of known namespaces (prefix -> uri)name - the stylekey-name to which the value should be assigned.value - the value textbaseURL - an optional base urlbaseRule - an optional base-rule to which the result gets added.