uk.me.parabola.mkgmap.osmstyle
Class ActionRule

java.lang.Object
  extended by uk.me.parabola.mkgmap.osmstyle.ActionRule
All Implemented Interfaces:
Rule

public class ActionRule
extends java.lang.Object
implements Rule

An action rule modifies the tags on the incoming element. It can also have an expression, and does not need to have a Type. If there is no type then the resolve method does not send any results. The tags on the element may have been modified however.

Author:
Steve Ratcliffe

Constructor Summary
ActionRule(Op expression, java.util.List<Action> actions)
           
ActionRule(Op expression, java.util.List<Action> actions, GType type)
           
 
Method Summary
 void resolveType(Element el, TypeResult result)
          Given the element return the garmin type that should be used to represent it.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionRule

public ActionRule(Op expression,
                  java.util.List<Action> actions,
                  GType type)

ActionRule

public ActionRule(Op expression,
                  java.util.List<Action> actions)
Method Detail

resolveType

public void resolveType(Element el,
                        TypeResult result)
Description copied from interface: Rule
Given the element return the garmin type that should be used to represent it.

Specified by:
resolveType in interface Rule
Parameters:
el - The element as read from an OSM xml file in 'tag' format.
result - The resolved Garmin type that will go into the map.

toString

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