com.bretth.osmosis.core.xml.v0_5.impl
Class BoundElementProcessor

java.lang.Object
  extended by com.bretth.osmosis.core.xml.common.BaseElementProcessor
      extended by com.bretth.osmosis.core.xml.v0_5.impl.SourceElementProcessor
          extended by com.bretth.osmosis.core.xml.v0_5.impl.BoundElementProcessor
All Implemented Interfaces:
ElementProcessor

public class BoundElementProcessor
extends SourceElementProcessor

Provides an element processor implementation for a node.

Author:
Karl Newman

Constructor Summary
BoundElementProcessor(BaseElementProcessor parentProcessor, Sink sink, boolean enableDateParsing)
          Creates a new instance.
 
Method Summary
 void begin(org.xml.sax.Attributes attributes)
          Initialises the element processor with attributes for a new element to be processed.
 void end()
          Finalises processing for the element processor, this is called when the end of an element is reached.
 
Methods inherited from class com.bretth.osmosis.core.xml.v0_5.impl.SourceElementProcessor
getSink
 
Methods inherited from class com.bretth.osmosis.core.xml.common.BaseElementProcessor
createTimestampContainer, getChild, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundElementProcessor

public BoundElementProcessor(BaseElementProcessor parentProcessor,
                             Sink sink,
                             boolean enableDateParsing)
Creates a new instance.

Parameters:
parentProcessor - The parent of this element processor.
sink - The sink for receiving processed data.
enableDateParsing - If true, dates will be parsed from xml data, else the current date will be used thus saving parsing time.
Method Detail

begin

public void begin(org.xml.sax.Attributes attributes)
Initialises the element processor with attributes for a new element to be processed.

Parameters:
attributes - The attributes of the new element.

end

public void end()
Finalises processing for the element processor, this is called when the end of an element is reached.