Class CssRuleSetParser
java.lang.Object
com.itextpdf.styledxmlparser.css.parse.CssRuleSetParser
Utilities class to parse CSS rule sets.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CssDeclaration> parsePropertyDeclarations(String propertiesStr) Parses property declarations.static List<CssRuleSet> parseRuleSet(String selectorStr, String propertiesStr) Parses a rule set into a list ofCssRuleSetinstances.
-
Method Details
-
parsePropertyDeclarations
Parses property declarations.- Parameters:
propertiesStr- the property declarations in the form of aString- Returns:
- the list of
CssDeclarationinstances
-
parseRuleSet
Parses a rule set into a list ofCssRuleSetinstances. This method returns aListbecause a selector can be compound, like "p, div, #navbar".- Parameters:
selectorStr- the selectorpropertiesStr- the properties- Returns:
- the resulting list of
CssRuleSetinstances
-