UNPKG

isoxml-angular

Version:

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

29 lines (28 loc) 950 B
import { TAGS } from './constants'; import { ISOXMLManager } from '../ISOXMLManager'; import { XMLElement } from '../types'; import { Entity, EntityConstructor, ISOXMLReference } from '../types'; export type FarmAttributes = { FarmDesignator: string; FarmStreet?: string; FarmPOBox?: string; FarmPostalCode?: string; FarmCity?: string; FarmState?: string; FarmCountry?: string; CustomerIdRef?: ISOXMLReference; ProprietaryAttributes?: { [name: string]: string; }; ProprietaryTags?: { [tag: string]: XMLElement[]; }; }; export declare class Farm implements Entity { attributes: FarmAttributes; isoxmlManager: ISOXMLManager; tag: TAGS; constructor(attributes: FarmAttributes, isoxmlManager: ISOXMLManager); static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>; toXML(): XMLElement; }