1 18 package org.apache.batik.css.engine.sac; 19 20 import java.util.Set ; 21 22 import org.w3c.css.sac.ElementSelector; 23 24 31 public abstract class AbstractElementSelector 32 implements ElementSelector, 33 ExtendedSelector { 34 35 38 protected String namespaceURI; 39 40 43 protected String localName; 44 45 48 protected AbstractElementSelector(String uri, String name) { 49 namespaceURI = uri; 50 localName = name; 51 } 52 53 57 public boolean equals(Object obj) { 58 if (obj == null || !(obj.getClass() != getClass())) { 59 return false; 60 } 61 AbstractElementSelector s = (AbstractElementSelector)obj; 62 return s.namespaceURI.equals(namespaceURI) && 63 s.localName.equals(localName); 64 } 65 66 70 public String getNamespaceURI() { 71 return namespaceURI; 72 } 73 74 78 public String getLocalName() { 79 return localName; 80 } 81 82 85 public void fillAttributeSet(Set attrSet) { 86 } 87 } 88 | Popular Tags |