org.openstreetmap.osmosis.core.xml.v0_5.impl
Class ChangeSourceElementProcessor

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.common.BaseElementProcessor
      extended by org.openstreetmap.osmosis.core.xml.v0_5.impl.ChangeSourceElementProcessor
All Implemented Interfaces:
ElementProcessor

public class ChangeSourceElementProcessor
extends BaseElementProcessor

Provides an element processor implementation for an osm change element.

Author:
Brett Henderson

Constructor Summary
ChangeSourceElementProcessor(BaseElementProcessor parentProcessor, ChangeSink changeSink, 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.
 ElementProcessor getChild(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Retrieves the appropriate child element processor for the newly encountered nested element.
 
Methods inherited from class org.openstreetmap.osmosis.core.xml.common.BaseElementProcessor
createTimestampContainer, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeSourceElementProcessor

public ChangeSourceElementProcessor(BaseElementProcessor parentProcessor,
                                    ChangeSink changeSink,
                                    boolean enableDateParsing)
Creates a new instance.

Parameters:
parentProcessor - The parent of this element processor.
changeSink - The changeSink 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.

getChild

public ElementProcessor getChild(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName)
Retrieves the appropriate child element processor for the newly encountered nested element.

Specified by:
getChild in interface ElementProcessor
Overrides:
getChild in class BaseElementProcessor
Parameters:
uri - The element uri.
localName - The element localName.
qName - The element qName.
Returns:
The appropriate element processor for the nested element.

end

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