org.deegree.filter
Enum Expression.Type

java.lang.Object
  extended by java.lang.Enum<Expression.Type>
      extended by org.deegree.filter.Expression.Type
All Implemented Interfaces:
Serializable, Comparable<Expression.Type>
Enclosing interface:
Expression

public static enum Expression.Type
extends Enum<Expression.Type>

Convenience enum type for discriminating the different expression types.


Enum Constant Summary
ADD
          Value is computed by adding two values.
CUSTOM
          Value is given as a custom expression.
DIV
          Value is computed by dividing two values.
FUNCTION
          Value is given as a function.
LITERAL
          Value is given as a literal.
MUL
          Value is computed by multipliying two values.
SUB
          Value is computed by subtracting two values.
VALUE_REFERENCE
          Expression references a property of an object (aka PropertyName).
 
Method Summary
static Expression.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Expression.Type[] 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

ADD

public static final Expression.Type ADD
Value is computed by adding two values. The Expression is an instance of Add.


SUB

public static final Expression.Type SUB
Value is computed by subtracting two values. The Expression is an instance of Sub.


MUL

public static final Expression.Type MUL
Value is computed by multipliying two values. The Expression is an instance of Mul.


DIV

public static final Expression.Type DIV
Value is computed by dividing two values. The Expression is an instance of Div.


VALUE_REFERENCE

public static final Expression.Type VALUE_REFERENCE
Expression references a property of an object (aka PropertyName). The Expression is an instance of PropertyName.


LITERAL

public static final Expression.Type LITERAL
Value is given as a literal. The Expression is an instance of Literal.


FUNCTION

public static final Expression.Type FUNCTION
Value is given as a function. The Expression is an instance of Function.


CUSTOM

public static final Expression.Type CUSTOM
Value is given as a custom expression. The Expression is an instance of CustomExpressionProvider.

Method Detail

values

public static Expression.Type[] 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 (Expression.Type c : Expression.Type.values())
    System.out.println(c);

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

valueOf

public static Expression.Type 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


Copyright © 2011. All Rights Reserved.