Web Dynpro API Documentation

com.sap.tc.webdynpro.repository.api
Interface IWDRepositoryModel

All Superinterfaces:
com.sap.tc.cmi.model.ICMIModel
All Known Subinterfaces:
IWDProgmodelRepository

public interface IWDRepositoryModel
extends com.sap.tc.cmi.model.ICMIModel

API of a runtime repository model.

Version:
$Id: //tc/WebDynproRuntime/630_VAL_REL/src/_webdynpro_runtime_repository/java/com/sap/tc/webdynpro/repository/api/IWDRepositoryModel.java#2 $

Method Summary
 com.sap.tc.cmi.model.ICMIModelClass createModelObject(java.lang.Class modelClass)
          Deprecated. Use createModelObject(String, IWDRepositoryModelClassInfo) instead. Deprecation of this method only serves as a hint that the method is not supported.
 com.sap.tc.cmi.model.ICMIModelClass createModelObject(java.lang.String modelClassName)
          Deprecated. Use createModelObject(String, IWDRepositoryModelClassInfo) instead. Deprecation of this method only serves as a hint that the method is not supported.
 IWDRepositoryModelClass createModelObject(java.lang.String name, IWDRepositoryModelClassInfo modelClass)
          Creates a new Repository Model Object with the given name.
 void deleteModelObject(IWDRepositoryModelClass modelObject)
          Deletes the given Repository Model Object.
 IWDRepositoryModelClass getModelObject(java.lang.String name, IWDRepositoryModelClassInfo modelClass)
          Returns the specified model object or null if it does not exist.
 IWDRepository getRepository()
          Returns the repository this repository model is assigned to.
 java.util.Iterator iterateAllVersionableModelObjects(IWDRepositoryModelClassInfo modelClassInfo)
          Returns an iterator of model object names.
 java.util.Iterator iterateVersionableModelObjects(IWDRepositoryModelClassInfo modelClassInfo)
          Returns an iterator of model object names.
 
Methods inherited from interface com.sap.tc.cmi.model.ICMIModel
associatedModelInfo
 

Method Detail

createModelObject

public IWDRepositoryModelClass createModelObject(java.lang.String name,
                                                 IWDRepositoryModelClassInfo modelClass)
Creates a new Repository Model Object with the given name. Preconditions: name is not empty modelClass != null modelClass must be a versionable Object modelClass must belong to the associatedModelInfo() an object with the given name and modelClass must not exist
Parameters:
name - name of the new model object
modelClassInfo - metadata of the type of the model object to be created
Returns:
the newly created model object

createModelObject

public com.sap.tc.cmi.model.ICMIModelClass createModelObject(java.lang.Class modelClass)
Deprecated. Use createModelObject(String, IWDRepositoryModelClassInfo) instead. Deprecation of this method only serves as a hint that the method is not supported.

This (optional) method of the Common Model Interface (CMI) is not supported by the Runtime Repository model and therefore must not be used. See createModelObject(String, IWDRepositoryModelClassInfo) for an alternative.
Specified by:
createModelObject in interface com.sap.tc.cmi.model.ICMIModel

createModelObject

public com.sap.tc.cmi.model.ICMIModelClass createModelObject(java.lang.String modelClassName)
Deprecated. Use createModelObject(String, IWDRepositoryModelClassInfo) instead. Deprecation of this method only serves as a hint that the method is not supported.

This (optional) method of the Common Model Interface (CMI) is not supported by the Runtime Repository model and therefore must not be used. See createModelObject(String, IWDRepositoryModelClassInfo) for an alternative.
Specified by:
createModelObject in interface com.sap.tc.cmi.model.ICMIModel

getModelObject

public IWDRepositoryModelClass getModelObject(java.lang.String name,
                                              IWDRepositoryModelClassInfo modelClass)
Returns the specified model object or null if it does not exist. Preconditions: name is not empty modelClass != null modelClass must be a versionable Object modelClass must belong to the associatedModelInfo() name must only contain a..zA..Z0..9._- symbols
Parameters:
name - name of the object to return
modelClass - metadata of the type of the object to return
Returns:
the requested object or null if it does not exist

deleteModelObject

public void deleteModelObject(IWDRepositoryModelClass modelObject)
Deletes the given Repository Model Object. Preconditions modelObject != null
Parameters:
modelObject - the model object to be deleted

getRepository

public IWDRepository getRepository()
Returns the repository this repository model is assigned to.
Returns:
the repository this repository model is assigned to

iterateVersionableModelObjects

public java.util.Iterator iterateVersionableModelObjects(IWDRepositoryModelClassInfo modelClassInfo)
Returns an iterator of model object names. Objects must be
* of the type specified by modelClassInfo
* part of the variant or one of its predecessors of the repository
* part of the deployable object currently assigned to the repository
to be included in the iterator. modelClassInfo must be part of the model.
Parameters:
modelClassInfo - metadata of the type of the model objects to iterate
Returns:
the iterator providing the names of the found objects

iterateAllVersionableModelObjects

public java.util.Iterator iterateAllVersionableModelObjects(IWDRepositoryModelClassInfo modelClassInfo)
Returns an iterator of model object names. Objects must be
* of the type specified by modelClassInfo
* part of the variant or one of its predecessors of the repository
to be included in the iterator. modelClassInfo must be part of the model.
Parameters:
modelClassInfo - metadata of the type of the model objects to iterate
Returns:
the iterator providing the names of the found objects

Web Dynpro API Documentation

Copyright © 2004 SAP AG. Automatically generated Thu Mar 3 2005, 22:15