org.jfree.layouting.input.style.parser
public final class StyleSheetParserUtil extends Object
Constructor Summary | |
---|---|
StyleSheetParserUtil() |
Method Summary | |
---|---|
static StyleSheetParserUtil | getInstance() |
LexicalUnit | parseLexicalStyleValue(String value)
Parses an single lexical unit. |
static String[] | parseNamespaceIdent(String attrName)
Parses a single namespace identifier. |
SelectorList | parseSelector(Map namespaces, String selector, ResourceManager resourceManager, ResourceKey baseURL)
Parses a single style value for the given key. |
CSSDeclarationRule | parseStyleRule(Map namespaces, String styleText, ResourceManager resourceManager, ResourceKey baseURL, CSSDeclarationRule baseRule)
Parses a style rule.
|
CSSStyleRule | parseStyles(Map namespaces, StyleKey key, String value, ResourceManager resourceManager, ResourceKey baseURL)
Parses a style value. |
CSSStyleRule | parseStyles(Map namespaces, String name, String value, ResourceManager resourceManager, ResourceKey baseURL)
Parses a style value. |
CSSStyleRule | parseStyles(Map namespaces, String name, String value, ResourceManager resourceManager, ResourceKey baseURL, CSSDeclarationRule baseRule)
Parses a style value. |
CSSValue | parseStyleValue(Map namespaces, StyleKey key, String value, ResourceManager resourceManager, ResourceKey baseURL)
Parses a single style value for the given key. |
Parameters: value the value as string.
Returns: the parsed value or null, if the string was unparseable.
Parameters: attrName the attribute name
Returns: the parsed attribute.
null
,
if the key denotes a compound definition, which has no internal
representation.
Parameters: namespaces an optional map of known namespaces (prefix -> uri) selector the selector text that should be parsed. resourceManager an optional resource manager baseURL an optional base url
Returns: the parsed selector or null
Parameters: namespaces an optional map of known namespaces (prefix -> uri) styleText the css text that should be parsed resourceManager an optional resource manager baseURL an optional base url baseRule an optional base-rule to which the result gets added.
Returns: the CSS-Style-Rule that contains all values for the given text.
Parameters: namespaces an optional map of known namespaces (prefix -> uri) key the stylekey to which the value should be assigned. value the value text resourceManager an optional resource manager baseURL an optional base url
Returns: the CSS-Style-Rule that contains all values for the given text.
Parameters: namespaces an optional map of known namespaces (prefix -> uri) name the stylekey-name to which the value should be assigned. value the value text resourceManager an optional resource manager baseURL an optional base url
Returns: the CSS-Style-Rule that contains all values for the given text.
Parameters: namespaces an optional map of known namespaces (prefix -> uri) name the stylekey-name to which the value should be assigned. value the value text resourceManager an optional resource manager baseURL an optional base url baseRule an optional base-rule to which the result gets added.
Returns: the CSS-Style-Rule that contains all values for the given text.
null
,
if the key denotes a compound definition, which has no internal
representation.
Parameters: namespaces an optional map of known namespaces (prefix -> uri) key the stylekey to which the value should be assigned. value the value text resourceManager an optional resource manager baseURL an optional base url
Returns: the parsed value or null, if the value was not valid.