uk.me.parabola.mkgmap.osmstyle
Class ExpressionRule
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExpressionRule
public ExpressionRule(Op expression,
GType gtype)
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