Class EntityWriter

java.lang.Object
org.openstreetmap.osmosis.xml.common.ElementWriter
org.openstreetmap.osmosis.xml.v0_6.impl.EntityWriter
Direct Known Subclasses:
NodeWriter, RelationWriter, WayWriter

public class EntityWriter extends ElementWriter
Provides common functionality for all classes writing OSM entities to xml.
  • Constructor Details

    • EntityWriter

      protected EntityWriter(String elementName, int indentionLevel)
      Creates a new instance.
      Parameters:
      elementName - The name of the element to be written.
      indentionLevel - The indent level of the element.
  • Method Details

    • addCommonAttributes

      protected void addCommonAttributes(org.openstreetmap.osmosis.core.domain.v0_6.Entity entity)
      Add common entity attributes.
      Parameters:
      entity - The entity being written.
    • addMetatags

      protected void addMetatags(org.openstreetmap.osmosis.core.domain.v0_6.Entity entity)
      Add metatag attributes.
      Parameters:
      entity - The entity being written.