org.oXML.xpath.step
Class RelationalExpression

java.lang.Object
  extended byorg.oXML.xpath.step.RelationalExpression
All Implemented Interfaces:
Expression

public class RelationalExpression
extends java.lang.Object
implements Expression

tbd - how compare a nodeset and boolean ??? eg test="/foo/bar < true()" ??? or even - how compare two booleans? or two strings - lexicographically?? xalan gave me false on 'true() <= false()' and '"abc" <= "abc"'.


Field Summary
static int GREATER_THAN
           
static int GREATER_THAN_OR_EQUAL
           
static int LESS_THAN
           
static int LESS_THAN_OR_EQUAL
           
 
Fields inherited from interface org.oXML.xpath.Expression
OUTPUT_NS
 
Constructor Summary
RelationalExpression(Expression lhs, Expression rhs, int operation)
           
 
Method Summary
 void bind(Resolver ctxt)
           
 Node evaluate(RuntimeContext ctxt)
           
 java.lang.String getOperation()
           
 int operation()
           
 java.lang.String toString()
           
 void write(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LESS_THAN

public static final int LESS_THAN
See Also:
Constant Field Values

LESS_THAN_OR_EQUAL

public static final int LESS_THAN_OR_EQUAL
See Also:
Constant Field Values

GREATER_THAN

public static final int GREATER_THAN
See Also:
Constant Field Values

GREATER_THAN_OR_EQUAL

public static final int GREATER_THAN_OR_EQUAL
See Also:
Constant Field Values
Constructor Detail

RelationalExpression

public RelationalExpression(Expression lhs,
                            Expression rhs,
                            int operation)
Method Detail

bind

public void bind(Resolver ctxt)
          throws ObjectBoxException
Specified by:
bind in interface Expression
Throws:
ObjectBoxException

operation

public int operation()

getOperation

public java.lang.String getOperation()

evaluate

public Node evaluate(RuntimeContext ctxt)
              throws ObjectBoxException
Specified by:
evaluate in interface Expression
Throws:
ObjectBoxException

toString

public java.lang.String toString()

write

public void write(org.xml.sax.ContentHandler handler)
           throws org.xml.sax.SAXException
Specified by:
write in interface Expression
Throws:
org.xml.sax.SAXException