uk.me.parabola.mkgmap.osmstyle.actions
Class AddTagAction

java.lang.Object
  extended by 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.
 
Method Summary
 void add(java.lang.String value)
           
 java.util.Set<java.lang.String> getUsedTags()
           
 void perform(Element el)
          Perform the action on the element.
 void setValueTags(Element valueTags)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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