public class GenerationHelperContentHandler extends DelegatingContentHandler
Constructor and Description |
---|
GenerationHelperContentHandler(org.xml.sax.ContentHandler handler,
java.lang.String mainNamespace)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
element(org.apache.xmlgraphics.util.QName qName,
org.xml.sax.Attributes atts)
Convenience method to generate an empty element with attributes.
|
void |
element(java.lang.String localName,
org.xml.sax.Attributes atts)
Convenience method to generate an empty element with attributes.
|
void |
endElement(org.apache.xmlgraphics.util.QName qName)
Convenience method to generate a startElement SAX event.
|
void |
endElement(java.lang.String localName)
Convenience method to generate a endElement SAX event.
|
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(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.
|
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.
|
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, warning
public GenerationHelperContentHandler(org.xml.sax.ContentHandler handler, java.lang.String mainNamespace)
handler
- the SAX content handler to delegate all calls tomainNamespace
- the main namespace used for generated XML content when abbreviated
ContentHandler calls are used.public java.lang.String getMainNamespace()
public void setMainNamespace(java.lang.String namespaceURI)
namespaceURI
- the new main namespace URIpublic 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-2010 The Apache Software Foundation. All Rights Reserved.