public final class StyleSheetParserUtil
extends java.lang.Object
Constructor and Description |
---|
StyleSheetParserUtil() |
Modifier and Type | Method and Description |
---|---|
static StyleSheetParserUtil |
getInstance() |
org.w3c.css.sac.LexicalUnit |
parseLexicalStyleValue(java.lang.String value)
Parses an single lexical unit.
|
static java.lang.String[] |
parseNamespaceIdent(java.lang.String attrName)
Parses a single namespace identifier.
|
org.w3c.css.sac.SelectorList |
parseSelector(java.util.Map namespaces,
java.lang.String selector,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a single style value for the given key.
|
CSSDeclarationRule |
parseStyleRule(java.util.Map namespaces,
java.lang.String styleText,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule)
Parses a style rule.
|
CSSStyleRule |
parseStyles(java.util.Map namespaces,
java.lang.String name,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a style value.
|
CSSStyleRule |
parseStyles(java.util.Map namespaces,
java.lang.String name,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule)
Parses a style value.
|
CSSStyleRule |
parseStyles(java.util.Map namespaces,
StyleKey key,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a style value.
|
CSSValue |
parseStyleValue(java.util.Map namespaces,
StyleKey key,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a single style value for the given key.
|
public static StyleSheetParserUtil getInstance()
public org.w3c.css.sac.SelectorList parseSelector(java.util.Map namespaces, java.lang.String selector, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
null
,
if the key denotes a compound definition, which has no internal
representation.namespaces
- an optional map of known namespaces (prefix -> uri)selector
- the selector text that should be parsed.resourceManager
- an optional resource managerbaseURL
- an optional base urlpublic CSSValue parseStyleValue(java.util.Map namespaces, StyleKey key, java.lang.String value, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
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 textresourceManager
- an optional resource managerbaseURL
- an optional base urlpublic org.w3c.css.sac.LexicalUnit parseLexicalStyleValue(java.lang.String value)
value
- the value as string.public CSSStyleRule parseStyles(java.util.Map namespaces, StyleKey key, java.lang.String value, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
namespaces
- an optional map of known namespaces (prefix -> uri)key
- the stylekey to which the value should be assigned.value
- the value textresourceManager
- an optional resource managerbaseURL
- an optional base urlpublic CSSDeclarationRule parseStyleRule(java.util.Map namespaces, java.lang.String styleText, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL, CSSDeclarationRule baseRule)
namespaces
- an optional map of known namespaces (prefix -> uri)styleText
- the css text that should be parsedresourceManager
- an optional resource managerbaseURL
- an optional base urlbaseRule
- an optional base-rule to which the result gets added.public CSSStyleRule parseStyles(java.util.Map namespaces, java.lang.String name, java.lang.String value, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
namespaces
- an optional map of known namespaces (prefix -> uri)name
- the stylekey-name to which the value should be assigned.value
- the value textresourceManager
- an optional resource managerbaseURL
- an optional base urlpublic CSSStyleRule parseStyles(java.util.Map namespaces, java.lang.String name, java.lang.String value, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL, CSSDeclarationRule baseRule)
namespaces
- an optional map of known namespaces (prefix -> uri)name
- the stylekey-name to which the value should be assigned.value
- the value textresourceManager
- an optional resource managerbaseURL
- an optional base urlbaseRule
- an optional base-rule to which the result gets added.public static java.lang.String[] parseNamespaceIdent(java.lang.String attrName)
attrName
- the attribute name