1 18 package org.apache.batik.css.engine.sac; 19 20 import org.w3c.css.sac.AttributeCondition; 21 22 29 public abstract class AbstractAttributeCondition 30 implements AttributeCondition, 31 ExtendedCondition { 32 33 36 protected String value; 37 38 41 protected AbstractAttributeCondition(String value) { 42 this.value = value; 43 } 44 45 49 public boolean equals(Object obj) { 50 if (obj == null || !(obj.getClass() != getClass())) { 51 return false; 52 } 53 AbstractAttributeCondition c = (AbstractAttributeCondition)obj; 54 return c.value.equals(value); 55 } 56 57 60 public int getSpecificity() { 61 return 1 << 8; 62 } 63 64 68 public String getValue() { 69 return value; 70 } 71 } 72 | Popular Tags |