1 57 58 package com.sun.org.apache.xerces.internal.xni; 59 60 import com.sun.org.apache.xerces.internal.xni.parser.XMLDTDSource; 61 62 74 public interface XMLDTDHandler { 75 76 80 85 public static final short CONDITIONAL_INCLUDE = 0; 86 87 92 public static final short CONDITIONAL_IGNORE = 1; 93 94 98 112 public void startDTD(XMLLocator locator, Augmentations augmentations) 113 throws XNIException; 114 115 130 public void startParameterEntity(String name, 131 XMLResourceIdentifier identifier, 132 String encoding, 133 Augmentations augmentations) throws XNIException; 134 135 149 public void textDecl(String version, String encoding, 150 Augmentations augmentations) throws XNIException; 151 152 162 public void endParameterEntity(String name, Augmentations augmentations) 163 throws XNIException; 164 165 175 public void startExternalSubset(XMLResourceIdentifier identifier, 176 Augmentations augmentations) 177 throws XNIException; 178 179 187 public void endExternalSubset(Augmentations augmentations) 188 throws XNIException; 189 190 199 public void comment(XMLString text, Augmentations augmentations) 200 throws XNIException; 201 202 220 public void processingInstruction(String target, XMLString data, 221 Augmentations augmentations) 222 throws XNIException; 223 224 234 public void elementDecl(String name, String contentModel, 235 Augmentations augmentations) 236 throws XNIException; 237 238 248 public void startAttlist(String elementName, 249 Augmentations augmentations) throws XNIException; 250 251 276 public void attributeDecl(String elementName, String attributeName, 277 String type, String [] enumeration, 278 String defaultType, XMLString defaultValue, 279 XMLString nonNormalizedDefaultValue, Augmentations augmentations) 280 throws XNIException; 281 282 290 public void endAttlist(Augmentations augmentations) throws XNIException; 291 292 308 public void internalEntityDecl(String name, XMLString text, 309 XMLString nonNormalizedText, 310 Augmentations augmentations) 311 throws XNIException; 312 313 326 public void externalEntityDecl(String name, 327 XMLResourceIdentifier identifier, 328 Augmentations augmentations) 329 throws XNIException; 330 331 343 public void unparsedEntityDecl(String name, 344 XMLResourceIdentifier identifier, 345 String notation, Augmentations augmentations) 346 throws XNIException; 347 348 359 public void notationDecl(String name, XMLResourceIdentifier identifier, 360 Augmentations augmentations) throws XNIException; 361 362 375 public void startConditional(short type, Augmentations augmentations) 376 throws XNIException; 377 378 387 public void ignoredCharacters(XMLString text, Augmentations augmentations) 388 throws XNIException; 389 390 398 public void endConditional(Augmentations augmentations) throws XNIException; 399 400 408 public void endDTD(Augmentations augmentations) throws XNIException; 409 410 public void setDTDSource(XMLDTDSource source); 412 413 public XMLDTDSource getDTDSource(); 415 416 } | Popular Tags |