Ejemplo n.º 1
0
 /*
  * 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;
   }
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }