IDToMFIdentiferConverter Class

Converts an structure element ID value in a source JSON structure to an MFIdentifier in a target JSON structure. If the source JSON contains a ghost property that contains the original references for the structure elements, the reference will be used instead of the id. The ghost property will be named using the name of the property that contains the id value, followed by "-OriginalReferences". Typically the ghost properties are generated by this convert's companion: MFIdentiferToIDConverter. For example: { classID: <id> classID-OriginalReferences: <reference> } or { classIDs: [ <id1>, <id2>, <id3>] classID-OriginalReferences:: [ <reference1>, <reference2>, <reference3>] }

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping.Converters
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public class IDToMFIdentiferConverter : IJsonValueConverter
Inheritance
Object    IDToMFIdentiferConverter
Implements
IJsonValueConverter

Constructors

Properties

Resolver Used to resolve id's from references. Not technically used for resolution here, but to generate an inverse converter.
Type The type of structure element being IDed/Referenced.
WriteIdAsString Indicates whether we id values were written as strings instead of integers.

Methods

ConvertValue Copies a reference value from the source to the target value if one is available, replacing the raw ID value.
Invert Provides a reverse converter, for mapping values in the opposite direction.

See Also