class sap.uxap.ModelMapping

Control sample: sap.uxap.ModelMapping
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/uxap/ModelMapping
Application Component: CA-UI5-CTR

Defines the entity that will be passed to the sap.uxap.ObjectPageLayout.


Constructor

Constructor for a new ModelMapping.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.uxap.ModelMapping(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new control, generated automatically if no ID is given

mSettings? object

Initial settings for the new control


Properties

Name Type Default Value Description
externalModelName string

Determines the external model name.

Visibility: public
externalPath string

Determines the external path.

Visibility: public
internalModelName string Model

Determines the internal model name.

Visibility: public

Methods Overview

Method Description
sap.uxap.ModelMapping.extend

Creates a new subclass of class sap.uxap.ModelMapping with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

getExternalModelName

Gets current value of property externalModelName.

Determines the external model name.

getExternalPath

Gets current value of property externalPath.

Determines the external path.

getInternalModelName

Gets current value of property internalModelName.

Determines the internal model name.

Default value is "Model".

sap.uxap.ModelMapping.getMetadata

Returns a metadata object for class sap.uxap.ModelMapping.

setExternalModelName

Sets a new value for property externalModelName.

Determines the external model name.

When called with a value of null or undefined, the default value of the property will be restored.

setExternalPath

Sets a new value for property externalPath.

Determines the external path.

When called with a value of null or undefined, the default value of the property will be restored.

setInternalModelName

Sets a new value for property internalModelName.

Determines the internal model name.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is "Model".

sap.uxap.ModelMapping.extend

Creates a new subclass of class sap.uxap.ModelMapping with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getExternalModelName

Gets current value of property externalModelName.

Determines the external model name.

getExternalPath

Gets current value of property externalPath.

Determines the external path.

getInternalModelName

Gets current value of property internalModelName.

Determines the internal model name.

Default value is "Model".

sap.uxap.ModelMapping.getMetadata

Returns a metadata object for class sap.uxap.ModelMapping.

setExternalModelName

Sets a new value for property externalModelName.

Determines the external model name.

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sExternalModelName string

New value for property externalModelName

setExternalPath

Sets a new value for property externalPath.

Determines the external path.

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sExternalPath string

New value for property externalPath

setInternalModelName

Sets a new value for property internalModelName.

Determines the internal model name.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is "Model".

Param Type DefaultValue Description
sInternalModelName string "Model"

New value for property internalModelName