use of org.freud.analysed.css.rule.declaration.CssDeclaration in project freud by LMAX-Exchange.
the class CssRuleJdom method parseDeclarations.
@SuppressWarnings("unchecked")
private void parseDeclarations() {
cssDeclarationList = new ArrayList<CssDeclaration>();
JXPathContext context = JXPathContext.newContext(ruleElement);
List<Element> cssSelectorElementList = (List<Element>) context.selectNodes("/" + CssTokenType.PROPERTY.name());
for (Element element : cssSelectorElementList) {
cssDeclarationList.add(new CssDeclarationJdom(this, element));
}
}
Aggregations