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
SystemObject
  MFiles.VAF.Configuration.JsonMapping.ConvertersIDToMFIdentiferConverter

Namespace:  MFiles.VAF.Configuration.JsonMapping.Converters
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public class IDToMFIdentiferConverter : IJsonValueConverter

The IDToMFIdentiferConverter type exposes the following members.

Constructors
Properties
  NameDescription
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.
Top
Methods
  NameDescription
Public methodConvertValue
Copies a reference value from the source to the target value if one is available, replacing the raw ID value.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvert
Provides a reverse converter, for mapping values in the opposite direction.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also