Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


oracle.adfmf.framework.api
Class Model

java.lang.Object
  extended by oracle.adfmf.framework.api.Model


public class Model
extends java.lang.Object

Public services used by the UI framework to assist in the more common functions.


Constructor Summary
Model()
           

 

Method Summary
static oracle.adfmf.dc.ws.rest.RestServiceAdapter createRestServiceAdapter()
          Get an empty REST service adapter object.
 java.lang.Object evaluateMethodExpression(java.lang.String expression, oracle.adfmf.json.JSONArray params, java.lang.String returnType, java.lang.String[] paramTypes)
          Evaluate the method expression passed in.
 java.lang.String getContextId()
          Get the current context id
 java.lang.String getContextInstanceId()
          Get the current context instance id
 java.lang.String getContextPageDef()
          Get the current context page definition
 java.lang.String[] getModelInventory()
          Get the list of model's methods.
 oracle.adfmf.framework.contract.adf.NameValuePair[] getValue(java.lang.String[] variables)
          Get a set of values from their passed in EL expressions.
 void loadBundle(java.lang.String baseName, java.lang.String variable)
          Load the given resource bundle
static java.lang.Class loadClassObj(java.lang.String name)
          Internal helper function to load classes in the current class loader.
 java.lang.String ping()
          A simple ping test used to ensure the VM is up and functioning correctly.
 void popPageFlowScope()
          Pops a page flow and moves frame pointer down in the stack
 java.lang.Object[] processBatchRequests(java.lang.Boolean abortOnError, oracle.adfmf.json.JSONObject[] requests)
          process the set of request as a batch.
 void pushPageFlowScope()
          Pushes a new page flow and creates a new frame pointer.
 void removeContext(java.lang.String contextKey, java.lang.String instanceId)
          Remove the context from the collection of contexts
 void removeContextInstance(java.lang.String contextKey, java.lang.String instanceId)
          Remove the context from the collection of contexts
 void resetFeature()
          Reset the current feature.
 void setBeanDefinitions(oracle.adfmf.framework.contract.adf.ManagedBeanDefinition[] defs)
          Set the bean definitions into the current context
 java.lang.String[] setContext(java.lang.String contextKey)
          Set the context
 java.lang.String[] setContextInstance(java.lang.String contextKey, java.lang.String instanceId, boolean resetState, boolean reSync)
          Set the context
 oracle.adfmf.framework.contract.adf.NameValuePair[] setValue(oracle.adfmf.framework.contract.adf.NameValuePair[] data)
          Set a set of EL values

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Model

public Model()

Method Detail

loadClassObj

public static java.lang.Class loadClassObj(java.lang.String name)
                                    throws java.lang.ClassNotFoundException
Internal helper function to load classes in the current class loader.
Parameters:
name - class name
Returns:
Class object
Throws:
java.lang.ClassNotFoundException

ping

public java.lang.String ping()
A simple ping test used to ensure the VM is up and functioning correctly.

pushPageFlowScope

public void pushPageFlowScope()
Pushes a new page flow and creates a new frame pointer.

popPageFlowScope

public void popPageFlowScope()
Pops a page flow and moves frame pointer down in the stack

getModelInventory

public java.lang.String[] getModelInventory()
Get the list of model's methods. Used for introspecting purposes.

processBatchRequests

public java.lang.Object[] processBatchRequests(java.lang.Boolean abortOnError,
                                               oracle.adfmf.json.JSONObject[] requests)
process the set of request as a batch. We determine if we should stop processing (abort the batch) on error or not. Please note, that error really relates to catastrophic exceptions and not simply softer that the request simply failed to do an error.
Parameters:
abortOnError -
requests -
Returns:
array of results (1-1 with the requests)

resetFeature

public void resetFeature()
                  throws AdfException
Reset the current feature.
Throws:
AdfException

getValue

public oracle.adfmf.framework.contract.adf.NameValuePair[] getValue(java.lang.String[] variables)
                                                             throws AdfException
Get a set of values from their passed in EL expressions.
Parameters:
variables - an array of EL expressions
Returns:
an array of the EL values
Throws:
AdfException

setValue

public oracle.adfmf.framework.contract.adf.NameValuePair[] setValue(oracle.adfmf.framework.contract.adf.NameValuePair[] data)
                                                             throws AdfException
Set a set of EL values
Parameters:
data - an array of NameValuePairs (EL expression, value)
Returns:
an array of NameValuePairs (EL expression, value)
Throws:
AdfException

evaluateMethodExpression

public java.lang.Object evaluateMethodExpression(java.lang.String expression,
                                                 oracle.adfmf.json.JSONArray params,
                                                 java.lang.String returnType,
                                                 java.lang.String[] paramTypes)
                                          throws AdfException
Evaluate the method expression passed in.
Parameters:
expression - method expression
params - to the method
returnType - of the method
paramTypes - of the method
Returns:
the result of executing the method with the given parameters
Throws:
AdfException

getContextId

public java.lang.String getContextId()
                              throws AdfException
Get the current context id
Throws:
AdfException

getContextPageDef

public java.lang.String getContextPageDef()
                                   throws AdfException
Get the current context page definition
Throws:
AdfException

getContextInstanceId

public java.lang.String getContextInstanceId()
                                      throws AdfException
Get the current context instance id
Throws:
AdfException

removeContext

public void removeContext(java.lang.String contextKey,
                          java.lang.String instanceId)
                   throws AdfException
Remove the context from the collection of contexts
Throws:
AdfException

removeContextInstance

public void removeContextInstance(java.lang.String contextKey,
                                  java.lang.String instanceId)
                           throws AdfException
Remove the context from the collection of contexts
Throws:
AdfException

setContext

public java.lang.String[] setContext(java.lang.String contextKey)
                              throws AdfException
Set the context
Throws:
AdfException

setContextInstance

public java.lang.String[] setContextInstance(java.lang.String contextKey,
                                             java.lang.String instanceId,
                                             boolean resetState,
                                             boolean reSync)
                                      throws AdfException
Set the context
Throws:
AdfException

setBeanDefinitions

public void setBeanDefinitions(oracle.adfmf.framework.contract.adf.ManagedBeanDefinition[] defs)
                        throws AdfException
Set the bean definitions into the current context
Throws:
AdfException

loadBundle

public void loadBundle(java.lang.String baseName,
                       java.lang.String variable)
                throws AdfException
Load the given resource bundle
Parameters:
baseName - of the resource bundle
variable - of the resource bundle
Throws:
AdfException

createRestServiceAdapter

public static oracle.adfmf.dc.ws.rest.RestServiceAdapter createRestServiceAdapter()
Get an empty REST service adapter object.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile
11g Release 2 (11.1.2.3.0)

E27204-01


Copyright © 2012 Oracle. All Rights Reserved.