1 57 58 package com.sun.org.apache.xerces.internal.impl.xs.opti; 59 60 import com.sun.org.apache.xerces.internal.xni.QName; 61 import com.sun.org.apache.xerces.internal.xni.XMLString; 62 import com.sun.org.apache.xerces.internal.xni.NamespaceContext; 63 import com.sun.org.apache.xerces.internal.xni.XMLLocator; 64 import com.sun.org.apache.xerces.internal.xni.Augmentations; 65 import com.sun.org.apache.xerces.internal.xni.XMLAttributes; 66 import com.sun.org.apache.xerces.internal.xni.XMLDTDHandler; 67 import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler; 68 import com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler; 69 import com.sun.org.apache.xerces.internal.xni.XMLResourceIdentifier; 70 import com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource; 71 import com.sun.org.apache.xerces.internal.xni.parser.XMLDTDSource; 72 import com.sun.org.apache.xerces.internal.xni.parser.XMLDTDContentModelSource; 73 74 import com.sun.org.apache.xerces.internal.xni.XNIException; 75 76 82 public class DefaultXMLDocumentHandler implements XMLDocumentHandler, 83 XMLDTDHandler, 84 XMLDTDContentModelHandler { 85 86 87 public DefaultXMLDocumentHandler() { 88 } 89 90 94 112 public void startDocument(XMLLocator locator, String encoding, 113 NamespaceContext context, Augmentations augs) 114 throws XNIException { 115 } 116 117 131 public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) 132 throws XNIException { 133 } 134 135 149 public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) 150 throws XNIException { 151 } 152 153 162 public void comment(XMLString text, Augmentations augs) throws XNIException { 163 } 164 165 183 public void processingInstruction(String target, XMLString data, Augmentations augs) 184 throws XNIException { 185 } 186 187 198 public void startPrefixMapping(String prefix, String uri, Augmentations augs) 199 throws XNIException { 200 } 201 202 212 public void startElement(QName element, XMLAttributes attributes, Augmentations augs) 213 throws XNIException { 214 } 215 216 226 public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) 227 throws XNIException { 228 } 229 230 247 public void startGeneralEntity(String name, 248 XMLResourceIdentifier identifier, 249 String encoding, 250 Augmentations augs) throws XNIException { 251 } 252 253 271 public void textDecl(String version, String encoding, Augmentations augs) throws XNIException { 272 } 273 274 286 public void endGeneralEntity(String name, Augmentations augs) throws XNIException { 287 } 288 289 298 public void characters(XMLString text, Augmentations augs) throws XNIException { 299 } 300 301 315 public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException { 316 } 317 318 327 public void endElement(QName element, Augmentations augs) throws XNIException { 328 } 329 330 340 public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException { 341 } 342 343 351 public void startCDATA(Augmentations augs) throws XNIException { 352 } 353 354 362 public void endCDATA(Augmentations augs) throws XNIException { 363 } 364 365 373 public void endDocument(Augmentations augs) throws XNIException { 374 } 375 376 377 381 395 public void startDTD(XMLLocator locator, Augmentations augmentations) 396 throws XNIException { 397 } 398 399 414 public void startParameterEntity(String name, 415 XMLResourceIdentifier identifier, 416 String encoding, 417 Augmentations augmentations) throws XNIException { 418 } 419 420 434 439 440 450 public void endParameterEntity(String name, Augmentations augmentations) 451 throws XNIException { 452 } 453 454 464 public void startExternalSubset(XMLResourceIdentifier ri, 465 Augmentations augmentations) 466 throws XNIException { 467 } 468 469 477 public void endExternalSubset(Augmentations augmentations) 478 throws XNIException { 479 } 480 481 490 495 496 514 520 521 522 532 public void elementDecl(String name, String contentModel, 533 Augmentations augmentations) 534 throws XNIException { 535 } 536 537 547 public void startAttlist(String elementName, 548 Augmentations augmentations) throws XNIException { 549 } 550 551 576 public void attributeDecl(String elementName, String attributeName, 577 String type, String [] enumeration, 578 String defaultType, XMLString defaultValue, 579 XMLString nonNormalizedDefaultValue, Augmentations augmentations) 580 throws XNIException { 581 } 582 583 591 public void endAttlist(Augmentations augmentations) throws XNIException { 592 } 593 594 610 public void internalEntityDecl(String name, XMLString text, 611 XMLString nonNormalizedText, 612 Augmentations augmentations) 613 throws XNIException { 614 } 615 616 629 public void externalEntityDecl(String name, 630 XMLResourceIdentifier identifier, 631 Augmentations augmentations) 632 throws XNIException { 633 } 634 635 647 public void unparsedEntityDecl(String name, 648 XMLResourceIdentifier identifier, 649 String notation, Augmentations augmentations) 650 throws XNIException { 651 } 652 653 664 public void notationDecl(String name, XMLResourceIdentifier identifier, 665 Augmentations augmentations) throws XNIException { 666 } 667 668 681 public void startConditional(short type, Augmentations augmentations) 682 throws XNIException { 683 } 684 685 694 public void ignoredCharacters(XMLString text, Augmentations augmentations) 695 throws XNIException { 696 } 697 698 706 public void endConditional(Augmentations augmentations) throws XNIException { 707 } 708 709 717 public void endDTD(Augmentations augmentations) throws XNIException { 718 } 719 720 721 725 736 public void startContentModel(String elementName, Augmentations augmentations) 737 throws XNIException { 738 } 739 740 751 public void any(Augmentations augmentations) throws XNIException { 752 } 753 754 765 public void empty(Augmentations augmentations) throws XNIException { 766 } 767 768 782 public void startGroup(Augmentations augmentations) throws XNIException { 783 } 784 785 797 public void pcdata(Augmentations augmentations) throws XNIException { 798 } 799 800 809 public void element(String elementName, Augmentations augmentations) 810 throws XNIException { 811 } 812 813 826 public void separator(short separator, Augmentations augmentations) 827 throws XNIException { 828 } 829 830 845 public void occurrence(short occurrence, Augmentations augmentations) 846 throws XNIException { 847 } 848 849 857 public void endGroup(Augmentations augmentations) throws XNIException { 858 } 859 860 868 public void endContentModel(Augmentations augmentations) throws XNIException { 869 } 870 871 private XMLDocumentSource fDocumentSource; 872 873 874 public void setDocumentSource(XMLDocumentSource source) { 875 fDocumentSource = source; 876 } 877 878 879 public XMLDocumentSource getDocumentSource() { 880 return fDocumentSource; 881 } 882 883 private XMLDTDSource fDTDSource; 884 885 public void setDTDSource(XMLDTDSource source) { 887 fDTDSource = source; 888 } 889 890 public XMLDTDSource getDTDSource() { 892 return fDTDSource; 893 } 894 895 private XMLDTDContentModelSource fCMSource; 896 897 public void setDTDContentModelSource(XMLDTDContentModelSource source) { 899 fCMSource = source; 900 } 901 902 public XMLDTDContentModelSource getDTDContentModelSource() { 904 return fCMSource; 905 } 906 907 } 908 909 | Popular Tags |