Class EdiFactParser
- Namespace
- EDIParser
- Assembly
- EDIParser.dll
Parses UN/EDIFACT messages using the delimiter values defined by the UNA service string advice segment.
public sealed class EdiFactParser : Parser, IComponent, IDisposable
- Inheritance
-
EdiFactParser
- Implements
- Inherited Members
Remarks
The parser is initialized with the default EDIFACT separators and replaces them with the delimiter values contained in the source UNA segment during parsing.
Constructors
EdiFactParser()
Initializes a new instance of the EdiFactParser class using the default EDIFACT delimiters.
public EdiFactParser()
Properties
DecimalNotation
Gets or sets the EDIFACT decimal-notation character.
public string DecimalNotation { get; set; }
Property Value
ReleaseIndicator
Gets or sets the EDIFACT release indicator used to escape delimiter characters.
public string ReleaseIndicator { get; set; }
Property Value
Methods
Message()
Rebuilds the current EDIFACT message, including its UNA service string advice segment.
public override string Message()
Returns
- string
The reconstructed UNA segment followed by the generated EDIFACT message.
ParseMsg(string)
Parses an EDIFACT message and populates the parser object model.
public override void ParseMsg(string msg)
Parameters
msgstringThe EDIFACT message beginning with a UNA service string advice segment.
Remarks
The component, field, decimal, release, repetition, and segment separators are read from their fixed UNA positions before the remainder of the message is passed to the base parser.
Exceptions
- ArgumentNullException
Thrown when
msgis null.- ArgumentException
Thrown when the message is too short to contain the UNA delimiter definition.