1 57 58 package org.enhydra.apache.xerces.framework; 59 60 import org.enhydra.apache.xerces.utils.QName; 61 62 76 77 public interface XMLDocumentHandler { 78 79 87 public void startDocument() throws Exception ; 88 89 94 public void endDocument() throws Exception ; 95 96 104 public void xmlDecl(int version, int encoding, int standalone) throws Exception ; 105 106 111 public void textDecl(int version, int encoding) throws Exception ; 112 113 120 public void startNamespaceDeclScope(int prefix, int uri) throws Exception ; 121 122 128 public void endNamespaceDeclScope(int prefix) throws Exception ; 129 130 138 public void startElement(QName element, 139 XMLAttrList attrList, int attrListHandle) throws Exception ; 140 141 147 public void endElement(QName element) throws Exception ; 148 149 160 public void startEntityReference(int entityName, int entityType, int entityContext) throws Exception ; 161 162 173 public void endEntityReference(int entityName, int entityType, int entityContext) throws Exception ; 174 175 182 public void processingInstruction(int target, int data) throws Exception ; 183 184 190 public void comment(int comment) throws Exception ; 191 192 198 public void characters(int data) throws Exception ; 199 200 208 public void characters(char ch[], int start, int length) throws Exception ; 209 210 216 public void ignorableWhitespace(int data) throws Exception ; 217 218 226 public void ignorableWhitespace(char ch[], int start, int length) throws Exception ; 227 228 234 public void startCDATA() throws Exception ; 235 236 242 public void endCDATA() throws Exception ; 243 244 public interface DTDHandler { 248 258 public void startDTD(QName rootElement, int publicId, int systemId) throws Exception ; 259 260 264 public void internalSubset(int internalSubset) throws Exception ; 265 266 271 public void textDecl(int version, int encoding) throws Exception ; 272 273 277 public void endDTD() throws Exception ; 278 279 287 public void elementDecl(QName elementDecl, 288 int contentSpecType, 289 int contentSpecIndex, 290 XMLContentSpec.Provider contentSpecProvider) throws Exception ; 291 292 305 public void attlistDecl(QName elementDecl, QName attributeDecl, 306 int attType, boolean attList, 307 String enumString, 308 int attDefaultType, 309 int attDefaultValue) throws Exception ; 310 311 318 public void internalPEDecl(int entityName, int entityValue) throws Exception ; 319 320 328 public void externalPEDecl(int entityName, int publicId, int systemId) throws Exception ; 329 330 337 public void internalEntityDecl(int entityName, int entityValue) throws Exception ; 338 339 347 public void externalEntityDecl(int entityName, int publicId, int systemId) throws Exception ; 348 349 358 public void unparsedEntityDecl(int entityName, int publicId, int systemId, int notationName) throws Exception ; 359 360 368 public void notationDecl(int notationName, int publicId, int systemId) throws Exception ; 369 370 377 public void processingInstruction(int targetIndex, int dataIndex) throws Exception ; 378 379 385 public void comment(int dataIndex) throws Exception ; 386 } 387 } 388 | Popular Tags |