CMI documentation

com.sap.tc.cmi.model
Interface ICMIModel


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/CommonModelInterface/630_VAL_REL/src/_cmi_api/java/com/sap/tc/cmi/model/ICMIModel.java#1 $

Method Summary
 ICMIModelInfo associatedModelInfo()
          returns the modelInfo of this model
 ICMIModelClass createModelObject(java.lang.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(java.lang.String modelClassName)
          Gets an instance of ICMIModelClass within the scope of the current model.
 

Method Detail

createModelObject

public ICMIModelClass createModelObject(java.lang.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

public ICMIModelClass createModelObject(java.lang.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

public ICMIModelInfo associatedModelInfo()
returns the modelInfo of this model

CMI documentation

Copyright © 2002 SAP AG. Automatically generated Thu Mar 3 2005, 21:53