Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.adf.model.binding
Class DCUtil

java.lang.Object
  extended byoracle.jbo.common.JboBeanUtils
      extended byoracle.adf.model.binding.DCUtil
Direct Known Subclasses:
BeanUtils

public class DCUtil
extends JboBeanUtils

Contains some static utility methods used by the framework.


Field Summary
static java.lang.String DATA_PREFIX
           
static java.lang.String DESIGNTIME_PROPERTY
           
static java.lang.String DOT
           
static char SEP_DOT_CHAR
           
static char SEP_SLASH_CHAR
           
 
Constructor Summary
DCUtil()
           
 
Method Summary
static java.lang.Object createNewInstance(java.lang.String className)
          *** For internal framework use only ***
static java.lang.String decodePath(java.lang.String encodedString, char sep)
          Replace the 'sep' characters in this name with dots so that the converted name is a spel expression which ADFc would call to execute a method or setInputValue via a control-binding
static java.lang.String encodePath(java.lang.String dotSeperatedName, char sep)
          Replace the dot characters in this dot seperated name with the give seperator.
static DCBindingContainer findBindingContainer(BindingContext ctx, java.lang.String model)
           
static java.lang.Class findClass(java.lang.String className)
          *** For internal framework use only ***
static java.lang.Object findContextObject(BindingContext ctx, java.lang.String objFullName)
           
static java.lang.Object findSpelObject(java.lang.Object rootObj, java.lang.String tokenizer)
           
static java.lang.Object findSpelObject(java.lang.Object rootObj, java.lang.StringBuffer tokenizer)
           
static java.lang.String generateContainerName(DCBindingContainer formBnd)
          *** For internal framework use only ***
static java.lang.String generateControlName(DCControlBinding controlBnd)
          *** For internal framework use only ***
static java.lang.String generateIteratorName(DCIteratorBinding iterBnd)
          *** For internal framework use only ***
static JUCtrlActionBinding getActionBinding(BindingContext bctx, java.lang.String path, char sep)
           
static DCBindingContainer getBindingContainer(javax.servlet.http.HttpServletRequest request)
          *** For internal framework use only ***
static BindingContext getBindingContext(javax.servlet.http.HttpServletRequest request)
          *** For internal framework use only ***
static java.util.List getLocalizedExceptionsList(java.util.List excs, LocaleContext lCtx)
           
static OrdDomainIOInterface getOrdObject(java.io.InputStream inStream, java.lang.String contentType, JUCtrlValueBinding binding)
          Get an interMedia object for an InputStream
static JUCtrlValueBinding getValueBinding(BindingContext bctx, java.lang.String path, char sep)
           
static JUCtrlValueBinding getValueBinding(DCBindingContainer bindingContainer, java.lang.String path)
           
static java.lang.String getValueBindingNameFromPath(java.lang.String path)
           
static boolean inDesignTime()
           
static DCBindingContainer initializeBindingContainer(javax.servlet.http.HttpServletRequest request, BindingContext ctx, java.lang.String model)
          *** For internal framework use only ***
static java.lang.Object invokeActionBinding(BindingContext bctx, java.lang.String modelRef, java.util.ArrayList methodParams)
          Invoke an actionBinding with a list of parameter values
static java.lang.Object invokeActionBindingFromPath(BindingContext bctx, java.lang.String path, java.util.ArrayList methodParams, char sep)
          Invoke an actionBinding with a list of parameter values
static boolean isActionBindingPath(java.lang.String path)
           
static boolean isEmptyString(java.lang.String s)
          *** For internal framework use only ***
static boolean isValueBindingPath(java.lang.String path)
           
static void putValueInPath(BindingContext bctx, java.lang.String path, java.lang.Object value)
           
static void setBindingContainer(javax.servlet.http.HttpServletRequest request, DCBindingContainer container)
          *** For internal framework use only ***
static boolean setBindingValueFromPath(BindingContext bctx, java.lang.String path, java.lang.String value, char sep)
          Set the value of a AttrsBinding
 
Methods inherited from class oracle.jbo.common.JboBeanUtils
getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_PREFIX

public static final java.lang.String DATA_PREFIX
See Also:
Constant Field Values

SEP_DOT_CHAR

public static final char SEP_DOT_CHAR
See Also:
Constant Field Values

SEP_SLASH_CHAR

public static final char SEP_SLASH_CHAR
See Also:
Constant Field Values

DOT

public static final java.lang.String DOT
See Also:
Constant Field Values

DESIGNTIME_PROPERTY

public static final java.lang.String DESIGNTIME_PROPERTY
See Also:
Constant Field Values
Constructor Detail

DCUtil

