|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.conflict.tags.TagConflictResolutionUtil
public class TagConflictResolutionUtil
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 |
---|
private TagConflictResolutionUtil()
Method Detail |
---|
public static void normalizeTagCollectionBeforeEditing(TagCollection tc, java.util.Collection<? extends OsmPrimitive> merged)
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.
tc
- the tag collectionmerged
- the collection of merged primitivespublic static void combineTigerTags(TagCollection tc)
tc
- the tag collectionpublic static void completeTagCollectionForEditing(TagCollection tc)
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.
tc
- the tag collection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |