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

java.lang.Object
  extended by org.openstreetmap.osmosis.core.xml.common.ElementWriter
      extended by org.openstreetmap.osmosis.core.xml.v0_5.impl.TagWriter

public class TagWriter
extends ElementWriter

Renders a tag as xml.

Author:
Brett Henderson

Field Summary
 
Fields inherited from class org.openstreetmap.osmosis.core.xml.common.ElementWriter
writer
 
Constructor Summary
TagWriter(java.lang.String elementName, int indentLevel)
          Creates a new instance.
 
Method Summary
 void process(Tag tag)
          Writes the tag.
 
Methods inherited from class org.openstreetmap.osmosis.core.xml.common.ElementWriter
addAttribute, beginOpenElement, closeElement, endOpenElement, getTimestampFormat, setWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagWriter

public TagWriter(java.lang.String elementName,
                 int indentLevel)
Creates a new instance.

Parameters:
elementName - The name of the element to be written.
indentLevel - The indent level of the element.
Method Detail

process

public void process(Tag tag)
Writes the tag.

Parameters:
tag - The tag to be processed.