Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/x12/src/X12Segment.ts>X12Segment

ASC X12 parser, generator, query engine, and mapper; now with support for streams.
Latest
class X12Segment
import { X12Segment } from "https://deno.land/x/x12@1.8.0-1/src/X12Segment.ts";

Constructors

new
X12Segment(tag?: string, options?: X12SerializationOptions)

Properties

elements: X12Element[]
range: Range
tag: string

Methods

private
_checkSupportedSegment(): boolean
private
_formatValues(values: string[]): void
private
_getX12Enumerable(): any
insertElement(value?, segmentPosition?): boolean
removeElement(segmentPosition: number): boolean
replaceElement(value: string, segmentPosition: number): X12Element | null
setElements(values: string[]): X12Segment
setTag(tag: string): void
toJSON(): object
valueOf(segmentPosition: number, defaultValue?: string): string | null