org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.LexicalHandlerpublic class GenerationHelperContentHandler extends DelegatingContentHandler
| Constructor | Description |
|---|---|
GenerationHelperContentHandler(org.xml.sax.ContentHandler handler,
java.lang.String mainNamespace,
java.lang.Object contentHandlerContext) |
Main constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
element(java.lang.String localName,
org.xml.sax.Attributes atts) |
Convenience method to generate an empty element with attributes.
|
void |
element(org.apache.xmlgraphics.util.QName qName,
org.xml.sax.Attributes atts) |
Convenience method to generate an empty element with attributes.
|
void |
endElement(java.lang.String localName) |
Convenience method to generate a endElement SAX event.
|
void |
endElement(org.apache.xmlgraphics.util.QName qName) |
Convenience method to generate a startElement SAX event.
|
java.lang.Object |
getContentHandlerContext() |
Returns the context object (may be null).
|
java.lang.String |
getMainNamespace() |
Returns the main namespace used for generated XML content.
|
void |
setMainNamespace(java.lang.String namespaceURI) |
Sets the main namespace used for generated XML content when abbreviated ContentHandler
calls are used.
|
void |
startElement(java.lang.String localName) |
Convenience method to generate a startElement SAX event.
|
void |
startElement(java.lang.String localName,
org.xml.sax.Attributes atts) |
Convenience method to generate a startElement SAX event.
|
void |
startElement(org.apache.xmlgraphics.util.QName qName) |
Convenience method to generate a startElement SAX event.
|
void |
startElement(org.apache.xmlgraphics.util.QName qName,
org.xml.sax.Attributes atts) |
Convenience method to generate a startElement SAX event.
|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, error, fatalError, getDelegateContentHandler, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDelegateContentHandler, setDelegateDTDHandler, setDelegateEntityResolver, setDelegateErrorHandler, setDelegateLexicalHandler, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl, warningpublic GenerationHelperContentHandler(org.xml.sax.ContentHandler handler,
java.lang.String mainNamespace,
java.lang.Object contentHandlerContext)
handler - the SAX content handler to delegate all calls tomainNamespace - the main namespace used for generated XML content when abbreviated
ContentHandler calls are used.contentHandlerContext - additional content handler context statepublic java.lang.String getMainNamespace()
public void setMainNamespace(java.lang.String namespaceURI)
namespaceURI - the new main namespace URIpublic java.lang.Object getContentHandlerContext()
public void startElement(java.lang.String localName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
localName - the local name of the elementatts - the attributesorg.xml.sax.SAXException - if a SAX exception occurspublic void startElement(java.lang.String localName)
throws org.xml.sax.SAXException
localName - the local name of the elementorg.xml.sax.SAXException - if a SAX exception occurspublic void startElement(org.apache.xmlgraphics.util.QName qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
qName - the qualified name of the elementatts - the attributesorg.xml.sax.SAXException - if a SAX exception occurspublic void startElement(org.apache.xmlgraphics.util.QName qName)
throws org.xml.sax.SAXException
qName - the qualified name of the elementorg.xml.sax.SAXException - if a SAX exception occurspublic void endElement(java.lang.String localName)
throws org.xml.sax.SAXException
localName - the local name of the elementorg.xml.sax.SAXException - if a SAX exception occurspublic void endElement(org.apache.xmlgraphics.util.QName qName)
throws org.xml.sax.SAXException
qName - the qualified name of the elementorg.xml.sax.SAXException - if a SAX exception occurspublic void element(java.lang.String localName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
localName - the local name of the elementatts - the attributesorg.xml.sax.SAXException - if a SAX exception occurspublic void element(org.apache.xmlgraphics.util.QName qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
qName - the qualified name of the elementatts - the attributesorg.xml.sax.SAXException - if a SAX exception occursCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.