Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.debug
Class SampleDataProvider

java.lang.Object
  |
  +--oracle.cabo.ui.debug.SampleDataProvider
All Implemented Interfaces:
DataProvider

public class SampleDataProvider
extends java.lang.Object
implements DataProvider

DataProvider that guesses at sample data. In order for this provider to do its job, special "hints" need to be attached to BoundValues. The XML parser supports this automatically, so this feature is likely only useable within UIX.


Constructor Summary
SampleDataProvider()
           
 
Method Summary
 void cleanup(RenderingContext context)
          RenderingContext implementations must call cleanup() once after the last callto getDataObject().
static BoundValue createBoundValue(BoundValue base, AttributeKey attributeKey)
          Creates a BoundValue that will supply the needed hint.
static void enableHintParsing(ParseContext context)
          Activates hints for data parsing.
 DataObject getDataObject(RenderingContext context, java.lang.String namespace, java.lang.String name)
           
 void init(RenderingContext context)
          RenderingContext implementations must call init() once before calling getDataObject().
static boolean isHintParsingEnabled(ParseContext context)
          Tests if hints should be added.
static DataProvider sharedInstance()
          Returns the shared instance of this provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleDataProvider

public SampleDataProvider()
Method Detail

sharedInstance

public static DataProvider sharedInstance()
Returns the shared instance of this provider.

enableHintParsing

public static void enableHintParsing(ParseContext context)
Activates hints for data parsing.

isHintParsingEnabled

public static boolean isHintParsingEnabled(ParseContext context)
Tests if hints should be added.

createBoundValue

public static BoundValue createBoundValue(BoundValue base,
                                          AttributeKey attributeKey)
Creates a BoundValue that will supply the needed hint.

getDataObject

public DataObject getDataObject(RenderingContext context,
                                java.lang.String namespace,
                                java.lang.String name)
Specified by:
getDataObject in interface DataProvider
Following copied from interface: oracle.cabo.ui.data.DataProvider
Parameters:
context - the current rendering context
namespace - the namespace of the requested DataObject
name - the name of the requested DataObject
Returns:
the DataObject for the specified namespace and name, or null if no such dataObject exists.

init

public void init(RenderingContext context)
Description copied from interface: DataProvider
RenderingContext implementations must call init() once before calling getDataObject(). In general, they should try to call it as early as possible.
Specified by:
init in interface DataProvider

cleanup

public void cleanup(RenderingContext context)
Description copied from interface: DataProvider
RenderingContext implementations must call cleanup() once after the last callto getDataObject().
Specified by:
cleanup in interface DataProvider

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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