UNPKG

isoxml-angular

Version:

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

25 lines (24 loc) 901 B
import { TAGS } from './constants'; import { ISOXMLManager } from '../ISOXMLManager'; import { XMLElement } from '../types'; import { CropVariety } from './CropVariety'; import { Entity, EntityConstructor, ISOXMLReference } from '../types'; export type CropTypeAttributes = { CropTypeDesignator: string; ProductGroupIdRef?: ISOXMLReference; CropVariety?: CropVariety[]; ProprietaryAttributes?: { [name: string]: string; }; ProprietaryTags?: { [tag: string]: XMLElement[]; }; }; export declare class CropType implements Entity { attributes: CropTypeAttributes; isoxmlManager: ISOXMLManager; tag: TAGS; constructor(attributes: CropTypeAttributes, isoxmlManager: ISOXMLManager); static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>; toXML(): XMLElement; }