@makakwastaken/ts-edifact
Version:
Edifact parser library
42 lines • 1.68 kB
TypeScript
/**
* @author Stefan Partheymüller
* @copyright 2021 Stefan Partheymüller
* @license Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { EdifactMessageSpecification } from './messageStructureParser';
import type { UNECEDomHandler } from './uneceDomHandler';
import { UNECEPageParser } from './unecePageParser';
/**
* This class is capable to parse legacy UN/EDIFACT message type specification
* pages from UNECE up to version D99A.
*/
export declare class UNECEStructurePageParser extends UNECEPageParser {
readonly segmentNames: string[];
constructor(spec: EdifactMessageSpecification);
protected setupHandler(): UNECEDomHandler;
private addSegmentName;
private parseSegmentGroup;
/**
* Parses a segment (e.g. UNH, UNT, UNS)
* @param name The name of the segment (e.g. UNH)
* @param section The section as a whole (e.g. UNH+123+123+[...])
* @param descriptionString The description of the segment
* @returns The parsed segment
*/
private parseSegment;
private parseSegmentGroupLevel;
private isSegmentGroupEnd;
}
//# sourceMappingURL=uneceStructurePageParser.d.ts.map