Defines the entity that will be passed to the sap.uxap.ObjectPageLayout.
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 |
Method | Description |
---|---|
sap.uxap.ModelMapping.extend |
Creates a new subclass of class sap.uxap.ModelMapping with name
|
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 |
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 |
setExternalPath |
Sets a new value for property externalPath. Determines the external path. When called with a value of |
setInternalModelName |
Sets a new value for property internalModelName. Determines the internal model name. When called with a value of Default value is |
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 |
Gets current value of property externalModelName.
Determines the external model name.
Gets current value of property internalModelName.
Determines the internal model name.
Default value is "Model"
.
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 |
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 |
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 |