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

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

public class NameAction
extends java.lang.Object
implements Action

Set the name on the given element. The tags of the element may be used in setting the name. We have a list of possible substitutions.

Author:
Steve Ratcliffe

Constructor Summary
NameAction()
           
 
Method Summary
 void add(java.lang.String val)
           
 java.util.Set<java.lang.String> getUsedTags()
           
 void perform(Element el)
          search for the first matching name pattern and set the element name to it.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameAction

public NameAction()
Method Detail

perform

public void perform(Element el)
search for the first matching name pattern and set the element name to it. If the element name is already set, then nothing is done.

Specified by:
perform in interface Action
Parameters:
el - The element on which the name may be set.

add

public void add(java.lang.String val)

getUsedTags

public java.util.Set<java.lang.String> getUsedTags()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object