org.springframework.rules.constraint
Class RelationalOperator

java.lang.Object
  extended by org.springframework.core.enums.AbstractLabeledEnum
      extended by org.springframework.core.enums.AbstractGenericLabeledEnum
          extended by org.springframework.core.enums.StringCodedLabeledEnum
              extended by org.springframework.rules.constraint.Operator
                  extended by org.springframework.rules.constraint.RelationalOperator
All Implemented Interfaces:
Serializable, Comparable, LabeledEnum

public abstract class RelationalOperator
extends Operator

Type-safe enum class for supported binary operators.

Author:
Keith Donald
See Also:
Serialized Form

Field Summary
static RelationalOperator EQUAL_TO
          The EQUAL_TO (==) operator
static RelationalOperator GREATER_THAN
          The GREATER_THAN (>) operator
static RelationalOperator GREATER_THAN_EQUAL_TO
          The GREATER_THAN_EQUAL_TO (>=) operator
static RelationalOperator LESS_THAN
          The LESS_THAN (<) operator
static RelationalOperator LESS_THAN_EQUAL_TO
          The LESS_THAN_EQUAL_TO (<=) operator
 
Fields inherited from interface org.springframework.core.enums.LabeledEnum
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER
 
Method Summary
abstract  BinaryConstraint getConstraint()
          Returns the predicate instance associated with this binary operator.
 
Methods inherited from class org.springframework.rules.constraint.Operator
getSymbol, negation, toString
 
Methods inherited from class org.springframework.core.enums.StringCodedLabeledEnum
getCode, getStringCode
 
Methods inherited from class org.springframework.core.enums.AbstractGenericLabeledEnum
getLabel
 
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum
compareTo, equals, getType, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EQUAL_TO

public static final RelationalOperator EQUAL_TO
The EQUAL_TO (==) operator


LESS_THAN

public static final RelationalOperator LESS_THAN
The LESS_THAN (<) operator


LESS_THAN_EQUAL_TO

public static final RelationalOperator LESS_THAN_EQUAL_TO
The LESS_THAN_EQUAL_TO (<=) operator


GREATER_THAN

public static final RelationalOperator GREATER_THAN
The GREATER_THAN (>) operator


GREATER_THAN_EQUAL_TO

public static final RelationalOperator GREATER_THAN_EQUAL_TO
The GREATER_THAN_EQUAL_TO (>=) operator

Method Detail

getConstraint

public abstract BinaryConstraint getConstraint()
Returns the predicate instance associated with this binary operator.

Returns:
the associated binary predicate


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.