|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.util.DelegatingContentHandler
org.apache.fop.util.GenerationHelperContentHandler
public class GenerationHelperContentHandler
This class is a delegating SAX ContentHandler which has the purpose to provide a few handy methods that make life easier when generating SAX events.
| Constructor Summary | |
|---|---|
GenerationHelperContentHandler(org.xml.sax.ContentHandler handler,
java.lang.String mainNamespace)
Main constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.lang.String getMainNamespace()
public void setMainNamespace(java.lang.String namespaceURI)
namespaceURI - the new main namespace URI
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 attributes
org.xml.sax.SAXException - if a SAX exception occurs
public void startElement(java.lang.String localName)
throws org.xml.sax.SAXException
localName - the local name of the element
org.xml.sax.SAXException - if a SAX exception occurs
public 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 attributes
org.xml.sax.SAXException - if a SAX exception occurs
public void startElement(org.apache.xmlgraphics.util.QName qName)
throws org.xml.sax.SAXException
qName - the qualified name of the element
org.xml.sax.SAXException - if a SAX exception occurs
public void endElement(java.lang.String localName)
throws org.xml.sax.SAXException
localName - the local name of the element
org.xml.sax.SAXException - if a SAX exception occurs
public void endElement(org.apache.xmlgraphics.util.QName qName)
throws org.xml.sax.SAXException
qName - the qualified name of the element
org.xml.sax.SAXException - if a SAX exception occurs
public void element(java.lang.String localName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
localName - the local name of the elementatts - the attributes
org.xml.sax.SAXException - if a SAX exception occurs
public 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 attributes
org.xml.sax.SAXException - if a SAX exception occurs
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||