com.sap.tc.cmi.metadata

Interface ICMIModelObjectCollectionInfo

All Superinterfaces:
ICMIAbstractInfo

public interface ICMIModelObjectCollectionInfo
extends ICMIAbstractInfo

Metadata of an ICMIModelObjectCollection at runtime. Implementing this class and providing instances of this class for each model object collection is optional for a model implementation. This type can be called, extended or implemented by applications or frameworks using CMI.

Since:
6.30 Beta 3

Type Classification Type Classification:

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


Method Summary
 ICMIModelClassInfo getElementModelClassInfo()
          Returns meta info that describes the elements of the collection.
 
Methods inherited from interface com.sap.tc.cmi.metadata.ICMIAbstractInfo
addSupportedOption, getName, getSetting, getSettings, setSetting, supportedOptions, supports
 

Method Detail

getElementModelClassInfo

ICMIModelClassInfo getElementModelClassInfo()
Returns meta info that describes the elements of the collection. If there is no such meta info available, null is returned.

There may be several different reasons, why null is returned:

The only guarantee is, that if a model class info is returned, all elements in the collection must be compatible with that meta info. That is an element may either implement IWDGenericModelClass and provide access to all attributes and roles described in the class meta info or an element may be a typed model class with typed accessors for all these attributes and roles. Both cases can even occur in a single collection.

A first class model implementation should always return a model class info for collections with a single type of elements. For collections that contain multiple types of elements, it should provide meta info describing the "greatest common denominator" (e.g. describing a common baseclass).

Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] FRAMEWORK [sap.com] tc/cm/ejb/api api BC-JAS-EJB
[sap.com] FRAMEWORK [sap.com] tc/cmi default BC-WD-JAV-RUN


Copyright 2014 SAP AG Complete Copyright Notice