Show / Hide Table of Contents

Class BoEdiMapper

This class performs the mapping of BO4E values to the corresponding EDIFACT values.

Inheritance
System.Object
BoEdiMapper
Namespace: BO4E
Assembly: BO4Enet.dll
Syntax
public class BoEdiMapper : object

Fields

| Improve this Doc View Source

_logger

project wide logger

Declaration
public static ILogger _logger
Field Value
Type Description
ILogger

Methods

| Improve this Doc View Source

ReplaceWithEdiValues(Object)

Consumes a BusinessObject or BO4E COMponent and replaces all ENUM values with corresponding EDIFACT values. The result is a JObject with a similar structure as the original BO/COM but contains EDIFACT compliant string values where the original BO had BO4E compliant enum values.

Declaration
public static JObject ReplaceWithEdiValues(Object o)
Parameters
Type Name Description
Object o

Valid Business Object or BO4E COMponent

Returns
Type Description
JObject

JObject with same structure as original object

| Improve this Doc View Source

ToEdi(String, String)

transform a BO4E value of known type to an EDIFACT value

Declaration
public static string ToEdi(string objectName, string objectValue)
Parameters
Type Name Description
System.String objectName

name of the BO4E datatypeNetzebene

System.String objectValue

BO4E valueHSP

Returns
Type Description
System.String
  • null
    if the objectValue is null or no mapping is specified for the given type/value combination
  • the corresponding EDIFACT value
  • objectValue iff no mapping was defined but objectValue is already a valid EDIFACT value (e.g. for "Landescode"s)
Examples
string ediValue = BoEdiMapper.toEdi("Netzebene", "NSP"); // returns "E06"
See Also
fromEdi(String, String)

Extension Methods

BusinessObjectExtensions.DeepClone<T>(T)
COMExtensions.DeepClone<T>(T)

See Also

EdiBoMapper
  • Improve this Doc
  • View Source
Back to top Generated by DocFX