public DCUtil()
Method Detail

findClass

public static java.lang.Class findClass(java.lang.String className)
*** For internal framework use only ***


createNewInstance

public static java.lang.Object createNewInstance(java.lang.String className)
*** For internal framework use only ***


generateContainerName

public static java.lang.String generateContainerName(DCBindingContainer formBnd)
*** For internal framework use only ***


generateIteratorName

public static java.lang.String generateIteratorName(DCIteratorBinding iterBnd)
*** For internal framework use only ***


generateControlName

public static java.lang.String generateControlName(DCControlBinding controlBnd)
*** For internal framework use only ***


isEmptyString

public static boolean isEmptyString(java.lang.String s)
*** For internal framework use only ***


inDesignTime

public static boolean inDesignTime()

encodePath

public static java.lang.String encodePath(java.lang.String dotSeperatedName,
                                          char sep)
Replace the dot characters in this dot seperated name with the give seperator. This is a utility method for ADFc to call so that it can convert the dot-seperated spel expression to a single-name string to place on a jsp page and then use this string to execute a model-binding -action like calling invoke method or setInputValue on the binding.


decodePath

public static java.lang.String decodePath(java.lang.String encodedString,
                                          char sep)
Replace the 'sep' characters in this name with dots so that the converted name is a spel expression which ADFc would call to execute a method or setInputValue via a control-binding


findSpelObject

public static java.lang.Object findSpelObject(java.lang.Object rootObj,
                                              java.lang.String tokenizer)

findSpelObject

public static java.lang.Object findSpelObject(java.lang.Object rootObj,
                                              java.lang.StringBuffer tokenizer)

findContextObject

public static java.lang.Object findContextObject(BindingContext ctx,
                                                 java.lang.String objFullName)

isValueBindingPath

public static boolean isValueBindingPath(java.lang.String path)

getValueBindingNameFromPath

public static java.lang.String getValueBindingNameFromPath(java.lang.String path)

getValueBinding

public static JUCtrlValueBinding getValueBinding(BindingContext bctx,
                                                 java.lang.String path,
                                                 char sep)

getValueBinding

public static JUCtrlValueBinding getValueBinding(DCBindingContainer bindingContainer,
                                                 java.lang.String path)

setBindingValueFromPath

public static boolean setBindingValueFromPath(BindingContext bctx,
                                              java.lang.String path,
                                              java.lang.String value,
                                              char sep)
Set the value of a AttrsBinding


isActionBindingPath

public static boolean isActionBindingPath(java.lang.String path)

getActionBinding

public static JUCtrlActionBinding getActionBinding(BindingContext bctx,
                                                   java.lang.String path,
                                                   char sep)

putValueInPath

public static void putValueInPath(BindingContext bctx,
                                  java.lang.String path,
                                  java.lang.Object value)

invokeActionBindingFromPath

public static java.lang.Object invokeActionBindingFromPath(BindingContext bctx,
                                                           java.lang.String path,
                                                           java.util.ArrayList methodParams,
                                                           char sep)
Invoke an actionBinding with a list of parameter values


invokeActionBinding

public static java.lang.Object invokeActionBinding(BindingContext bctx,
                                                   java.lang.String modelRef,
                                                   java.util.ArrayList methodParams)
Invoke an actionBinding with a list of parameter values


getBindingContext

public static BindingContext getBindingContext(javax.servlet.http.HttpServletRequest request)
*** For internal framework use only ***


initializeBindingContainer

public static DCBindingContainer initializeBindingContainer(javax.servlet.http.HttpServletRequest request,
                                                            BindingContext ctx,
                                                            java.lang.String model)
*** For internal framework use only ***


setBindingContainer

public static void setBindingContainer(javax.servlet.http.HttpServletRequest request,
                                       DCBindingContainer container)
*** For internal framework use only ***


getBindingContainer

public static DCBindingContainer getBindingContainer(javax.servlet.http.HttpServletRequest request)
*** For internal framework use only ***


findBindingContainer

public static DCBindingContainer findBindingContainer(BindingContext ctx,
                                                      java.lang.String model)

getOrdObject

public static OrdDomainIOInterface getOrdObject(java.io.InputStream inStream,
                                                java.lang.String contentType,
                                                JUCtrlValueBinding binding)
Get an interMedia object for an InputStream

Parameters:
inStream - the inputStream to read from
contentType - the mime-type of the stream
binding - the binding for which the interMedia object must be created

getLocalizedExceptionsList

public static java.util.List getLocalizedExceptionsList(java.util.List excs,
                                                        LocaleContext lCtx)

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

 

Copyright © 1997, 2004, Oracle. All rights reserved.