|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.xml.XMLChunkHandlerAdapter
public abstract class XMLChunkHandlerAdapter
Implements the XMLPartialStreamHandler interface with empty method stubs, so that subclasses only need to implement methods in which they are interested.
It declares a helper method, which closes the open xml chunk within the *Befor/AfterChild* methods.
Constructor Summary | |
---|---|
XMLChunkHandlerAdapter()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLChunkHandlerAdapter()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |