/* * public boolean isDynamic() { * return (_pc != 0); * } */ public void setPseudoElement(String pseudoElement) { if (_pe != null) { addUnsupportedCondition(); XRLog.match(Level.WARNING, "Trying to set more than one pseudo-element"); } else { _specificityD++; _pe = pseudoElement; } }
/** * Adds a feature to the Condition attribute of the Selector object * * @param c The feature to be added to the Condition attribute */ private void addCondition(Condition c) { if (conditions == null) { conditions = new java.util.ArrayList(); } if (_pe != null) { conditions.add(Condition.createUnsupportedCondition()); XRLog.match(Level.WARNING, "Trying to append conditions to pseudoElement " + _pe); } conditions.add(c); }