|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--com.devsphere.xml.taglib.output.builder.Handler
This class extends org.xml.sax.helpers.DefaultHandler
to generate JSP code that outputs XML.
An instance of this class is created by a Main object.
| Constructor Summary | |
Handler(Parameters params,
Outputter out)
Initializes the handler. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Generates JSP code that outputs some character data. |
void |
endDocument()
Generates JSP code that ends the XML producing. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName)
Generates JSP code that outputs an end tag. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Generates JSP code that outputs a processing instruction. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Does nothing. |
void |
startDocument()
Generates the JSP header and JSP code that outputs an XML header. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
Generates JSP code that outputs a start tag. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Handler(Parameters params,
Outputter out)
params - the command line parametersout - the object used to output the generated code| Method Detail |
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerlocator - the SAX Locator object
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException - to signal any error that might occur
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException - to signal any error that might occur
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the element's namespace URIlocalName - the element's local namequalifiedName - the element's qualified nameattributes - the element's attributes
org.xml.sax.SAXException - to signal any error that might occur
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the element's namespace URIlocalName - the element's local namequalifiedName - the element's qualified name
org.xml.sax.SAXException - to signal any error that might occur
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerch - the characters from the XML documentstart - the start position in the arraylength - the number of characters to get from the array
org.xml.sax.SAXException - to signal any error that might occur
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlertarget - the target of the processing instruction.data - the data of the processing instruction.
org.xml.sax.SAXException - to signal any error that might occur
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||