org.apache.myfaces.trinidadinternal.ui.data.bind
Class ComparisonBoundValue

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.data.bind.ComparisonBoundValue
All Implemented Interfaces:
BoundValue

public class ComparisonBoundValue
extends java.lang.Object
implements BoundValue

Booolean BoundValue that compares either two BoundValues or a BoundValues and an Object with a comparison operator and returns the Boolean result.

Only BoundValues that return java.lang.Numbers or java.lang.Numbers can be used with comparisons other than COMPARISON_EQUALS and COMPARISON_NOT_EQUALS

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/data/bind/ComparisonBoundValue.java#0 $) $Date: 10-nov-2005.18:56:36 $
Author:
The Oracle ADF Faces Team

Field Summary
static int COMPARISON_EQUALS
          True if the left and right sides are equivalent.
static int COMPARISON_GREATER_THAN
          True if the left side is greater than the right side.
static int COMPARISON_GREATER_THAN_OR_EQUALS
          True if the left side is greater than or equal to the right side.
static int COMPARISON_LESS_THAN
          True if the left side is less than the right side.
static int COMPARISON_LESS_THAN_OR_EQUALS
          True if the left side is less than or equal to the right side.
static int COMPARISON_NOT_EQUALS
          True if the left and right sides are not equivalent.
 
Constructor Summary
ComparisonBoundValue(int comparison, BoundValue leftSideValue, BoundValue rightSideValue)
           
ComparisonBoundValue(int comparison, BoundValue leftSideValue, java.lang.Object rightSide)
           
 
Method Summary
static ComparisonBoundValue createExistsValue(BoundValue existenceValue)
           
 java.lang.Object getValue(UIXRenderingContext context)
          Calculates the current state of the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPARISON_EQUALS

public static final int COMPARISON_EQUALS
True if the left and right sides are equivalent.

See Also:
Constant Field Values

COMPARISON_NOT_EQUALS

public static final int COMPARISON_NOT_EQUALS
True if the left and right sides are not equivalent.

See Also:
Constant Field Values

COMPARISON_GREATER_THAN

public static final int COMPARISON_GREATER_THAN
True if the left side is greater than the right side.

This requires that both sides be or return java.lang.Numbers.

See Also:
Constant Field Values

COMPARISON_GREATER_THAN_OR_EQUALS

public static final int COMPARISON_GREATER_THAN_OR_EQUALS
True if the left side is greater than or equal to the right side.

This requires that both sides be or return java.lang.Numbers.

See Also:
Constant Field Values

COMPARISON_LESS_THAN

public static final int COMPARISON_LESS_THAN
True if the left side is less than the right side.

This requires that both sides be or return java.lang.Numbers.

See Also:
Constant Field Values

COMPARISON_LESS_THAN_OR_EQUALS

public static final int COMPARISON_LESS_THAN_OR_EQUALS
True if the left side is less than or equal to the right side.

This requires that both sides be or return java.lang.Numbers.

See Also:
Constant Field Values
Constructor Detail

ComparisonBoundValue

public ComparisonBoundValue(int comparison,
                            BoundValue leftSideValue,
                            BoundValue rightSideValue)

ComparisonBoundValue

public ComparisonBoundValue(int comparison,
                            BoundValue leftSideValue,
                            java.lang.Object rightSide)
Method Detail

createExistsValue

public static ComparisonBoundValue createExistsValue(BoundValue existenceValue)

getValue

public java.lang.Object getValue(UIXRenderingContext context)
Calculates the current state of the model.

Specified by:
getValue in interface BoundValue
Parameters:
context - the rendering context


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.