IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.model.ctx
Class ContextModelAdapter

java.lang.Object
  extended by com.ibm.btt.model.AbstractModelAdapter
      extended by com.ibm.btt.model.ctx.ContextModelAdapter
All Implemented Interfaces:
IModel, IModelAdapter

public class ContextModelAdapter
extends AbstractModelAdapter

The BTT Context implementation of ModelAdapter.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.btt.model.AbstractModelAdapter
AbstractModelAdapter.Result
 
Field Summary
 
Fields inherited from class com.ibm.btt.model.AbstractModelAdapter
resolver
 
Constructor Summary
ContextModelAdapter(Context ctx)
          Construct the ContextModelAdapter object
 
Method Summary
 java.lang.Object getContent()
          Return BTT Context instance
 IModelFactory getModelFactory()
          Get the model factory instance
protected  AbstractModelAdapter.Result getNestedModel(java.lang.String name)
          Get the root model using the name.
 IModel getRootModel()
          The root model of BTT Context: the root keyedCollection
 java.lang.Object getValueAt(java.lang.String expression)
          Using expression language to get the value from the data model The expression language must access the field model.
 void setValueAt(java.lang.String expression, java.lang.Object value)
          Using expression language to set the value to the data model The expression language must access the field model.
 
Methods inherited from class com.ibm.btt.model.AbstractModelAdapter
getElementAt, getNestedModel, setElementAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextModelAdapter

public ContextModelAdapter(Context ctx)
Construct the ContextModelAdapter object

Parameters:
ctx - the BTT context
Method Detail

getRootModel

public IModel getRootModel()
The root model of BTT Context: the root keyedCollection

Specified by:
getRootModel in class AbstractModelAdapter
Returns:
the root model of the data model

getContent

public java.lang.Object getContent()
Return BTT Context instance

Returns:
the root content of the model.(Wrapped data element)
See Also:
IModel.getContent()

getModelFactory

public IModelFactory getModelFactory()
Description copied from class: AbstractModelAdapter
Get the model factory instance

Specified by:
getModelFactory in interface IModelAdapter
Specified by:
getModelFactory in class AbstractModelAdapter
Returns:
the model factory that can be used to create the model instance

getValueAt

public java.lang.Object getValueAt(java.lang.String expression)
Description copied from interface: IModelAdapter
Using expression language to get the value from the data model The expression language must access the field model. Otherwise it will throw IllegalStateException.

Parameters:
expression - the expression language
Returns:
the value of the data model
See Also:
IModelAdapter.getValueAt(String)

setValueAt

public void setValueAt(java.lang.String expression,
                       java.lang.Object value)
Description copied from interface: IModelAdapter
Using expression language to set the value to the data model The expression language must access the field model.

Parameters:
expression - the expression language
value - the value to be set
See Also:
IModelAdapter.setValueAt(String, Object)

getNestedModel

protected AbstractModelAdapter.Result getNestedModel(java.lang.String name)
Get the root model using the name.

Overrides:
getNestedModel in class AbstractModelAdapter
Parameters:
name - the expression language for example "employee.address.city"
Returns:
the Result

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010