Interface ElementProcessor

All Known Implementing Classes:
BaseElementProcessor, BoundsElementProcessor, ChangeSourceElementProcessor, DummyElementProcessor, EntityElementProcessor, LegacyBoundElementProcessor, NodeElementProcessor, OsmElementProcessor, RelationElementProcessor, RelationMemberElementProcessor, SourceElementProcessor, TagElementProcessor, WayElementProcessor, WayNodeElementProcessor

public interface ElementProcessor
An element processor provides a handler for processing a specific xml element within a document. It provides a state pattern approach to processing nested xml structures.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    begin(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.
    getChild(String uri, String localName, String qName)
    Retrieves the appropriate child element processor for the newly encountered nested element.
    Returns the parent element processor.
  • Method Details

    • begin

      void begin(Attributes attributes)
      Initialises the element processor with attributes for a new element to be processed.
      Parameters:
      attributes - The attributes of the new element.
    • getChild

      ElementProcessor getChild(String uri, String localName, String qName)
      Retrieves the appropriate child element processor for the newly encountered nested element.
      Parameters:
      uri - The element uri.
      localName - The element localName.
      qName - The element qName.
      Returns:
      The appropriate element processor for the nested element.
    • getParent

      ElementProcessor getParent()
      Returns the parent element processor.
      Returns:
      The parent element processor.
    • end

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