1 18 package org.apache.batik.css.parser; 19 20 21 28 public class DefaultAttributeCondition extends AbstractAttributeCondition { 29 30 33 protected String localName; 34 35 38 protected String namespaceURI; 39 40 43 protected boolean specified; 44 45 48 public DefaultAttributeCondition(String localName, 49 String namespaceURI, 50 boolean specified, 51 String value) { 52 super(value); 53 this.localName = localName; 54 this.namespaceURI = namespaceURI; 55 this.specified = specified; 56 } 57 58 62 public short getConditionType() { 63 return SAC_ATTRIBUTE_CONDITION; 64 } 65 66 70 public String getNamespaceURI() { 71 return namespaceURI; 72 } 73 74 78 public String getLocalName() { 79 return localName; 80 } 81 82 86 public boolean getSpecified() { 87 return specified; 88 } 89 90 93 public String toString() { 94 if (value == null) { 95 return "[" + localName + "]"; 96 } 97 return "[" + localName + "=\"" + value + "\"]"; 98 } 99 } 100 | Popular Tags |