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

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

public class OrBoundValue
extends java.lang.Object
implements BoundValue

BoundValue that returns Boolean.TRUE if either passed in BoundValues return Boolean.TRUE and returns Boolean.FALSE otherwise.

Short circuiting is supported, so that if the first BoudnValue returns Boolean.TRUE, the value of the second BoundValue will never be requested.

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

Constructor Summary
OrBoundValue(BoundValue[] values)
          Creates a OrBoundValue.
OrBoundValue(BoundValue value1, BoundValue value2)
          Creates an OrBoundValue.
 
Method Summary
 java.lang.Object getValue(UIXRenderingContext context)
          Called to retrieve a value based on the current rendering context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrBoundValue

public OrBoundValue(BoundValue value1,
                    BoundValue value2)
Creates an OrBoundValue. Null parameters are treated as if their value returns Boolean.FALSE.

Parameters:
value1 - first BoundValue to OR the result of
value2 - second BoundValue to Or the result of.

OrBoundValue

public OrBoundValue(BoundValue[] values)
Creates a OrBoundValue. Null array elements are treated as if their value returns Boolean.FALSE.

Parameters:
values - array of BoundValues to OR the result of
Method Detail

getValue

public java.lang.Object getValue(UIXRenderingContext context)
Description copied from interface: BoundValue
Called to retrieve a value based on the current rendering context.

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


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