Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data
Class DataBoundValue

java.lang.Object
  |
  +--oracle.cabo.ui.data.DataBoundValue
All Implemented Interfaces:
BoundValue

public class DataBoundValue
extends java.lang.Object
implements BoundValue

DataBoundValue implements BoundValue to retrieve a DataObject from the current rendering context, and perform a select on that object.


Constructor Summary
DataBoundValue(java.lang.Object select)
          Creates a BoundValue bound to the context's "current data object".
DataBoundValue(java.lang.String namespaceURI, java.lang.String localName, java.lang.Object select)
          Creates a BoundValue bound to a named data object on the context.
 
Method Summary
 java.lang.String getLocalName()
          Returns the local name.
 java.lang.String getNamespaceURI()
          Returns the namespace.
 java.lang.Object getSelect()
          Returns the select key.
 java.lang.Object getValue(RenderingContext context)
          Called to retrieve a value based on the current rendering context.
static void handleException(RenderingContext context, java.lang.RuntimeException exception)
          Handles a RuntimeException by checking the rendering state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBoundValue

public DataBoundValue(java.lang.Object select)
Creates a BoundValue bound to the context's "current data object". This will return the equivalent of the following code:
   return context.getCurrentDataObject().selectValue(context, select);
 
Parameters:
select - the select string

DataBoundValue

public DataBoundValue(java.lang.String namespaceURI,
                      java.lang.String localName,
                      java.lang.Object select)
Creates a BoundValue bound to a named data object on the context. This will return the equivalent of the following code:
   return context.getDataObject(namespaceURI, localName).
                                   selectValue(context, select);
 
If the select string is null, DataBoundValue will directly return the named data object:
   return context.getDataObject(namespaceURI, localName);
 
Parameters:
namespaceURI - the namespace of the DataObject to use
localName - the name of the DataObject to use
select - the select string
Method Detail

getValue

public java.lang.Object getValue(RenderingContext context)
Called to retrieve a value based on the current rendering context.
Specified by:
getValue in interface BoundValue
Parameters:
context - the rendering context

getSelect

public java.lang.Object getSelect()
Returns the select key.

getLocalName

public java.lang.String getLocalName()
Returns the local name.

getNamespaceURI

public java.lang.String getNamespaceURI()
Returns the namespace.

handleException

public static void handleException(RenderingContext context,
                                   java.lang.RuntimeException exception)
Handles a RuntimeException by checking the rendering state. If the RenderingContext indicates it will catch any exception, the exception will be re-thrown. Otherwise, the exception is swallowed after being logged.
See Also:
UIConstants.EXCEPTIONS_CAUGHT_PROPERTY, ErrorLog

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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