public final class CssRuleSetParser extends Object
Modifier and Type | Method and Description |
---|---|
static List<CssDeclaration> |
parsePropertyDeclarations(String propertiesStr)
Parses property declarations.
|
static List<CssRuleSet> |
parseRuleSet(String selectorStr, String propertiesStr)
Parses a rule set into a list of CssRuleSet instances.
|
public static List<CssDeclaration> parsePropertyDeclarations(String propertiesStr)
propertiesStr
- the property declarations in the form of a String
CssDeclaration
instances
public static List<CssRuleSet> parseRuleSet(String selectorStr, String propertiesStr)
CssRuleSet
instances. This method returns a List
because a selector can be compound, like "p, div, #navbar".
selectorStr
- the selector
propertiesStr
- the properties
CssRuleSet
instances
Copyright © 1998–2021 iText Group NV. All rights reserved.