uk.me.parabola.mkgmap.osmstyle.eval
Class NotEqualOp

java.lang.Object
  extended by uk.me.parabola.mkgmap.osmstyle.eval.AbstractOp
      extended by uk.me.parabola.mkgmap.osmstyle.eval.AbstractBinaryOp
          extended by uk.me.parabola.mkgmap.osmstyle.eval.EqualsOp
              extended by uk.me.parabola.mkgmap.osmstyle.eval.NotEqualOp
All Implemented Interfaces:
BinaryOp, Op

public class NotEqualOp
extends EqualsOp

True when the tag does not have the given value.

Author:
Steve Ratcliffe

Field Summary
 
Fields inherited from class uk.me.parabola.mkgmap.osmstyle.eval.AbstractOp
first
 
Fields inherited from interface uk.me.parabola.mkgmap.osmstyle.eval.Op
AND, CLOSE_PAREN, EQUALS, EXISTS, GT, GTE, LT, LTE, NOT, NOT_EQUALS, NOT_EXISTS, OPEN_PAREN, OR, REGEX, VALUE
 
Constructor Summary
NotEqualOp()
           
 
Method Summary
 boolean eval(Element el)
          Evaluate the expression.
 java.lang.String toString()
           
 
Methods inherited from class uk.me.parabola.mkgmap.osmstyle.eval.EqualsOp
priority, setFirst, setSecond, value
 
Methods inherited from class uk.me.parabola.mkgmap.osmstyle.eval.AbstractBinaryOp
getSecond
 
Methods inherited from class uk.me.parabola.mkgmap.osmstyle.eval.AbstractOp
createOp, getFirst, getType, hasHigherPriority, isType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.me.parabola.mkgmap.osmstyle.eval.Op
getFirst, getType, hasHigherPriority, isType
 

Constructor Detail

NotEqualOp

public NotEqualOp()
Method Detail

eval

public boolean eval(Element el)
Description copied from interface: Op
Evaluate the expression.

Specified by:
eval in interface Op
Overrides:
eval in class EqualsOp
Parameters:
el - The OSM element to be tested.
Returns:
True if the expression is true for the given element.

toString

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