|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The API to the generic repository object class that represents repository content at runtime time.
| Method Summary | |
IWDRepositoryModelClass |
createRelatedModelObject(java.lang.String rolename,
java.lang.String name)
Creates a new child object for the given relation. |
IWDRepositoryModelClass |
createRelatedModelObject(java.lang.String rolename,
java.lang.String name,
IWDRepositoryModelClassInfo modelClassInfo)
Creates a new child object for the given relation. |
boolean |
deleteRelatedModelObject(java.lang.String rolename,
IWDRepositoryModelClass o)
Deletes the given child object from the given relation. |
java.lang.String |
getAttributeValue(java.lang.String name,
java.util.Locale locale)
Returns the value of an attribute for the specified locale. |
java.lang.String |
getName()
Returns the name of the repository object. |
IWDRepositoryModelClass |
getParent()
Returns the parent of this object. |
IWDRepositoryModelClass |
getPersonalizationObject()
Returns the personalization repository object for this repository object. |
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 |
setAttributeValue(java.lang.String name,
java.lang.String value,
java.util.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 java.lang.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(java.lang.String rolename,
java.lang.String name)
rolename - name of the relation role the new child will belong toname - name of the child objectRepositoryRuntimeException - 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(java.lang.String rolename,
java.lang.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 objectRepositoryRuntimeException - 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(java.lang.String rolename,
IWDRepositoryModelClass o)
rolename - name of the relation role the child belongs too - the child object to be deletedpublic boolean isVersionableModelObject()
public java.lang.String getAttributeValue(java.lang.String name,
java.util.Locale locale)
name denotes an attribute that is translatable, i.e.
((RepositoryObjectAttributeInfo) associatedModelClassInfo.getPropertyInfo(name)).isTranslatable()
== truename - the attribute's namelocale - the locale to be used; if null, the default locale of the
repository is usednull is returned
public void setAttributeValue(java.lang.String name,
java.lang.String value,
java.util.Locale locale)
name denotes an attribute that is translatable, i.e.
((RepositoryObjectAttributeInfo) associatedModelClassInfo.getPropertyInfo(name)).isTranslatable()
== truename - name of the attributevalue - value of the attributelocale - the locale the specified value belongs to
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||