Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data.bind
Class ComparisonBoundValue

java.lang.Object
  |
  +--oracle.cabo.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


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(RenderingContext 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.

COMPARISON_NOT_EQUALS

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

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.


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.


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.


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.

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(RenderingContext context)
Calculates the current state of the model.
Specified by:
getValue in interface BoundValue
Following copied from interface: oracle.cabo.ui.data.BoundValue
Parameters:
context - the rendering context

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.