1 18 19 20 package org.apache.tomcat.util.digester; 21 22 23 import org.xml.sax.Attributes ; 24 25 26 30 31 public abstract class Rule { 32 33 34 36 37 43 public Rule(Digester digester) { 44 45 super(); 46 setDigester(digester); 47 48 } 49 50 54 public Rule() {} 55 56 57 59 60 63 protected Digester digester = null; 64 65 66 69 protected String namespaceURI = null; 70 71 72 74 75 78 public Digester getDigester() { 79 80 return (this.digester); 81 82 } 83 84 87 public void setDigester(Digester digester) { 88 89 this.digester = digester; 90 91 } 92 93 96 public String getNamespaceURI() { 97 98 return (this.namespaceURI); 99 100 } 101 102 103 109 public void setNamespaceURI(String namespaceURI) { 110 111 this.namespaceURI = namespaceURI; 112 113 } 114 115 116 118 119 128 public void begin(Attributes attributes) throws Exception { 129 130 ; 132 } 133 134 135 150 public void begin(String namespace, String name, Attributes attributes) 151 throws Exception { 152 153 begin(attributes); 154 155 } 156 157 158 168 public void body(String text) throws Exception { 169 170 ; 172 } 173 174 175 190 public void body(String namespace, String name, String text) 191 throws Exception { 192 193 body(text); 194 195 } 196 197 198 205 public void end() throws Exception { 206 207 ; 209 } 210 211 212 226 public void end(String namespace, String name) 227 throws Exception { 228 229 end(); 230 231 } 232 233 234 238 public void finish() throws Exception { 239 240 ; 242 } 243 244 245 } 246 | Popular Tags |