public class CSSValueFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPOUND_PREFIX |
static String |
SIMPLE_PREFIX |
Constructor and Description |
---|
CSSValueFactory(StyleKeyRegistry registry) |
Modifier and Type | Method and Description |
---|---|
static CSSNumericValue |
createLengthValue(org.w3c.css.sac.LexicalUnit value) |
static CSSNumericValue |
createNumericValue(org.w3c.css.sac.LexicalUnit value) |
static CSSStringValue |
createUriValue(org.w3c.css.sac.LexicalUnit value) |
static boolean |
isFunctionValue(org.w3c.css.sac.LexicalUnit unit) |
static boolean |
isLengthValue(org.w3c.css.sac.LexicalUnit value) |
static boolean |
isNumericValue(org.w3c.css.sac.LexicalUnit value) |
static CSSAttrFunction |
parseAttrFunction(org.w3c.css.sac.LexicalUnit unit) |
static org.w3c.css.sac.LexicalUnit |
parseComma(org.w3c.css.sac.LexicalUnit value) |
static CSSFunctionValue |
parseFunction(org.w3c.css.sac.LexicalUnit unit) |
void |
parseValue(CSSDeclarationRule rule,
String name,
org.w3c.css.sac.LexicalUnit value,
boolean important) |
void |
registerDefaults() |
public static final String SIMPLE_PREFIX
public static final String COMPOUND_PREFIX
public CSSValueFactory(StyleKeyRegistry registry)
public void registerDefaults()
public static CSSAttrFunction parseAttrFunction(org.w3c.css.sac.LexicalUnit unit)
public static boolean isFunctionValue(org.w3c.css.sac.LexicalUnit unit)
public static CSSFunctionValue parseFunction(org.w3c.css.sac.LexicalUnit unit)
public void parseValue(CSSDeclarationRule rule, String name, org.w3c.css.sac.LexicalUnit value, boolean important) throws CSSParserFactoryException
CSSParserFactoryException
public static CSSStringValue createUriValue(org.w3c.css.sac.LexicalUnit value)
public static boolean isNumericValue(org.w3c.css.sac.LexicalUnit value)
public static CSSNumericValue createNumericValue(org.w3c.css.sac.LexicalUnit value)
public static boolean isLengthValue(org.w3c.css.sac.LexicalUnit value)
public static CSSNumericValue createLengthValue(org.w3c.css.sac.LexicalUnit value)
public static org.w3c.css.sac.LexicalUnit parseComma(org.w3c.css.sac.LexicalUnit value)