|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.tamino.InoResponseHandler
This is a SAX content handler for an ino:response document.
Field Summary | |
static java.lang.String |
INO_RESPONSE2_URI
The namespace of an INO response document: http://namespaces.softwareag.com/tamino/response2. |
static java.lang.String |
XQL_URI
The namespace of the XQL section in an INO response document: http://metalab.unc.edu/xql/. |
Constructor Summary | |
InoResponseHandler()
Creates a new InoResponseHandler |
Method Summary | |
void |
characters(char[] ch,
int start,
int len)
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
java.util.List |
getInoObjectIdList()
Returns the current list for collection of generated ino:id's. |
org.xml.sax.ContentHandler |
getResultHandler()
Returns a result handler, that was previously set with setResultHandler, or null. |
void |
ignorableWhitespace(char[] ch,
int start,
int len)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator l)
|
void |
setInoObjectIdList(java.util.List pList)
The Tamino response document contains object ID's of inserted or updated objects. |
void |
setResultHandler(org.xml.sax.ContentHandler handler)
Sets the result handler. |
void |
skippedEntity(java.lang.String entity)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attr)
|
void |
startPrefixMapping(java.lang.String namespaceUri,
java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String INO_RESPONSE2_URI
The namespace of an INO response document: http://namespaces.softwareag.com/tamino/response2.
public static final java.lang.String XQL_URI
The namespace of the XQL section in an INO response document: http://metalab.unc.edu/xql/.
Constructor Detail |
public InoResponseHandler()
Method Detail |
public void setDocumentLocator(org.xml.sax.Locator l)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceUri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
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.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String namespaceUri, java.lang.String prefix) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int len) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String entity) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void setResultHandler(org.xml.sax.ContentHandler handler)
Sets the result handler. The result handler is another SAX ContentHandler. For any result document the InoResponseHandler finds, that is, for any subelement of xql:result, a stream of SAX events is generated for the result handler.
If the response document contains more than one result object, then the result handler must be "restartable". In other words, it must be able to process multiple startDocument ... endDocument startDocument ... endDocument sequences.
handler
- The result handler to use or null to disable SAX eventsgetResultHandler()
public org.xml.sax.ContentHandler getResultHandler()
Returns a result handler, that was previously set with setResultHandler, or null.
The result handler is another SAX ContentHandler. For any result document the InoResponseHandler finds, that is, for any subelement of xql:result, a stream of SAX events is generated for the result handler.
If the response document contains more than one result object, then the result handler must be "restartable". In other words, it must be able to process multiple startDocument ... endDocument startDocument ... endDocument sequences.
public void setInoObjectIdList(java.util.List pList)
The Tamino response document contains object ID's of inserted
or updated objects. If you use this method, then the ID's are
collected in the given List. A null value disables ID
collection. The list will be cleared within startDocument
,
so it's safe to reuse the list over multiple uses of the handler.
More precise, the list will contain all occurences of ino:response/ino:object/@ino:id.
pList
- A list where ID's are being collected or null to disable
ID collection.getInoObjectIdList()
public java.util.List getInoObjectIdList()
Returns the current list for collection of generated ino:id's.
setInoObjectIdList(java.util.List)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |