1 17 18 19 package org.apache.commons.digester; 20 21 22 import org.xml.sax.Attributes ; 23 24 25 29 30 public abstract class Rule { 31 32 33 35 36 42 public Rule(Digester digester) { 43 44 super(); 45 setDigester(digester); 46 47 } 48 49 53 public Rule() {} 54 55 56 58 59 62 protected Digester digester = null; 63 64 65 68 protected String namespaceURI = null; 69 70 71 73 74 77 public Digester getDigester() { 78 79 return (this.digester); 80 81 } 82 83 86 public void setDigester(Digester digester) { 87 88 this.digester = digester; 89 90 } 91 92 95 public String getNamespaceURI() { 96 97 return (this.namespaceURI); 98 99 } 100 101 102 108 public void setNamespaceURI(String namespaceURI) { 109 110 this.namespaceURI = namespaceURI; 111 112 } 113 114 115 117 118 127 public void begin(Attributes attributes) throws Exception { 128 129 ; 131 } 132 133 134 149 public void begin(String namespace, String name, Attributes attributes) 150 throws Exception { 151 152 begin(attributes); 153 154 } 155 156 157 167 public void body(String text) throws Exception { 168 169 ; 171 } 172 173 174 191 public void body(String namespace, String name, String text) 192 throws Exception { 193 194 body(text); 195 196 } 197 198 199 206 public void end() throws Exception { 207 208 ; 210 } 211 212 213 227 public void end(String namespace, String name) 228 throws Exception { 229 230 end(); 231 232 } 233 234 235 239 public void finish() throws Exception { 240 241 ; 243 } 244 245 246 } 247 | Popular Tags |