Class TagTransferData
- java.lang.Object
-
- org.openstreetmap.josm.gui.datatransfer.data.TagTransferData
-
- All Implemented Interfaces:
Serializable
public class TagTransferData extends Object implements Serializable
This is a special transfer type that only transfers tag data.It contains all tags contained in the selection that was copied. For conflicting tags, any of the values may be used.
- Since:
- 10604
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DataFlavor
FLAVOR
This is a data flavor addedprivate static long
serialVersionUID
private TagMap
tags
-
Constructor Summary
Constructors Constructor Description TagTransferData(Collection<? extends Tagged> tagged)
Creates a newTagTransferData
object for the given objects.TagTransferData(Map<String,String> tags)
Create a newTagTransferData
object with the given tags.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getTags()
Gets all tags contained in this data.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
FLAVOR
public static final DataFlavor FLAVOR
This is a data flavor added
-
-
Constructor Detail
-
TagTransferData
public TagTransferData(Collection<? extends Tagged> tagged)
Creates a newTagTransferData
object for the given objects.- Parameters:
tagged
- The tags to transfer.
-
TagTransferData
public TagTransferData(Map<String,String> tags)
Create a newTagTransferData
object with the given tags.- Parameters:
tags
- The tags.- Since:
- 10637
-
-