1 18 package org.apache.batik.css.engine.sac; 19 20 import org.w3c.dom.Element ; 21 22 29 public class CSSBeginHyphenAttributeCondition 30 extends CSSAttributeCondition { 31 32 35 public CSSBeginHyphenAttributeCondition(String localName, 36 String namespaceURI, 37 boolean specified, 38 String value) { 39 super(localName, namespaceURI, specified, value); 40 } 41 42 46 public short getConditionType() { 47 return SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION; 48 } 49 50 53 public boolean match(Element e, String pseudoE) { 54 return e.getAttribute(getLocalName()).startsWith(getValue()); 55 } 56 57 60 public String toString() { 61 return "[" + getLocalName() + "|=\"" + getValue() + "\"]"; 62 } 63 } 64 | Popular Tags |