org.openstreetmap.osmosis.core.mysql.v0_5.impl
Class EmbeddedTagProcessor

java.lang.Object
  extended by org.openstreetmap.osmosis.core.mysql.v0_5.impl.EmbeddedTagProcessor

public class EmbeddedTagProcessor
extends java.lang.Object

Provides functionality for working with tags on entities where they're stored embedded in a single string field.

Author:
Brett Henderson

Constructor Summary
EmbeddedTagProcessor()
          Creates a new instance.
 
Method Summary
 java.lang.String format(java.util.List<Tag> tags)
          Produces a string representing the complete list of tags.
 java.util.List<Tag> parseTags(java.lang.String tags)
          Parses the specified tag string and produces corresponding tag objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedTagProcessor

public EmbeddedTagProcessor()
Creates a new instance.

Method Detail

parseTags

public java.util.List<Tag> parseTags(java.lang.String tags)
Parses the specified tag string and produces corresponding tag objects.

Parameters:
tags - The tag string.
Returns:
The tag objects.

format

public java.lang.String format(java.util.List<Tag> tags)
Produces a string representing the complete list of tags.

Parameters:
tags - The list of tag objects.
Returns:
A single string representing all tags.