1 57 58 package com.sun.org.apache.xerces.internal.parsers; 59 60 import com.sun.org.apache.xerces.internal.impl.dtd.DTDGrammar; 61 import com.sun.org.apache.xerces.internal.util.SymbolTable; 62 63 import com.sun.org.apache.xerces.internal.xni.Augmentations; 64 import com.sun.org.apache.xerces.internal.xni.XMLString; 65 import com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler; 66 import com.sun.org.apache.xerces.internal.xni.XMLDTDHandler; 67 import com.sun.org.apache.xerces.internal.xni.XMLLocator; 68 import com.sun.org.apache.xerces.internal.xni.XNIException; 69 import com.sun.org.apache.xerces.internal.xni.parser.XMLDTDScanner; 70 import com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier; 71 72 75 public abstract class DTDParser 76 extends XMLGrammarParser 77 implements XMLDTDHandler, XMLDTDContentModelHandler { 78 79 83 84 protected XMLDTDScanner fDTDScanner; 85 86 90 95 public DTDParser(SymbolTable symbolTable) { 96 super(symbolTable); 97 } 98 99 103 108 public DTDGrammar getDTDGrammar() { 109 return null; 110 } 112 116 137 public void startEntity(String name, String publicId, String systemId, 138 String encoding) throws XNIException { 139 } 140 141 153 public void textDecl(String version, String encoding) throws XNIException { 154 } 155 156 161 public void startDTD(XMLLocator locator, Augmentations augmentations) 162 throws XNIException { 163 } 164 165 172 public void comment(XMLString text, Augmentations augmentations) throws XNIException { 173 } 175 191 public void processingInstruction(String target, XMLString data, 192 Augmentations augmentations) 193 throws XNIException { 194 } 196 201 public void startExternalSubset(XMLResourceIdentifier identifier, 202 Augmentations augmentations) throws XNIException { 203 } 205 210 public void endExternalSubset(Augmentations augmentations) throws XNIException { 211 } 213 221 public void elementDecl(String name, String contentModel, 222 Augmentations augmentations) 223 throws XNIException { 224 } 226 234 public void startAttlist(String elementName, 235 Augmentations augmentations) throws XNIException { 236 } 238 259 public void attributeDecl(String elementName, String attributeName, 260 String type, String [] enumeration, 261 String defaultType, XMLString defaultValue, 262 XMLString nonNormalizedDefaultValue, Augmentations augmentations) 263 throws XNIException { 264 } 266 271 public void endAttlist(Augmentations augmentations) throws XNIException { 272 } 274 288 public void internalEntityDecl(String name, XMLString text, 289 XMLString nonNormalizedText, 290 Augmentations augmentations) 291 throws XNIException { 292 } 294 306 public void externalEntityDecl(String name, 307 XMLResourceIdentifier identifier, 308 Augmentations augmentations) 309 throws XNIException { 310 } 312 324 public void unparsedEntityDecl(String name, 325 XMLResourceIdentifier identifier, 326 String notation, Augmentations augmentations) 327 throws XNIException { 328 } 330 341 public void notationDecl(String name, XMLResourceIdentifier identifier, 342 Augmentations augmentations) 343 throws XNIException { 344 } 346 357 public void startConditional(short type, Augmentations augmentations) throws XNIException { 358 } 360 365 public void endConditional(Augmentations augmentations) throws XNIException { 366 } 368 373 public void endDTD(Augmentations augmentations) throws XNIException { 374 } 376 389 public void endEntity(String name, Augmentations augmentations) throws XNIException { 390 } 391 392 396 411 public void startContentModel(String elementName, short type) 412 throws XNIException { 413 } 415 430 public void mixedElement(String elementName) throws XNIException { 431 } 433 446 public void childrenStartGroup() throws XNIException { 447 } 449 458 public void childrenElement(String elementName) throws XNIException { 459 } 461 476 public void childrenSeparator(short separator) throws XNIException { 477 } 479 495 public void childrenOccurrence(short occurrence) throws XNIException { 496 } 498 506 public void childrenEndGroup() throws XNIException { 507 } 509 514 public void endContentModel() throws XNIException { 515 } 517 } | Popular Tags |