Class: BlueprintDataMapping

BlueprintDataMapping

new BlueprintDataMapping()

Maps raw data to data objects of a specific type by using a blueprint. *
Source:

Extends

  • external:Montage

Members

mapFromRawData

Source:
To Do:

mapObjectToRawData

Source:
To Do:
  • Document.

mapToRawData

Source:
To Do:

Methods

mapRawDataToObject(object, data, context)

Convert raw data to data objects of an appropriate type. Subclasses should override this method to map properties of the raw data to data objects, as in the following: mapRawDataToObject: { value: function (object, data) { object.firstName = data.GIVEN_NAME; object.lastName = data.FAMILY_NAME; } } The default implementation of this method copies the properties defined by the raw data object to the data object.
Parameters:
Name Type Description
object Object An object whose properties must be set or modified to represent the raw data.
data Object An object whose properties' values hold the raw data.
context ? A value that was passed in to the addRawData() call that invoked this method.
Source: