Foundations Apex API Developer Reference

fferpcore.StaticTransformMapping

global class StaticTransformMapping implements TransformMapping

An implementation of a fferpcore.TransformMapping that populates a target field with fixed data.

This class implements the following interfaces:

Methods

StaticTransformMapping

global StaticTransformMapping(Object sourceData, String targetKey)

Create a StaticTransformMapping.
The possible target keys are dictated by the target context.
For example, the fferpcore.Context.SObjectContext requires API names of SObject fields.

Input Parameters

Name Type Description
sourceData Object The data to use to populate the target field.
targetKey String The key that identifies the destination field to populate.

Sample Data

String sourceData: 'SomeFixedValue'
String targetKey: 'SomeTargetField__c'

withDescription

global fferpcore.StaticTransformMapping withDescription(String description)

Specify a description to display in the FDN Mappings component instead of the source data.

Input Parameters

Name Type Description
description String The text to display in the FDN Mappings component that describes the source data.

Return Value

The StaticTransformMapping instance to allow further method calls.

getSourceData

global Object getSourceData()

Return Value

The data to use to populate the target field.

getSourceDescription

global String getSourceDescription()

Return Value

The description of the data used to populate the target field.

getTargetKey

global String getTargetKey()

Return Value

The key that identifies the destination field to populate.

© Copyright 2009–2021 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.