org.overlord.sramp.common.query.xpath.ast
Enum EqualityExpr.Operator

java.lang.Object
  extended by java.lang.Enum<EqualityExpr.Operator>
      extended by org.overlord.sramp.common.query.xpath.ast.EqualityExpr.Operator
All Implemented Interfaces:
Serializable, Comparable<EqualityExpr.Operator>
Enclosing class:
EqualityExpr

public static enum EqualityExpr.Operator
extends Enum<EqualityExpr.Operator>

Models the comparison expression's operator.


Enum Constant Summary
EQ
           
GT
           
GTE
           
LT
           
LTE
           
NE
           
 
Method Summary
 String symbol()
          Gets the symbol;
static EqualityExpr.Operator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EqualityExpr.Operator valueOfSymbol(String symbol)
          Looks up the proper EqualityExpr.Operator from a symbol.
static EqualityExpr.Operator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQ

public static final EqualityExpr.Operator EQ

NE

public static final EqualityExpr.Operator NE

LT

public static final EqualityExpr.Operator LT

GT

public static final EqualityExpr.Operator GT

LTE

public static final EqualityExpr.Operator LTE

GTE

public static final EqualityExpr.Operator GTE
Method Detail

values

public static EqualityExpr.Operator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EqualityExpr.Operator c : EqualityExpr.Operator.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EqualityExpr.Operator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

symbol

public String symbol()
Gets the symbol;


valueOfSymbol

public static EqualityExpr.Operator valueOfSymbol(String symbol)
Looks up the proper EqualityExpr.Operator from a symbol.

Parameters:
symbol - the symbol (e.g. =, !=, >, etc)
Returns:
an EqualityExpr.Operator or null if not found


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.