uk.me.parabola.mkgmap.osmstyle
Class ExpressionRule

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

public class ExpressionRule
extends java.lang.Object
implements Rule

A rule that contains a condition. If the condition is matched by the element then the held gtype is returned.

Author:
Steve Ratcliffe

Constructor Summary
ExpressionRule(Op expression, GType gtype)
           
 
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

ExpressionRule

public ExpressionRule(Op expression,
                      GType gtype)
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