uk.me.parabola.mkgmap.osmstyle.actions
Class AddTagAction
java.lang.Object
uk.me.parabola.mkgmap.osmstyle.actions.AddTagAction
- All Implemented Interfaces:
- Action
public class AddTagAction
- extends java.lang.Object
- implements Action
Add a tag, optionally changing it if it already exists. The value that
the tag is set to can have replacements from the current tags.
- Author:
- Steve Ratcliffe
Constructor Summary |
AddTagAction(java.lang.String tag,
java.lang.String value,
boolean modify)
Create an action to add the given tag with a value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AddTagAction
public AddTagAction(java.lang.String tag,
java.lang.String value,
boolean modify)
- Create an action to add the given tag with a value.
If the modify flag is true, then we change the tag if it
already exists.
perform
public void perform(Element el)
- Description copied from interface:
Action
- Perform the action on the element.
- Specified by:
perform
in interface Action
add
public void add(java.lang.String value)
setValueTags
public void setValueTags(Element valueTags)
getUsedTags
public java.util.Set<java.lang.String> getUsedTags()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object