UNPKG

isoxml

Version:

JavaScript library to parse and generate ISOXML (ISO11783-10) files

31 lines (30 loc) 1.14 kB
import { TAGS } from './constants'; import { ISOXMLManager } from '../ISOXMLManager'; import { XMLElement } from '../types'; import { CodedCommentListValue } from './CodedCommentListValue'; import { Entity, EntityConstructor, ISOXMLReference } from '../types'; export declare enum CodedCommentCodedCommentScopeEnum { Point = "1", Global = "2", Continuous = "3" } export type CodedCommentAttributes = { CodedCommentDesignator: string; CodedCommentScope: CodedCommentCodedCommentScopeEnum; CodedCommentGroupIdRef?: ISOXMLReference; CodedCommentListValue?: CodedCommentListValue[]; ProprietaryAttributes?: { [name: string]: string; }; ProprietaryTags?: { [tag: string]: XMLElement[]; }; }; export declare class CodedComment implements Entity { attributes: CodedCommentAttributes; isoxmlManager: ISOXMLManager; tag: TAGS; constructor(attributes: CodedCommentAttributes, isoxmlManager: ISOXMLManager); static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>; toXML(): XMLElement; }