Class sap.uxap.ModelMappingModule: sap/uxap/ModelMapping

extends Element

Define the entity that will be passed to the ObjectPageLayout.


Since: 1.26.
Constructor Summary
new sap.uxap.ModelMapping(sId?, mSettings?)Constructor for a new ModelMapping.
Method Summary
sap.uxap.ModelMapping.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.uxap.ModelMapping with name sClassName and enriches it with the information contained in oClassInfo.
sap.uxap.ModelMapping.getMetadata()Returns a metadata object for class sap.uxap.ModelMapping.
getExternalModelName()Gets current value of property externalModelName.
getExternalPath()Gets current value of property externalPath.
getInternalModelName()Gets current value of property internalModelName.
setExternalModelName(sExternalModelName)Sets a new value for property externalModelName.
setExternalPath(sExternalPath)Sets a new value for property externalPath.
setInternalModelName(sInternalModelName)Sets a new value for property internalModelName.
Constructor Detail
new sap.uxap.ModelMapping(sId?, mSettings?)
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 for a general description of the syntax of the settings object.

The supported settings are:

In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.

Parameters:
{string}sId? ID for the new control, generated automatically if no ID is given
{object}mSettings? Initial settings for the new control
Method Detail
sap.uxap.ModelMapping.extend(sClassName, oClassInfo?, FNMetaImpl?): function
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.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.uxap.ModelMapping.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.uxap.ModelMapping.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getExternalModelName(): string
Gets current value of property externalModelName.

Determines the the external model name.

Returns:
{string} Value of property externalModelName
getExternalPath(): string
Gets current value of property externalPath.

Determines the the external path.

Returns:
{string} Value of property externalPath
getInternalModelName(): string
Gets current value of property internalModelName.

Determines the the internal model name.

Default value is Model.

Returns:
{string} Value of property internalModelName
setExternalModelName(sExternalModelName): sap.uxap.ModelMapping
Sets a new value for property externalModelName.

Determines the the external model name.

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

Parameters:
{string}sExternalModelName New value for property externalModelName
Returns:
{sap.uxap.ModelMapping} Reference to this in order to allow method chaining
setExternalPath(sExternalPath): sap.uxap.ModelMapping
Sets a new value for property externalPath.

Determines the the external path.

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

Parameters:
{string}sExternalPath New value for property externalPath
Returns:
{sap.uxap.ModelMapping} Reference to this in order to allow method chaining
setInternalModelName(sInternalModelName): sap.uxap.ModelMapping
Sets a new value for property internalModelName.

Determines the 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.

Parameters:
{string}sInternalModelName New value for property internalModelName
Returns:
{sap.uxap.ModelMapping} Reference to this in order to allow method chaining