org.openstreetmap.osmosis.core.domain.v0_6
Class TagCollectionImpl

java.lang.Object
  extended by org.openstreetmap.osmosis.core.util.CollectionWrapper<Tag>
      extended by org.openstreetmap.osmosis.core.domain.v0_6.TagCollectionImpl
All Implemented Interfaces:
java.lang.Iterable<Tag>, java.util.Collection<Tag>, TagCollection, Storeable

public class TagCollectionImpl
extends CollectionWrapper<Tag>
implements TagCollection

Maintains a collection of tags.

Author:
Brett Henderson

Constructor Summary
TagCollectionImpl()
          Creates a new instance.
TagCollectionImpl(java.util.Collection<? extends Tag> tags)
          Creates a new instance.
TagCollectionImpl(StoreReader sr, StoreClassRegister scr)
          Creates a new instance.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> buildMap()
          Creates a map representation of the tags.
 void store(StoreWriter sw, StoreClassRegister scr)
          Stores all state to the specified store writer.
 
Methods inherited from class org.openstreetmap.osmosis.core.util.CollectionWrapper
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

TagCollectionImpl

public TagCollectionImpl()
Creates a new instance.


TagCollectionImpl

public TagCollectionImpl(java.util.Collection<? extends Tag> tags)
Creates a new instance.

Parameters:
tags - The initial tags.

TagCollectionImpl

public TagCollectionImpl(StoreReader sr,
                         StoreClassRegister scr)
Creates a new instance.

Parameters:
sr - The store to read state from.
scr - Maintains the mapping between classes and their identifiers within the store.
Method Detail

store

public void store(StoreWriter sw,
                  StoreClassRegister scr)
Stores all state to the specified store writer.

Specified by:
store in interface Storeable
Parameters:
sw - The writer that persists data to an underlying store.
scr - Maintains the mapping between classes and their identifiers within the store.

buildMap

public java.util.Map<java.lang.String,java.lang.String> buildMap()
Creates a map representation of the tags.

Specified by:
buildMap in interface TagCollection
Returns:
The tags represented as a map.