1 18 package org.apache.batik.css.engine.sac; 19 20 import org.w3c.dom.Element ; 21 22 28 public class CSSPseudoElementSelector extends AbstractElementSelector { 29 30 33 public CSSPseudoElementSelector(String uri, String name) { 34 super(uri, name); 35 } 36 37 41 public short getSelectorType() { 42 return SAC_PSEUDO_ELEMENT_SELECTOR; 43 } 44 45 48 public boolean match(Element e, String pseudoE) { 49 return getLocalName().equalsIgnoreCase(pseudoE); 50 } 51 52 55 public int getSpecificity() { 56 return 0; 57 } 58 59 62 public String toString() { 63 return ":" + getLocalName(); 64 } 65 } 66 | Popular Tags |