in src/main/java/org/apache/sling/xss/impl/xml/AntiSamyPolicy.java [102:114]
public CssPolicy(Map<String, Property> cssrules, Map<String, Pattern> commonRegExps) {
this.cssRules = Collections.unmodifiableMap(cssrules);
this.elementMatcher = new IncludeExcludeMatcher(
commonRegExps.get("cssElementSelector"), commonRegExps.get("cssElementExclusion"));
this.classMatcher = new IncludeExcludeMatcher(
commonRegExps.get("cssClassSelector"), commonRegExps.get("cssClassExclusion"));
this.idMatcher =
new IncludeExcludeMatcher(commonRegExps.get("cssIDSelector"), commonRegExps.get("cssIDExclusion"));
this.pseudoElementMatcher = new IncludeExcludeMatcher(
commonRegExps.get("cssPseudoElementSelector"), commonRegExps.get("cssPseudoElementExclusion"));
this.attributeMatcher = new IncludeExcludeMatcher(
commonRegExps.get("cssAttributeSelector"), commonRegExps.get("cssAttributeExclusion"));
}