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

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

public class UnmodifiableTagCollection
extends CollectionWrapper<Tag>
implements TagCollection

Wraps a tag collection and prevents modifications from being made to it.

Author:
Brett Henderson

Constructor Summary
UnmodifiableTagCollection(TagCollection wrappedTags)
          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

UnmodifiableTagCollection

public UnmodifiableTagCollection(TagCollection wrappedTags)
Creates a new instance.

Parameters:
wrappedTags - The tags to wrap.
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.