org.drools.core.util.index
Enum IndexUtil.ConstraintType

java.lang.Object
  extended by java.lang.Enum<IndexUtil.ConstraintType>
      extended by org.drools.core.util.index.IndexUtil.ConstraintType
All Implemented Interfaces:
Serializable, Comparable<IndexUtil.ConstraintType>
Enclosing class:
IndexUtil

public static enum IndexUtil.ConstraintType
extends Enum<IndexUtil.ConstraintType>


Enum Constant Summary
EQUAL
           
GREATER_OR_EQUAL
           
GREATER_THAN
           
LESS_OR_EQUAL
           
LESS_THAN
           
NOT_EQUAL
           
RANGE
           
UNKNOWN
           
 
Method Summary
static IndexUtil.ConstraintType decode(String operator)
           
static IndexUtil.ConstraintType getType(Constraint constraint)
           
 boolean isAscending()
           
 boolean isComparison()
           
 boolean isDescending()
           
 boolean isIndexable()
           
 boolean isIndexableForNode(short nodeType)
           
static IndexUtil.ConstraintType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IndexUtil.ConstraintType[] 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

EQUAL

public static final IndexUtil.ConstraintType EQUAL

NOT_EQUAL

public static final IndexUtil.ConstraintType NOT_EQUAL

GREATER_THAN

public static final IndexUtil.ConstraintType GREATER_THAN

GREATER_OR_EQUAL

public static final IndexUtil.ConstraintType GREATER_OR_EQUAL

LESS_THAN

public static final IndexUtil.ConstraintType LESS_THAN

LESS_OR_EQUAL

public static final IndexUtil.ConstraintType LESS_OR_EQUAL

RANGE

public static final IndexUtil.ConstraintType RANGE

UNKNOWN

public static final IndexUtil.ConstraintType UNKNOWN
Method Detail

values

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

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

valueOf

public static IndexUtil.ConstraintType 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

isComparison

public boolean isComparison()

isAscending

public boolean isAscending()

isDescending

public boolean isDescending()

isIndexable

public boolean isIndexable()

isIndexableForNode

public boolean isIndexableForNode(short nodeType)

decode

public static IndexUtil.ConstraintType decode(String operator)

getType

public static IndexUtil.ConstraintType getType(Constraint constraint)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.