/// <summary>
 /// Initializes a new instance of the X12FramingSettings class.
 /// </summary>
 /// <param name="dataElementSeparator">The data element
 /// separator.</param>
 /// <param name="componentSeparator">The component separator.</param>
 /// <param name="replaceSeparatorsInPayload">The value indicating
 /// whether to replace separators in payload.</param>
 /// <param name="replaceCharacter">The replacement character.</param>
 /// <param name="segmentTerminator">The segment terminator.</param>
 /// <param name="characterSet">The X12 character set. Possible values
 /// include: 'NotSpecified', 'Basic', 'Extended', 'UTF8'</param>
 /// <param name="segmentTerminatorSuffix">The segment terminator
 /// suffix. Possible values include: 'NotSpecified', 'None', 'CR',
 /// 'LF', 'CRLF'</param>
 public X12FramingSettings(int dataElementSeparator, int componentSeparator, bool replaceSeparatorsInPayload, int replaceCharacter, int segmentTerminator, X12CharacterSet characterSet, SegmentTerminatorSuffix segmentTerminatorSuffix)
 {
     DataElementSeparator       = dataElementSeparator;
     ComponentSeparator         = componentSeparator;
     ReplaceSeparatorsInPayload = replaceSeparatorsInPayload;
     ReplaceCharacter           = replaceCharacter;
     SegmentTerminator          = segmentTerminator;
     CharacterSet            = characterSet;
     SegmentTerminatorSuffix = segmentTerminatorSuffix;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the X12DelimiterOverrides class.
 /// </summary>
 /// <param name="dataElementSeparator">The data element
 /// separator.</param>
 /// <param name="componentSeparator">The component separator.</param>
 /// <param name="segmentTerminator">The segment terminator.</param>
 /// <param name="segmentTerminatorSuffix">The segment terminator
 /// suffix. Possible values include: 'NotSpecified', 'None', 'CR',
 /// 'LF', 'CRLF'</param>
 /// <param name="replaceCharacter">The replacement character.</param>
 /// <param name="replaceSeparatorsInPayload">The value indicating
 /// whether to replace separators in payload.</param>
 /// <param name="protocolVersion">The protocol version.</param>
 /// <param name="messageId">The message id.</param>
 /// <param name="targetNamespace">The target namespace on which this
 /// delimiter settings has to be applied.</param>
 public X12DelimiterOverrides(int dataElementSeparator, int componentSeparator, int segmentTerminator, SegmentTerminatorSuffix segmentTerminatorSuffix, int replaceCharacter, bool replaceSeparatorsInPayload, string protocolVersion = default(string), string messageId = default(string), string targetNamespace = default(string))
 {
     ProtocolVersion            = protocolVersion;
     MessageId                  = messageId;
     DataElementSeparator       = dataElementSeparator;
     ComponentSeparator         = componentSeparator;
     SegmentTerminator          = segmentTerminator;
     SegmentTerminatorSuffix    = segmentTerminatorSuffix;
     ReplaceCharacter           = replaceCharacter;
     ReplaceSeparatorsInPayload = replaceSeparatorsInPayload;
     TargetNamespace            = targetNamespace;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the EdifactFramingSettings class.
 /// </summary>
 /// <param name="protocolVersion">The protocol version.</param>
 /// <param name="dataElementSeparator">The data element
 /// separator.</param>
 /// <param name="componentSeparator">The component separator.</param>
 /// <param name="segmentTerminator">The segment terminator.</param>
 /// <param name="releaseIndicator">The release indicator.</param>
 /// <param name="repetitionSeparator">The repetition separator.</param>
 /// <param name="characterSet">The EDIFACT frame setting characterSet.
 /// Possible values include: 'NotSpecified', 'UNOB', 'UNOA', 'UNOC',
 /// 'UNOD', 'UNOE', 'UNOF', 'UNOG', 'UNOH', 'UNOI', 'UNOJ', 'UNOK',
 /// 'UNOX', 'UNOY', 'KECA'</param>
 /// <param name="decimalPointIndicator">The EDIFACT frame setting
 /// decimal indicator. Possible values include: 'NotSpecified',
 /// 'Comma', 'Decimal'</param>
 /// <param name="segmentTerminatorSuffix">The EDIFACT frame setting
 /// segment terminator suffix. Possible values include: 'NotSpecified',
 /// 'None', 'CR', 'LF', 'CRLF'</param>
 /// <param name="serviceCodeListDirectoryVersion">The service code list
 /// directory version.</param>
 /// <param name="characterEncoding">The character encoding.</param>
 public EdifactFramingSettings(int protocolVersion, int dataElementSeparator, int componentSeparator, int segmentTerminator, int releaseIndicator, int repetitionSeparator, EdifactCharacterSet characterSet, EdifactDecimalIndicator decimalPointIndicator, SegmentTerminatorSuffix segmentTerminatorSuffix, string serviceCodeListDirectoryVersion = default(string), string characterEncoding = default(string))
 {
     ServiceCodeListDirectoryVersion = serviceCodeListDirectoryVersion;
     CharacterEncoding       = characterEncoding;
     ProtocolVersion         = protocolVersion;
     DataElementSeparator    = dataElementSeparator;
     ComponentSeparator      = componentSeparator;
     SegmentTerminator       = segmentTerminator;
     ReleaseIndicator        = releaseIndicator;
     RepetitionSeparator     = repetitionSeparator;
     CharacterSet            = characterSet;
     DecimalPointIndicator   = decimalPointIndicator;
     SegmentTerminatorSuffix = segmentTerminatorSuffix;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the EdifactDelimiterOverride class.
 /// </summary>
 /// <param name="dataElementSeparator">The data element
 /// separator.</param>
 /// <param name="componentSeparator">The component separator.</param>
 /// <param name="segmentTerminator">The segment terminator.</param>
 /// <param name="repetitionSeparator">The repetition separator.</param>
 /// <param name="segmentTerminatorSuffix">The segment terminator
 /// suffix. Possible values include: 'NotSpecified', 'None', 'CR',
 /// 'LF', 'CRLF'</param>
 /// <param name="decimalPointIndicator">The decimal point indicator.
 /// Possible values include: 'NotSpecified', 'Comma', 'Decimal'</param>
 /// <param name="releaseIndicator">The release indicator.</param>
 /// <param name="messageId">The message id.</param>
 /// <param name="messageVersion">The message version.</param>
 /// <param name="messageRelease">The message release.</param>
 /// <param name="messageAssociationAssignedCode">The message
 /// association assigned code.</param>
 /// <param name="targetNamespace">The target namespace on which this
 /// delimiter settings has to be applied.</param>
 public EdifactDelimiterOverride(int dataElementSeparator, int componentSeparator, int segmentTerminator, int repetitionSeparator, SegmentTerminatorSuffix segmentTerminatorSuffix, EdifactDecimalIndicator decimalPointIndicator, int releaseIndicator, string messageId = default(string), string messageVersion = default(string), string messageRelease = default(string), string messageAssociationAssignedCode = default(string), string targetNamespace = default(string))
 {
     MessageId                      = messageId;
     MessageVersion                 = messageVersion;
     MessageRelease                 = messageRelease;
     DataElementSeparator           = dataElementSeparator;
     ComponentSeparator             = componentSeparator;
     SegmentTerminator              = segmentTerminator;
     RepetitionSeparator            = repetitionSeparator;
     SegmentTerminatorSuffix        = segmentTerminatorSuffix;
     DecimalPointIndicator          = decimalPointIndicator;
     ReleaseIndicator               = releaseIndicator;
     MessageAssociationAssignedCode = messageAssociationAssignedCode;
     TargetNamespace                = targetNamespace;
     CustomInit();
 }
        internal static string ToSerializedValue(this SegmentTerminatorSuffix value)
        {
            switch (value)
            {
            case SegmentTerminatorSuffix.NotSpecified:
                return("NotSpecified");

            case SegmentTerminatorSuffix.None:
                return("None");

            case SegmentTerminatorSuffix.CR:
                return("CR");

            case SegmentTerminatorSuffix.LF:
                return("LF");

            case SegmentTerminatorSuffix.CRLF:
                return("CRLF");
            }
            return(null);
        }