1 16 17 package org.apache.xerces.parsers; 18 19 import org.apache.xerces.impl.dtd.DTDGrammar; 20 import org.apache.xerces.util.SymbolTable; 21 22 import org.apache.xerces.xni.Augmentations; 23 import org.apache.xerces.xni.XMLString; 24 import org.apache.xerces.xni.XMLDTDContentModelHandler; 25 import org.apache.xerces.xni.XMLDTDHandler; 26 import org.apache.xerces.xni.XMLLocator; 27 import org.apache.xerces.xni.XNIException; 28 import org.apache.xerces.xni.parser.XMLDTDScanner; 29 import org.apache.xerces.xni.XMLResourceIdentifier; 30 31 34 public abstract class DTDParser 35 extends XMLGrammarParser 36 implements XMLDTDHandler, XMLDTDContentModelHandler { 37 38 42 43 protected XMLDTDScanner fDTDScanner; 44 45 49 54 public DTDParser(SymbolTable symbolTable) { 55 super(symbolTable); 56 } 57 58 62 67 public DTDGrammar getDTDGrammar() { 68 return null; 69 } 71 75 96 public void startEntity(String name, String publicId, String systemId, 97 String encoding) throws XNIException { 98 } 99 100 112 public void textDecl(String version, String encoding) throws XNIException { 113 } 114 115 120 public void startDTD(XMLLocator locator, Augmentations augmentations) 121 throws XNIException { 122 } 123 124 131 public void comment(XMLString text, Augmentations augmentations) throws XNIException { 132 } 134 150 public void processingInstruction(String target, XMLString data, 151 Augmentations augmentations) 152 throws XNIException { 153 } 155 160 public void startExternalSubset(XMLResourceIdentifier identifier, 161 Augmentations augmentations) throws XNIException { 162 } 164 169 public void endExternalSubset(Augmentations augmentations) throws XNIException { 170 } 172 180 public void elementDecl(String name, String contentModel, 181 Augmentations augmentations) 182 throws XNIException { 183 } 185 193 public void startAttlist(String elementName, 194 Augmentations augmentations) throws XNIException { 195 } 197 218 public void attributeDecl(String elementName, String attributeName, 219 String type, String [] enumeration, 220 String defaultType, XMLString defaultValue, 221 XMLString nonNormalizedDefaultValue, Augmentations augmentations) 222 throws XNIException { 223 } 225 230 public void endAttlist(Augmentations augmentations) throws XNIException { 231 } 233 247 public void internalEntityDecl(String name, XMLString text, 248 XMLString nonNormalizedText, 249 Augmentations augmentations) 250 throws XNIException { 251 } 253 266 public void externalEntityDecl(String name, 267 XMLResourceIdentifier identifier, 268 Augmentations augmentations) 269 throws XNIException { 270 } 272 285 public void unparsedEntityDecl(String name, 286 XMLResourceIdentifier identifier, 287 String notation, Augmentations augmentations) 288 throws XNIException { 289 } 291 302 public void notationDecl(String name, XMLResourceIdentifier identifier, 303 Augmentations augmentations) 304 throws XNIException { 305 } 307 318 public void startConditional(short type, Augmentations augmentations) throws XNIException { 319 } 321 326 public void endConditional(Augmentations augmentations) throws XNIException { 327 } 329 334 public void endDTD(Augmentations augmentations) throws XNIException { 335 } 337 350 public void endEntity(String name, Augmentations augmentations) throws XNIException { 351 } 352 353 357 372 public void startContentModel(String elementName, short type) 373 throws XNIException { 374 } 376 391 public void mixedElement(String elementName) throws XNIException { 392 } 394 407 public void childrenStartGroup() throws XNIException { 408 } 410 419 public void childrenElement(String elementName) throws XNIException { 420 } 422 437 public void childrenSeparator(short separator) throws XNIException { 438 } 440 456 public void childrenOccurrence(short occurrence) throws XNIException { 457 } 459 467 public void childrenEndGroup() throws XNIException { 468 } 470 475 public void endContentModel() throws XNIException { 476 } 478 } | Popular Tags |