Files
imsInterface/interface/asm/dotnet/Oib5xMapper/generated_src/com.itac.oib.traceability.contracts.data/PrinterProcessStrokeMapper.cs
2025-06-06 09:15:13 +02:00

114 lines
5.8 KiB
C#

/*
* Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved.
*
* This software is protected by copyright. Under no circumstances may any part of this file in any form be copied,
* printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language
* without the written permission of iTAC Software AG.
*/
// created 05.11.2018 15:39:46
// skip property ExtensionDataObject, declared in PrinterProcessStroke
using System;
using System.Collections.Generic;
namespace com.itac.oib.traceability.contracts.data
{
// source: assembly 3.0.0.0
// source: assembly ASM.AS.OIB.Client
public class PrinterProcessStrokeMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
public static www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke get(PrinterProcessStroke itacPrinterProcessStroke)
{
if (itacPrinterProcessStroke == null) { return null; }
www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke asmPrinterProcessStroke = new www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke();
mapItac2Asm(asmPrinterProcessStroke, itacPrinterProcessStroke);
return asmPrinterProcessStroke;
}
public static void mapItac2Asm(www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke asmPrinterProcessStroke, PrinterProcessStroke itacPrinterProcessStroke)
{
// skip property ExtensionDataObject, declared in PrinterProcessStroke
// complex property Deviation, isArray:False, isGeneric:False
asmPrinterProcessStroke.Deviation = com.itac.oib.traceability.contracts.data.PrinterPrintDeviationMapper.get( itacPrinterProcessStroke.Deviation);
asmPrinterProcessStroke.Direction = itacPrinterProcessStroke.Direction;
asmPrinterProcessStroke.PrintPressure = itacPrinterProcessStroke.PrintPressure;
asmPrinterProcessStroke.PrintSpeed = itacPrinterProcessStroke.PrintSpeed;
asmPrinterProcessStroke.PrintingVariant = itacPrinterProcessStroke.PrintingVariant;
asmPrinterProcessStroke.ProFlowSystemPressure = itacPrinterProcessStroke.ProFlowSystemPressure;
}
// maps iTAC namespace conform array to ASM namespace array
public static www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke[] get(PrinterProcessStroke[] itacPrinterProcessStroke)
{
if (itacPrinterProcessStroke == null) { return null; }
www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke[] asmPrinterProcessStroke = new www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke[itacPrinterProcessStroke.Length];
for (int i = 0; i < itacPrinterProcessStroke.Length; i++)
{
// to itac array
asmPrinterProcessStroke[i] = PrinterProcessStrokeMapper.get(itacPrinterProcessStroke[i]);
}
return asmPrinterProcessStroke;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke> getList(PrinterProcessStroke[] asmPrinterProcessStroke)
{
if (asmPrinterProcessStroke == null) { return null; }
List<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke> itacPrinterProcessStroke = new List<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke>();
for (int i = 0; i < asmPrinterProcessStroke.Length; i++)
{
itacPrinterProcessStroke.Add(PrinterProcessStrokeMapper.get(asmPrinterProcessStroke[i]));
}
return itacPrinterProcessStroke;
}
// map type from ASM namespace to iTAC namespace
public static PrinterProcessStroke get(www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke asmPrinterProcessStroke)
{
if (asmPrinterProcessStroke == null) { return null; }
PrinterProcessStroke itacPrinterProcessStroke = new PrinterProcessStroke();
mapAsm2Itac(asmPrinterProcessStroke, itacPrinterProcessStroke);
return itacPrinterProcessStroke;
}
public static void mapAsm2Itac(www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke asmPrinterProcessStroke, PrinterProcessStroke itacPrinterProcessStroke)
{
// skip property ExtensionDataObject, declared in PrinterProcessStroke
itacPrinterProcessStroke.Deviation = com.itac.oib.traceability.contracts.data.PrinterPrintDeviationMapper.get(asmPrinterProcessStroke.Deviation);
// complex asm property Deviation
itacPrinterProcessStroke.Direction = asmPrinterProcessStroke.Direction;
itacPrinterProcessStroke.PrintPressure = asmPrinterProcessStroke.PrintPressure;
itacPrinterProcessStroke.PrintSpeed = asmPrinterProcessStroke.PrintSpeed;
itacPrinterProcessStroke.PrintingVariant = asmPrinterProcessStroke.PrintingVariant;
itacPrinterProcessStroke.ProFlowSystemPressure = asmPrinterProcessStroke.ProFlowSystemPressure;
}
// maps ASM namespace conform list to iTAC namespace array
public static PrinterProcessStroke[] getArray(IList<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke> asmPrinterProcessStroke)
{
if (asmPrinterProcessStroke == null) { return null; }
PrinterProcessStroke[] itacPrinterProcessStroke = new PrinterProcessStroke[asmPrinterProcessStroke.Count];
for (int i = 0; i < asmPrinterProcessStroke.Count; i++)
{
itacPrinterProcessStroke[i] = PrinterProcessStrokeMapper.get(asmPrinterProcessStroke[i]);
}
return itacPrinterProcessStroke;
}
// maps ASM namespace conform array to iTAC namespace array
public static PrinterProcessStroke[] getArray(www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PrinterProcessStroke[] asmPrinterProcessStroke)
{
if (asmPrinterProcessStroke == null) { return null; }
PrinterProcessStroke[] itacPrinterProcessStroke = new PrinterProcessStroke[asmPrinterProcessStroke.Length];
for (int i = 0; i < asmPrinterProcessStroke.Length; i++)
{
itacPrinterProcessStroke[i] = PrinterProcessStrokeMapper.get(asmPrinterProcessStroke[i]);
}
return itacPrinterProcessStroke;
}
}
}