org.planx.xpath.expr.operator
Class NotEqualOperator

java.lang.Object
  extended by org.planx.xpath.expr.Expression
      extended by org.planx.xpath.expr.operator.Operator
          extended by org.planx.xpath.expr.operator.EqualityOperator
              extended by org.planx.xpath.expr.operator.NotEqualOperator

public class NotEqualOperator
extends EqualityOperator

Not equal operator


Field Summary
 
Fields inherited from class org.planx.xpath.expr.operator.Operator
e1, e2
 
Constructor Summary
NotEqualOperator(Expression e1, Expression e2)
           
 
Method Summary
protected  boolean compare(boolean v1, boolean v2)
           
protected  boolean compare(double v1, double v2)
           
protected  boolean compare(String v1, String v2)
           
protected  boolean compare(XNodeSet o1, XNodeSet o2, Navigator navigator)
          Note the peculiar definition of !
protected  String operatorName()
           
 
Methods inherited from class org.planx.xpath.expr.operator.EqualityOperator
evaluate
 
Methods inherited from class org.planx.xpath.expr.operator.Operator
evaluate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotEqualOperator

public NotEqualOperator(Expression e1,
                        Expression e2)
Method Detail

compare

protected boolean compare(XNodeSet o1,
                          XNodeSet o2,
                          Navigator navigator)
                   throws XPathException
Note the peculiar definition of != for node sets.

Specified by:
compare in class EqualityOperator
Throws:
XPathException

compare

protected boolean compare(boolean v1,
                          boolean v2)
Specified by:
compare in class EqualityOperator

compare

protected boolean compare(double v1,
                          double v2)
Specified by:
compare in class EqualityOperator

compare

protected boolean compare(String v1,
                          String v2)
Specified by:
compare in class EqualityOperator

operatorName

protected String operatorName()
Specified by:
operatorName in class Operator


Copyright © 2010. All Rights Reserved.