org.n52.security.common.xml
Interface XMLChunkHandler

All Known Implementing Classes:
XMLChunkHandlerAdapter

public interface XMLChunkHandler

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(javax.xml.namespace.QName handlerQName, java.lang.String xmlChunk, javax.xml.namespace.QName childQName, XMLChunkHandler childHandler)
          Method is invoked if the end tag of an element, for which a child handler is registered is reached.
 void handleChunkBeforChildHandler(javax.xml.namespace.QName handlerQName, java.lang.String xmlChunk, javax.xml.namespace.QName childQName, XMLChunkHandler childHandler)
          Method is invoked if the start tag of an element, for which a child handler is registered is reached.
 void handleChunkEnd(javax.xml.namespace.QName handlerQName, java.lang.String xmlChunk)
          Method is invoked if the end tag of the xml chunk is reached.
 void handleChunkStart(javax.xml.namespace.QName handlerQName)
          Method handleChunkStart, informs about the start element of a chunk.
 

Method Detail

handleChunkStart

void handleChunkStart(javax.xml.namespace.QName handlerQName)
Method handleChunkStart, informs about the start element of a chunk.

Parameters:
handlerQName - the handlerQName.

handleChunkEnd

void handleChunkEnd(javax.xml.namespace.QName handlerQName,
                    java.lang.String xmlChunk)
Method is invoked if the end tag of the xml chunk is reached.

Parameters:
handlerQName - the handlerQName.
xmlChunk - the partialXml.

handleChunkBeforChildHandler

void handleChunkBeforChildHandler(javax.xml.namespace.QName handlerQName,
                                  java.lang.String xmlChunk,
                                  javax.xml.namespace.QName childQName,
                                  XMLChunkHandler childHandler)
Method is 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:
handlerQName - the handlerQName.
xmlChunk - the xmlChunk.
childQName - the childQName.
childHandler - the childHandler.

handleChunkAfterChildHandler

void handleChunkAfterChildHandler(javax.xml.namespace.QName handlerQName,
                                  java.lang.String xmlChunk,
                                  javax.xml.namespace.QName childQName,
                                  XMLChunkHandler childHandler)
Method is 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:
handlerQName - the handlerQName.
xmlChunk - the xmlChunk.
childQName - the childQName.
childHandler - the childHandler.


Copyright © 2004-2009 52north.org. All Rights Reserved.