org.openstreetmap.josm.gui.conflict.tags
Class TagConflictResolutionUtil

java.lang.Object
  extended by org.openstreetmap.josm.gui.conflict.tags.TagConflictResolutionUtil

public class TagConflictResolutionUtil
extends java.lang.Object

Collection of utility methods for tag conflict resolution


Constructor Summary
private TagConflictResolutionUtil()
          no constructor, just static utility methods
 
Method Summary
static void combineTigerTags(TagCollection tc)
          Combines tags from TIGER data
static void completeTagCollectionForEditing(TagCollection tc)
          Completes tags in the tag collection tc with the empty value for each tag.
static void normalizeTagCollectionBeforeEditing(TagCollection tc, java.util.Collection<? extends OsmPrimitive> merged)
          Normalizes the tags in the tag collection tc before resolving tag conflicts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagConflictResolutionUtil

private TagConflictResolutionUtil()
no constructor, just static utility methods

Method Detail

normalizeTagCollectionBeforeEditing

public static void normalizeTagCollectionBeforeEditing(TagCollection tc,
                                                       java.util.Collection<? extends OsmPrimitive> merged)
Normalizes the tags in the tag collection tc before resolving tag conflicts. Removes irrelevant tags like "created_by". For tags which are not present on at least one of the merged nodes, the empty value "" is added to the list of values for this tag, but only if there are at least two primitives with tags.

Parameters:
tc - the tag collection
merged - the collection of merged primitives

combineTigerTags

public static void combineTigerTags(TagCollection tc)
Combines tags from TIGER data

Parameters:
tc - the tag collection

completeTagCollectionForEditing

public static void completeTagCollectionForEditing(TagCollection tc)
Completes tags in the tag collection tc with the empty value for each tag. If the empty value is present the tag conflict resolution dialog will offer an option for removing the tag and not only options for selecting one of the current values of the tag.

Parameters:
tc - the tag collection


JOSM