org.n52.security.common.xml
Interface XMLChunkHandler

All Known Implementing Classes:
XMLChunkHandlerAdapter

public interface XMLChunkHandler

Processes XML chunks.

XML chunks are valid XML documents which were part of an greater XML document.

The interface is directly related to a XMLChunkReader, which reads an big xml document and calls an XMLChunkHandler to process some of it's parts. A XMLChunkHandler can parse the chunk with an DOMParser or an other XMLprocessing tool.

If an XMLChunkHandler is responsible for a special xml element and within it's scope other XMLChunkHandlers are registered, then the handler is informed about the processing of the childs through the *Child* methods.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 18.04.2008

Method Summary
 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)
           
 

Method Detail

handleChunkStart

void handleChunkStart(List<QName> currentXPath,
                      QName handlerQName)

handleChunkEnd

void handleChunkEnd(List<QName> currentXPath,
                    QName handlerQName,
                    String xmlChunk)
Invoked if the end tag of the xml block/chunk is reached.

Parameters:
currentXPath - Xpath (QName Path) to the current element.
handlerQName - the handlerQName.
xmlChunk - the partialXml.

handleChunkBeforChildHandler

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. The xmlChunk is not well formed, because the end tag is not closed.

Parameters:
currentXPath - Xpath (QName Path) to the current element.
handlerQName - the handlerQName.
xmlChunk - the xmlChunk.
childQName - the childQName.
childHandler - the childHandler.

handleChunkAfterChildHandler

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.

The xmlChunk is not well formed, because the end tag is not closed.

Parameters:
currentXPath - Xpath (QName Path) to the current element.
handlerQName - the handlerQName.
xmlChunk - the xmlChunk.
childQName - the childQName.
childHandler - the childHandler.


Copyright © 2004–2013 52north.org. All rights reserved.