1 16 17 package org.apache.xerces.xni; 18 19 import org.apache.xerces.xni.parser.XMLDTDSource; 20 21 33 public interface XMLDTDHandler { 34 35 39 44 public static final short CONDITIONAL_INCLUDE = 0; 45 46 51 public static final short CONDITIONAL_IGNORE = 1; 52 53 57 71 public void startDTD(XMLLocator locator, Augmentations augmentations) 72 throws XNIException; 73 74 89 public void startParameterEntity(String name, 90 XMLResourceIdentifier identifier, 91 String encoding, 92 Augmentations augmentations) throws XNIException; 93 94 108 public void textDecl(String version, String encoding, 109 Augmentations augmentations) throws XNIException; 110 111 121 public void endParameterEntity(String name, Augmentations augmentations) 122 throws XNIException; 123 124 134 public void startExternalSubset(XMLResourceIdentifier identifier, 135 Augmentations augmentations) 136 throws XNIException; 137 138 146 public void endExternalSubset(Augmentations augmentations) 147 throws XNIException; 148 149 158 public void comment(XMLString text, Augmentations augmentations) 159 throws XNIException; 160 161 179 public void processingInstruction(String target, XMLString data, 180 Augmentations augmentations) 181 throws XNIException; 182 183 193 public void elementDecl(String name, String contentModel, 194 Augmentations augmentations) 195 throws XNIException; 196 197 207 public void startAttlist(String elementName, 208 Augmentations augmentations) throws XNIException; 209 210 235 public void attributeDecl(String elementName, String attributeName, 236 String type, String [] enumeration, 237 String defaultType, XMLString defaultValue, 238 XMLString nonNormalizedDefaultValue, Augmentations augmentations) 239 throws XNIException; 240 241 249 public void endAttlist(Augmentations augmentations) throws XNIException; 250 251 267 public void internalEntityDecl(String name, XMLString text, 268 XMLString nonNormalizedText, 269 Augmentations augmentations) 270 throws XNIException; 271 272 285 public void externalEntityDecl(String name, 286 XMLResourceIdentifier identifier, 287 Augmentations augmentations) 288 throws XNIException; 289 290 302 public void unparsedEntityDecl(String name, 303 XMLResourceIdentifier identifier, 304 String notation, Augmentations augmentations) 305 throws XNIException; 306 307 318 public void notationDecl(String name, XMLResourceIdentifier identifier, 319 Augmentations augmentations) throws XNIException; 320 321 334 public void startConditional(short type, Augmentations augmentations) 335 throws XNIException; 336 337 346 public void ignoredCharacters(XMLString text, Augmentations augmentations) 347 throws XNIException; 348 349 357 public void endConditional(Augmentations augmentations) throws XNIException; 358 359 367 public void endDTD(Augmentations augmentations) throws XNIException; 368 369 public void setDTDSource(XMLDTDSource source); 371 372 public XMLDTDSource getDTDSource(); 374 375 } | Popular Tags |