Click or drag to resize

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>] }
Inheritance Hierarchy

Namespace:  MFiles.VAF.Configuration.JsonMapping.Converters
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
public class IDToMFIdentiferConverter : IJsonValueConverter

The IDToMFIdentiferConverter type exposes the following members.

Public propertyResolver
Used to resolve id's from references. Not technically used for resolution here, but to generate an inverse converter.
Public propertyType
The type of structure element being IDed/Referenced.
Public propertyWriteIdAsString
Indicates whether we id values were written as strings instead of integers.
Public methodConvertValue
Copies a reference value from the source to the target value if one is available, replacing the raw ID value.
Public methodInvert
Provides a reverse converter, for mapping values in the opposite direction.
See Also