public abstract class XMLChunkHandlerAdapter extends Object implements XMLChunkHandler
Constructor and Description |
---|
XMLChunkHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
protected String |
closePartialXml(String xmlChunk,
QName endElement)
Method appends the endtag to a open xml chunk.
|
protected String |
getXPathSimple(List<QName> currentXPath)
Gets the current xpath location as simpel element string, without namespaces.
|
protected String |
getXPathWithNamespaces(List<QName> currentXPath)
Gets the current xpath as string with namespaces.
|
protected String |
getXPathWithNamespacesAndPrefixes(List<QName> currentXPath)
Gets the current xpath as string with namespaces and prefixes.
|
protected String |
getXPathWithPrefixes(List<QName> currentXPath)
Gets the current xpath as simple string with prefixes.
|
void |
handleChunkAfterChildHandler(List<QName> currentXPath,
QName handlerQName,
String xmlChunk,
QName childQName,
XMLChunkHandler childHandler)
Invoked if the end tag of an element, for which a child handler is registered is reached.
|
void |
handleChunkBeforChildHandler(List<QName> currentXPath,
QName handlerQName,
String xmlChunk,
QName childQName,
XMLChunkHandler childHandler)
Invoked if the start tag of an element, for which a child handler is registered
is reached.
|
void |
handleChunkEnd(List<QName> currentXPath,
QName handlerQName,
String xmlChunk)
Invoked if the end tag of the xml block/chunk is reached.
|
void |
handleChunkStart(List<QName> currentXPath,
QName handlerQName) |
protected String closePartialXml(String xmlChunk, QName endElement)
xmlChunk
- the partialXml.endElement
- the endElement.protected String getXPathSimple(List<QName> currentXPath)
currentXPath
- protected String getXPathWithPrefixes(List<QName> currentXPath)
currentXPath
- protected String getXPathWithNamespacesAndPrefixes(List<QName> currentXPath)
currentXPath
- protected String getXPathWithNamespaces(List<QName> currentXPath)
currentXPath
- public void handleChunkAfterChildHandler(List<QName> currentXPath, QName handlerQName, String xmlChunk, QName childQName, XMLChunkHandler childHandler)
XMLChunkHandler
handleChunkAfterChildHandler
in interface XMLChunkHandler
currentXPath
- Xpath (QName Path) to the current element.handlerQName
- the handlerQName.xmlChunk
- the xmlChunk.childQName
- the childQName.childHandler
- the childHandler.de.conterra.wpos.core.xml.XMLStreamChunkHandler#handleChunkAfterChildHandler(java.util.List,
javax.xml.namespace.QName, java.lang.String, javax.xml.namespace.QName,
de.conterra.wpos.core.xml.XMLStreamChunkHandler)
public void handleChunkBeforChildHandler(List<QName> currentXPath, QName handlerQName, String xmlChunk, QName childQName, XMLChunkHandler childHandler)
XMLChunkHandler
handleChunkBeforChildHandler
in interface XMLChunkHandler
currentXPath
- Xpath (QName Path) to the current element.handlerQName
- the handlerQName.xmlChunk
- the xmlChunk.childQName
- the childQName.childHandler
- the childHandler.de.conterra.wpos.core.xml.XMLStreamChunkHandler#handleChunkBeforChildHandler(java.util.List,
javax.xml.namespace.QName, java.lang.String, javax.xml.namespace.QName,
de.conterra.wpos.core.xml.XMLStreamChunkHandler)
public void handleChunkEnd(List<QName> currentXPath, QName handlerQName, String xmlChunk)
XMLChunkHandler
handleChunkEnd
in interface XMLChunkHandler
currentXPath
- Xpath (QName Path) to the current element.handlerQName
- the handlerQName.xmlChunk
- the partialXml.de.conterra.wpos.core.xml.XMLStreamChunkHandler#handleChunkEnd(java.util.List, javax.xml.namespace.QName,
java.lang.String)
public void handleChunkStart(List<QName> currentXPath, QName handlerQName)
handleChunkStart
in interface XMLChunkHandler
de.conterra.wpos.core.xml.XMLStreamChunkHandler#handleChunkStart(java.util.List, javax.xml.namespace.QName)
Copyright © 2004–2017 52north.org. All rights reserved.