com.sap.tc.cmi.model

Interface ICMIModel

All Known Subinterfaces:
ICMIModel02

public interface ICMIModel

Manages and contains all Model classes, which together form a Common Model. Provides a factory for ModelClass instances and represents the runtime characteristics of a model.

This type can be called, extended or implemented by applications or frameworks using CMI.

Version:
$Id: //tc/cm.interface/NW711_02_COR/src/_cmi_api/glib/api/com/sap/tc/cmi/model/ICMIModel.java#1 $

Type Classification Type Classification:

This interface is part of the Common Model Interface and is intended to be implemented by applications.


Method Summary
 ICMIModelInfo associatedModelInfo()
          Returns the modelInfo of this model.
 ICMIModelClass createModelObject(Class modelClassClazz)
          Gets an instance of ICMIModelClass within the scope of the current model If a model is not able to support this method, it must throw an UnsupportedOperationException.
 ICMIModelClass createModelObject(String modelClassName)
          Gets an instance of ICMIModelClass within the scope of the current model.
 

Method Detail

createModelObject

ICMIModelClass createModelObject(String modelClassName)
Gets an instance of ICMIModelClass within the scope of the current model. If a model is not able to support this method, it must throw an UnsupportedOperationException.

Parameters:
modelClassName - the name of the model class. The name should be the same, that ICMIModelClassInfo.getName() returns, if there is an appropriate ICMModelClassInfo instance.
Returns:
an instance of ICMIModelClass with given name.
Throws:
UnsupportedOperationException - method is not supported by this model.

createModelObject

ICMIModelClass createModelObject(Class modelClassClazz)
Gets an instance of ICMIModelClass within the scope of the current model If a model is not able to support this method, it must throw an UnsupportedOperationException.

Parameters:
modelClassClazz - the class of the model class.
Returns:
an instance of ICMIModelClass for the given class.
Throws:
UnsupportedOperationException - method is not supported by this model.

associatedModelInfo

ICMIModelInfo associatedModelInfo()
Returns the modelInfo of this model.



Copyright 2009 SAP AG Complete Copyright Notice