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

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

public class ToStringBoundValue
extends java.lang.Object
implements BoundValue

BoundValue that wraps another BoundValue and returns the result of that BoundValue as a String, if possible.

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

Constructor Summary
ToStringBoundValue(BoundValue wrapped)
          Creates a ToStringBoundValue.
 
Method Summary
static java.lang.String convertToString(java.lang.Object data)
          Converts an Object into a String for non-null values.
 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

ToStringBoundValue

public ToStringBoundValue(BoundValue wrapped)
Creates a ToStringBoundValue.

Parameters:
wrapped - the BoundValue to convert into a String.
Method Detail

convertToString

public static java.lang.String convertToString(java.lang.Object data)
Converts an Object into a String for non-null values.


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.