public final class StyleValueParser extends HandlerBase
StyleValue
.Constructor and Description |
---|
StyleValueParser()
Constructs a parser.
|
Modifier and Type | Method and Description |
---|---|
StyleValue |
parse(String s,
URL baseURL,
PrefixToNamespace prefixToNS)
Parses the string representation of a CSS property.
|
void |
property(String name,
ValueComponent[] components,
boolean important) |
atRule, beginFontFace, beginMedia, beginPage, beginProperties, beginRule, beginSelectors, beginStyleSheet, endFontFace, endMedia, endPage, endProperties, endRule, endSelectors, endStyleSheet, error, namespace, resolveURI, script, selector
public StyleValue parse(String s, URL baseURL, PrefixToNamespace prefixToNS)
s
- string representation of a CSS property to be parsedbaseURL
- base URL used to resolve relative URLs possibly found in
sprefixToNS
- prefix to namespace map used to parse QNames
possibly found in s. May be null
.null
if s cannot be
parsed as a StyleValuepublic void property(String name, ValueComponent[] components, boolean important)
property
in interface Handler
property
in class HandlerBase