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

java.lang.Object
  extended by uk.me.parabola.mkgmap.osmstyle.actions.RenameAction
All Implemented Interfaces:
Action

public class RenameAction
extends java.lang.Object
implements Action

Renames a tag. Specifically takes the value of the 'from' tag, sets the value of the 'to' tag and removes the 'from' tag.

Author:
Steve Ratcliffe

Constructor Summary
RenameAction(java.lang.String from, java.lang.String to)
           
 
Method Summary
 void perform(Element el)
          Perform the action on the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameAction

public RenameAction(java.lang.String from,
                    java.lang.String to)
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