Skip to main content

DataMappingNodeConfiguration

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

Maps a value to another value by a list of mapping entries. A path that addresses one value maps that value and writes the result to targetPath. A path that can address several values (a wildcard such as $.Rows[*].Values[5], a recursive descent $..unit or a filter) maps every addressed element in place, without a loop and without a script: targetPath is then the same path or left out, a different one is rejected, the write settings (targetValueWriteMode, targetValueKind, documentMode) must stay at their defaults because the in-place write does not use them, null elements are skipped, elements without a matching mapping stay as they are, and a path that matches nothing only logs a warning.

public record DataMappingNodeConfiguration : SourceTargetPathNodeConfiguration, INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IPathNodeConfiguration, IEquatable<SourceTargetPathNodeConfiguration>, IEquatable<DataMappingNodeConfiguration>

Inheritance Object → NodeConfiguration → TargetPathNodeConfiguration → SourceTargetPathNodeConfiguration → DataMappingNodeConfiguration
Implements INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IPathNodeConfiguration, IEquatable<SourceTargetPathNodeConfiguration>, IEquatable<DataMappingNodeConfiguration>

Properties​

TargetValueType​

The target value type

public AttributeValueTypesDto TargetValueType { get; set; }

Property Value​

AttributeValueTypesDto

SourceValueType​

The source value type

public AttributeValueTypesDto SourceValueType { get; set; }

Property Value​

AttributeValueTypesDto

Mappings​

Defines the target type

public List<MappingEntry> Mappings { get; set; }

Property Value​

List<MappingEntry>

Path​

public string Path { get; set; }

Property Value​

String

TargetPath​

public string TargetPath { get; set; }

Property Value​

String

TargetValueWriteMode​

public TargetValueWriteModes TargetValueWriteMode { get; set; }

Property Value​

TargetValueWriteModes

TargetValueKind​

public ValueKinds TargetValueKind { get; set; }

Property Value​

ValueKinds

DocumentMode​

public DocumentModes DocumentMode { get; set; }

Property Value​

DocumentModes

Description​

public string Description { get; set; }

Property Value​

String

Constructors​

DataMappingNodeConfiguration()​

Caution​

Constructors of types with required members are not supported in this version of your compiler.


public DataMappingNodeConfiguration()