sk.uniba.euromath.gene.controller
Class SplittedSaxJoiner

java.lang.Object
  extended by sk.uniba.euromath.gene.controller.SplittedSaxJoiner

final class SplittedSaxJoiner
extends Object

Resolves emp:mark elements and caches results. Able to process SAX results only; all other results are converted to SAX in the following manner:

Results are cached in case when multiple emp:marks with same id occurs.

exactly one startDocument() occurs on start and endDocument() occurs on end. Start / end document events produced by Sources produced by the resolver are suppressed.

Author:
Martin Vysny

Constructor Summary
SplittedSaxJoiner(IMarkResolver res)
          Constructor.
 
Method Summary
 ContentHandler getMarkElementsResolver(ContentHandler sink, NamespacePath path)
          Returns content handler that finds and resolves all emp:mark elements that is resolver able to provide.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplittedSaxJoiner

public SplittedSaxJoiner(IMarkResolver res)
Constructor.

Parameters:
res - resolves the emp:mark elements.
Method Detail

getMarkElementsResolver

public ContentHandler getMarkElementsResolver(ContentHandler sink,
                                              NamespacePath path)
Returns content handler that finds and resolves all emp:mark elements that is resolver able to provide. It leaves unresolved emp:marks intact.

Parameters:
sink - forward events to this handler. Sink never receives startDocument() nor endDocument() events.
path - namespace path to the parent product. The list may get modified in the process, but will be restored to its former state when the processing finishes.
Returns:
content handler that forwards events to sink and resolves emp:mark elements.


Copyright 2003-2003-2006 null. All Rights Reserved.