1 16 19 package com.sun.org.apache.xml.internal.serializer; 20 21 import javax.xml.transform.SourceLocator ; 22 23 import org.xml.sax.SAXException ; 24 25 44 public interface ExtendedContentHandler extends org.xml.sax.ContentHandler 45 { 46 55 public void addAttribute( 56 String uri, 57 String localName, 58 String rawName, 59 String type, 60 String value) 61 throws SAXException ; 62 67 public void addAttributes(org.xml.sax.Attributes atts) 68 throws org.xml.sax.SAXException ; 69 76 public void addAttribute(String qName, String value); 77 78 84 public void characters(String chars) throws SAXException ; 85 97 public void endElement(String elemName) throws SAXException ; 98 99 112 public void startElement(String uri, String localName, String qName) 113 throws org.xml.sax.SAXException ; 114 115 120 public void startElement(String qName) throws SAXException ; 121 139 public void namespaceAfterStartElement(String uri, String prefix) 140 throws SAXException ; 141 142 155 public boolean startPrefixMapping( 156 String prefix, 157 String uri, 158 boolean shouldFlush) 159 throws SAXException ; 160 165 public void entityReference(String entityName) throws SAXException ; 166 167 174 public NamespaceMappings getNamespaceMappings(); 175 181 public String getPrefix(String uri); 182 191 public String getNamespaceURI(String name, boolean isElement); 192 198 public String getNamespaceURIFromPrefix(String prefix); 199 200 205 public void setSourceLocator(SourceLocator locator); 206 207 209 public static final int NO_BAD_CHARS = 0x1; 212 213 public static final int HTML_ATTREMPTY = 0x2; 215 216 public static final int HTML_ATTRURL = 0x4; 218 219 230 public void addUniqueAttribute(String qName, String value, int flags) 231 throws SAXException ; 232 } 233 | Popular Tags |