SIFWorks ADK 2.0
Map Method (values, data, valueBuilder, direction, version)
NamespacesEdustructures.SifWorks.Tools.MappingMappingsMap(IDictionary, SifDataObject, IValueBuilder, MappingDirection, SifVersion)

[This is preliminary documentation and is subject to change.]

Populate a SifDataObject from values in the supplied IDictionary. This form of the map method allows the caller to specify whether it is performing an inbound or outbound mapping operation, as well as the version of SIF associated with the SIF Data Object that's being mapped. These values are used to filter field mapping rules. The direction flag is also used to invoke automatic ValueSet translations on fields that have a ValueSet attribute.
Declaration Syntax
C#Visual BasicVisual C++
public void Map(
	IDictionary values,
	SifDataObject data,
	IValueBuilder valueBuilder,
	MappingDirection direction,
	SifVersion version
)
Public Sub Map ( _
	values As IDictionary, _
	data As SifDataObject, _
	valueBuilder As IValueBuilder, _
	direction As MappingDirection, _
	version As SifVersion _
)
public:
void Map (
	IDictionary^ values, 
	SifDataObject^ data, 
	IValueBuilder^ valueBuilder, 
	MappingDirection direction, 
	SifVersion^ version
)
Parameters
values (IDictionary)
An IDictionary that contains field values to assign to the supplied SifDataObject, where each entry in the map is keyed by the local application-defined name of a field and the value is the text value to assign to the corresponding element or attribute of the SifDataObject.
data (SifDataObject)
The SifDataObject to assign field values to
valueBuilder (IValueBuilder)
A custom ValueBuilder implementation to evaluate value expressions in XPath-like query strings
direction (MappingDirection)
The direction of mapping
version (SifVersion)
The SifVersion associated with the mapping operation. For inbound SIF_Event and SIF_Response messages, this value should be obtained by calling getSIFVersion on the SifMessageInfo parameter passed to the message handler. For inbound SIF_Request messages, it should be obtained by calling the SifMessageInfo.getSIFRequestVersion method. For outbound messages, this value should be obtained by calling Adk.getSIFVersion to get the version of SIF the class framework was initialized with. Note when this parameter is null, no SIF Version filtering will be applied to field mapping rules.
Exceptions
ExceptionCondition
AdkMappingException thrown if an error occurs while evaluating a field rule

Assembly: Edustructures.SifWorks.Adk (Module: Edustructures.SifWorks.Adk) Version: 2.0.0.10