Skip to content

LinSegment

LinSegment models the X12 LIN item-identification segment, used to attach a coded item/product identifier and its qualifier to a line within a transaction, notably leaving element 1 unused and beginning at element 2.

Purpose

  • Represents the LIN segment identity via SegmentId returning the literal "LIN" (BR-020).
  • Carries Qualifier (the item-identifier code qualifier) and CodeValue (the item identifier itself), both starting at element 2.

Context

  • Namespace: SAIF.Common.Files.Edi.Segments
  • Assembly/package: SAIF.Framework.Common.Files

Public members

Member Signature Purpose
SegmentId string SegmentId { get; } Returns the literal X12 segment identifier "LIN".
Qualifier string Qualifier { get; set; } The item-identifier code qualifier (LIN02), element 2.
CodeValue string CodeValue { get; set; } The item identifier value (LIN03), element 3.
Build IEdiSegment Build() Creates a SegmentBuilder("LIN") and adds Qualifier at element 2 and CodeValue at element 3, leaving element 1 unset, returning the built segment.
Fill void Fill(IEdiSegment segment) Reads elements 2-3 via GetChildValue into Qualifier and CodeValue.
Parse static LinSegment Parse(IEdiSegment segment) Instantiates a new LinSegment, calls Fill(segment) on it, and returns it.

Sources

  • Common\SAIF.Common.Files\Edi\Segments\LinSegment.cs