1 16 17 package org.apache.xerces.impl.xs.opti; 18 19 import org.apache.xerces.xni.QName; 20 import org.apache.xerces.xni.XMLString; 21 import org.apache.xerces.xni.NamespaceContext; 22 import org.apache.xerces.xni.XMLLocator; 23 import org.apache.xerces.xni.Augmentations; 24 import org.apache.xerces.xni.XMLAttributes; 25 import org.apache.xerces.xni.XMLDTDHandler; 26 import org.apache.xerces.xni.XMLDocumentHandler; 27 import org.apache.xerces.xni.XMLDTDContentModelHandler; 28 import org.apache.xerces.xni.XMLResourceIdentifier; 29 import org.apache.xerces.xni.parser.XMLDocumentSource; 30 import org.apache.xerces.xni.parser.XMLDTDSource; 31 import org.apache.xerces.xni.parser.XMLDTDContentModelSource; 32 33 import org.apache.xerces.xni.XNIException; 34 35 43 public class DefaultXMLDocumentHandler implements XMLDocumentHandler, 44 XMLDTDHandler, 45 XMLDTDContentModelHandler { 46 47 48 public DefaultXMLDocumentHandler() { 49 } 50 51 55 73 public void startDocument(XMLLocator locator, String encoding, 74 NamespaceContext context, Augmentations augs) 75 throws XNIException { 76 } 77 78 92 public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) 93 throws XNIException { 94 } 95 96 110 public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) 111 throws XNIException { 112 } 113 114 123 public void comment(XMLString text, Augmentations augs) throws XNIException { 124 } 125 126 144 public void processingInstruction(String target, XMLString data, Augmentations augs) 145 throws XNIException { 146 } 147 148 159 public void startPrefixMapping(String prefix, String uri, Augmentations augs) 160 throws XNIException { 161 } 162 163 173 public void startElement(QName element, XMLAttributes attributes, Augmentations augs) 174 throws XNIException { 175 } 176 177 187 public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) 188 throws XNIException { 189 } 190 191 208 public void startGeneralEntity(String name, 209 XMLResourceIdentifier identifier, 210 String encoding, 211 Augmentations augs) throws XNIException { 212 } 213 214 232 public void textDecl(String version, String encoding, Augmentations augs) throws XNIException { 233 } 234 235 247 public void endGeneralEntity(String name, Augmentations augs) throws XNIException { 248 } 249 250 259 public void characters(XMLString text, Augmentations augs) throws XNIException { 260 } 261 262 276 public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException { 277 } 278 279 288 public void endElement(QName element, Augmentations augs) throws XNIException { 289 } 290 291 301 public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException { 302 } 303 304 312 public void startCDATA(Augmentations augs) throws XNIException { 313 } 314 315 323 public void endCDATA(Augmentations augs) throws XNIException { 324 } 325 326 334 public void endDocument(Augmentations augs) throws XNIException { 335 } 336 337 338 342 356 public void startDTD(XMLLocator locator, Augmentations augmentations) 357 throws XNIException { 358 } 359 360 375 public void startParameterEntity(String name, 376 XMLResourceIdentifier identifier, 377 String encoding, 378 Augmentations augmentations) throws XNIException { 379 } 380 381 395 400 401 411 public void endParameterEntity(String name, Augmentations augmentations) 412 throws XNIException { 413 } 414 415 425 public void startExternalSubset(XMLResourceIdentifier identifier, 426 Augmentations augmentations) 427 throws XNIException { 428 } 429 430 438 public void endExternalSubset(Augmentations augmentations) 439 throws XNIException { 440 } 441 442 451 456 457 475 481 482 483 493 public void elementDecl(String name, String contentModel, 494 Augmentations augmentations) 495 throws XNIException { 496 } 497 498 508 public void startAttlist(String elementName, 509 Augmentations augmentations) throws XNIException { 510 } 511 512 537 public void attributeDecl(String elementName, String attributeName, 538 String type, String [] enumeration, 539 String defaultType, XMLString defaultValue, 540 XMLString nonNormalizedDefaultValue, Augmentations augmentations) 541 throws XNIException { 542 } 543 544 552 public void endAttlist(Augmentations augmentations) throws XNIException { 553 } 554 555 571 public void internalEntityDecl(String name, XMLString text, 572 XMLString nonNormalizedText, 573 Augmentations augmentations) 574 throws XNIException { 575 } 576 577 590 public void externalEntityDecl(String name, 591 XMLResourceIdentifier identifier, 592 Augmentations augmentations) 593 throws XNIException { 594 } 595 596 608 public void unparsedEntityDecl(String name, 609 XMLResourceIdentifier identifier, 610 String notation, Augmentations augmentations) 611 throws XNIException { 612 } 613 614 625 public void notationDecl(String name, XMLResourceIdentifier identifier, 626 Augmentations augmentations) throws XNIException { 627 } 628 629 642 public void startConditional(short type, Augmentations augmentations) 643 throws XNIException { 644 } 645 646 655 public void ignoredCharacters(XMLString text, Augmentations augmentations) 656 throws XNIException { 657 } 658 659 667 public void endConditional(Augmentations augmentations) throws XNIException { 668 } 669 670 678 public void endDTD(Augmentations augmentations) throws XNIException { 679 } 680 681 682 686 697 public void startContentModel(String elementName, Augmentations augmentations) 698 throws XNIException { 699 } 700 701 712 public void any(Augmentations augmentations) throws XNIException { 713 } 714 715 726 public void empty(Augmentations augmentations) throws XNIException { 727 } 728 729 743 public void startGroup(Augmentations augmentations) throws XNIException { 744 } 745 746 758 public void pcdata(Augmentations augmentations) throws XNIException { 759 } 760 761 770 public void element(String elementName, Augmentations augmentations) 771 throws XNIException { 772 } 773 774 787 public void separator(short separator, Augmentations augmentations) 788 throws XNIException { 789 } 790 791 806 public void occurrence(short occurrence, Augmentations augmentations) 807 throws XNIException { 808 } 809 810 818 public void endGroup(Augmentations augmentations) throws XNIException { 819 } 820 821 829 public void endContentModel(Augmentations augmentations) throws XNIException { 830 } 831 832 private XMLDocumentSource fDocumentSource; 833 834 835 public void setDocumentSource(XMLDocumentSource source) { 836 fDocumentSource = source; 837 } 838 839 840 public XMLDocumentSource getDocumentSource() { 841 return fDocumentSource; 842 } 843 844 private XMLDTDSource fDTDSource; 845 846 public void setDTDSource(XMLDTDSource source) { 848 fDTDSource = source; 849 } 850 851 public XMLDTDSource getDTDSource() { 853 return fDTDSource; 854 } 855 856 private XMLDTDContentModelSource fCMSource; 857 858 public void setDTDContentModelSource(XMLDTDContentModelSource source) { 860 fCMSource = source; 861 } 862 863 public XMLDTDContentModelSource getDTDContentModelSource() { 865 return fCMSource; 866 } 867 868 } | Popular Tags |