SegmentAttribute Class
Click or drag to resize

SegmentAttribute Class

EDI DOM attribute to mark an EDI segment. EDI segments are identified by their tag (or EDI segment ID) and then the values of the first two EDI data elements, if any of them is defined with EDI data element codes. The EDI parser will search for matches based on the EDI segment tag first and then will match the values of the first EDI data element if it's not null. If there was a match for the first EDI data element then the EDI parser will try and match the second EDI data element. This is useful where multiple same-tag EDI segments can appear in a non-sequence EDI group based on the context of the EDI transaction. Example would be HIPPA NM1 receiver name or NM1 submitter name.
Inheritance Hierarchy

Namespace:  EdiFabric.Core.Annotations.Edi
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.0.0.0 (9.7.4.0)
Syntax
public sealed class SegmentAttribute : EdiAttribute

The SegmentAttribute type exposes the following members.

Constructors
  NameDescription
Public methodSegmentAttribute
Initializes a new instance of the SegmentAttribute class.
Top
Properties
  NameDescription
Public propertyFirst
The EDI data element to match first.
Public propertySecond
The EDI data element to match second.
Top
Extension Methods
  NameDescription
Public Extension MethodValidate(SyntaxSet, Char)Overloaded.
Validates an EDI item according to its EDI DOM validation attributes.
(Defined by ValidationExtensions.)
Public Extension MethodValidate(Int32, SyntaxSet, Char, Int32)Overloaded.
Validates an item according to its EDI DOM validation attributes. This is internally called to validate an EdiMessage.
(Defined by ValidationExtensions.)
Top
See Also