IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.model
Class AbstractModelAdapter

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

public abstract class AbstractModelAdapter
extends java.lang.Object
implements IModelAdapter

The abstract class of model adapter


Nested Class Summary
static class AbstractModelAdapter.Result
          The inner class used to wrap the result; the model and the name
 
Field Summary
protected  IResolver resolver
           
 
Constructor Summary
AbstractModelAdapter()
           
 
Method Summary
 IModel getElementAt(java.lang.String name)
          Using expression language to get the data model element
abstract  IModelFactory getModelFactory()
          Get the model factory instance
protected  AbstractModelAdapter.Result getNestedModel(java.lang.String name)
          Get the root model using the name.
protected  AbstractModelAdapter.Result getNestedModel(java.lang.String name, IModel nestedModel)
          Get the root model using the name.
abstract  IModel getRootModel()
           
 void setElementAt(java.lang.String name, IModel model)
          Using expression language to set the data model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.model.IModelAdapter
getValueAt, setValueAt
 
Methods inherited from interface com.ibm.btt.model.IModel
getContent
 

Field Detail

resolver

protected IResolver resolver
Constructor Detail

AbstractModelAdapter

public AbstractModelAdapter()
Method Detail

getRootModel

public abstract IModel getRootModel()
Returns:
the root model of the data model

getModelFactory

public abstract IModelFactory getModelFactory()
Get the model factory instance

Specified by:
getModelFactory in interface IModelAdapter
Returns:
the model factory instance

getElementAt

public IModel getElementAt(java.lang.String name)
Description copied from interface: IModelAdapter
Using expression language to get the data model element

Specified by:
getElementAt in interface IModelAdapter
Parameters:
name - the expression language
Returns:
the data model element
See Also:
IModelAdapter.getElementAt(String)

setElementAt

public void setElementAt(java.lang.String name,
                         IModel model)
Description copied from interface: IModelAdapter
Using expression language to set the data model

Specified by:
setElementAt in interface IModelAdapter
Parameters:
name - the expression language
model - the model to be set
See Also:
IModelAdapter.setElementAt(String, IModel)

getNestedModel

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

Parameters:
name - the expression language for example "employee.address.city"
Returns:
the Result

getNestedModel

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

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, 2011