|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsos.koa.EasyGenerationContentHandlerProxy
This class is an implementation of ContentHandler which acts as a proxy to
another ContentHandler and has the purpose to provide a few handy methods
that make life easier when generating SAX events.
Note: This class is only useful for simple cases with no namespaces.
| Field Summary | |
static org.xml.sax.Attributes |
EMPTY_ATTS
An empty Attributes object used when no attributes are needed. |
private org.xml.sax.ContentHandler |
target
|
| Constructor Summary | |
EasyGenerationContentHandlerProxy(org.xml.sax.ContentHandler forwardTo)
Main constructor. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
characters(java.lang.String s)
Send a String of character data. |
void |
element(java.lang.String name,
java.lang.String value)
Sends notifications for a whole element with some String content. |
void |
element(java.lang.String name,
java.lang.String value,
org.xml.sax.Attributes atts)
Sends notifications for a whole element with some String content. |
void |
endDocument()
|
void |
endElement(java.lang.String name)
Send the notification of the end of an element. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(java.lang.String name)
|
void |
startDocument()
|
void |
startElement(java.lang.String name)
Sends the notification of the beginning of an element. |
void |
startElement(java.lang.String name,
org.xml.sax.Attributes atts)
Sends the notification of the beginning of an element. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final org.xml.sax.Attributes EMPTY_ATTS
private org.xml.sax.ContentHandler target
| Constructor Detail |
public EasyGenerationContentHandlerProxy(org.xml.sax.ContentHandler forwardTo)
forwardTo - ContentHandler to forward the SAX event to.| Method Detail |
public void startElement(java.lang.String name)
throws org.xml.sax.SAXException
name - Name for the element.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
public void startElement(java.lang.String name,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
name - Name for the element.atts - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
public void characters(java.lang.String s)
throws org.xml.sax.SAXException
s - The content String
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
public void endElement(java.lang.String name)
throws org.xml.sax.SAXException
name - Name for the element.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
public void element(java.lang.String name,
java.lang.String value)
throws org.xml.sax.SAXException
name - Name for the element.value - Content of the element.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
public void element(java.lang.String name,
java.lang.String value,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
name - Name for the element.value - Content of the element.atts - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerContentHandler.setDocumentLocator(Locator)
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.startDocument()
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.endDocument()
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.startPrefixMapping(String, String)
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.endPrefixMapping(String)
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.startElement(String, String, String, Attributes)
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.endElement(String, String, String)
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.ignorableWhitespace(char[], int, int)
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.processingInstruction(String, String)
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionContentHandler.skippedEntity(String)
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||