|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The API to the generic repository object class that represents repository content at runtime time.
Type Classification:
This interface is part of the Web Dynpro API, so applications may reference it or call any method of it, but they must not implement or extend it.
For a detailed explanation of API classification see the Web Dynpro Compatibility Guide| Method Summary | |
IWDRepositoryModelClass |
createRelatedModelObject(String rolename,
String name)
Creates a new child object for the given relation. |
IWDRepositoryModelClass |
createRelatedModelObject(String rolename,
String name,
IWDRepositoryModelClassInfo modelClassInfo)
Creates a new child object for the given relation. |
boolean |
deleteRelatedModelObject(String rolename,
IWDRepositoryModelClass o)
Deletes the given child object from the given relation. |
String |
getAttributeValue(String name,
Locale locale)
Returns the value of an attribute for the specified locale. |
Locale |
getMasterLocale()
Returns the master locale of this model class instance. |
String |
getName()
Returns the name of the repository object. |
IWDRepositoryModelClass |
getParent()
Returns the parent of this object. |
IWDRepositoryModelClass |
getPersonalizationObject()
Returns a variant of this model object that can be used for personalization. |
IWDRepositoryModel |
getRepositoryModel()
Returns the repository model of this repository object. |
IWDRepositoryModel |
getRepositoryRoot()
Deprecated. To improve consistency across the Web Dynpro API, this method has been renamed to getRepositoryModel(). The method with the
old name has been kept for backward compatiblity, but may be withdrawn
with the first new NetWeaver release in 2006. |
boolean |
isVersionableModelObject()
Returns true, iff the current object is a versionable model object. |
void |
resetAttribute(String name,
Locale locale)
Resets the value of the attribute. |
boolean |
resetRelatedModelObject(String rolename,
IWDRepositoryModelClass o)
Resets the given child object in the given relation. |
void |
setAttributeValue(String name,
String value,
Locale locale)
Sets the attribute value. |
| Methods inherited from interface com.sap.tc.cmi.model.ICMIGenericModelClass |
addRelatedModelObject, associatedModelClassInfo, getAttributeValue, getRelatedModelObject, getRelatedModelObjects, removeRelatedModelObject, setAttributeValue, setRelatedModelObject, setRelatedModelObjects |
| Methods inherited from interface com.sap.tc.cmi.model.ICMIModelClass |
associatedModel |
| Method Detail |
public String getName()
public IWDRepositoryModelClass getParent()
public IWDRepositoryModelClass getPersonalizationObject()
public IWDRepositoryModel getRepositoryRoot()
getRepositoryModel(). The method with the
old name has been kept for backward compatiblity, but may be withdrawn
with the first new NetWeaver release in 2006.
public IWDRepositoryModel getRepositoryModel()
public IWDRepositoryModelClass createRelatedModelObject(String rolename,
String name)
rolename - name of the relation role the new child will belong toname - name of the child object
RepositoryRuntimeException - if name is the name of an object
that was deleted in the current variant, in one of its predecessor variants or in
the personalization layer before
public IWDRepositoryModelClass createRelatedModelObject(String rolename,
String name,
IWDRepositoryModelClassInfo modelClassInfo)
rolename - name of the relation role the new child will belong toname - name of the child objectmodelClassInfo - the class description to use when creating the object
RepositoryRuntimeException - if name is the name of an object
that was deleted in the current variant, in one of its predecessor variants or in
the personalization layer before
public boolean deleteRelatedModelObject(String rolename,
IWDRepositoryModelClass o)
rolename - name of the relation role the child belongs too - the child object to be deleted
public boolean isVersionableModelObject()
public String getAttributeValue(String name,
Locale locale)
name denotes an attribute that is translatable, i.e.
((RepositoryObjectAttributeInfo) associatedModelClassInfo.getPropertyInfo(name)).isTranslatable()
== true
name - the attribute's namelocale - the locale to be used; if null, the default locale of the
repository is used
null is returned
public void setAttributeValue(String name,
String value,
Locale locale)
name denotes an attribute that is translatable, i.e.
((RepositoryObjectAttributeInfo) associatedModelClassInfo.getPropertyInfo(name)).isTranslatable()
== true
name - name of the attributevalue - value of the attributelocale - the locale the specified value belongs to
public void resetAttribute(String name,
Locale locale)
name - name of the attributelocale - in case of translatable attribute the locale the specified value belongs to
public boolean resetRelatedModelObject(String rolename,
IWDRepositoryModelClass o)
rolename - name of the relation role the child belongs too - the child object to be reset
public Locale getMasterLocale()
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||