fr.paris.lutece.plugins.contextinclude.util
Enum OperatorEnum

java.lang.Object
  extended by java.lang.Enum<OperatorEnum>
      extended by fr.paris.lutece.plugins.contextinclude.util.OperatorEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperatorEnum>

public enum OperatorEnum
extends java.lang.Enum<OperatorEnum>

OperatorEnum.


Enum Constant Summary
EQUAL
          The equal.
GREATER
          The greater.
GREATER_OR_EQUAL
          The greater or equal.
LOWER
          The lower.
LOWER_OR_EQUAL
          The lower or equal.
 
Method Summary
 int getId()
          Get the id of the operator.
 java.lang.String toString()
          Get the String value of the operator.
static OperatorEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OperatorEnum[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQUAL

public static final OperatorEnum EQUAL
The equal.


GREATER

public static final OperatorEnum GREATER
The greater.


LOWER

public static final OperatorEnum LOWER
The lower.


GREATER_OR_EQUAL

public static final OperatorEnum GREATER_OR_EQUAL
The greater or equal.


LOWER_OR_EQUAL

public static final OperatorEnum LOWER_OR_EQUAL
The lower or equal.

Method Detail

values

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

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

valueOf

public static OperatorEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getId

public int getId()
Get the id of the operator.

Returns:
the id of the operator

toString

public java.lang.String toString()
Get the String value of the operator.

Overrides:
toString in class java.lang.Enum<OperatorEnum>
Returns:
the String value of the operator


Copyright © 2012 Mairie de Paris. All Rights Reserved.