UNPKG

isoxml-angular

Version:

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

67 lines (66 loc) 1.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GuidanceShift = void 0; const classRegistry_1 = require("../classRegistry"); const utils_1 = require("../utils"); const ATTRIBUTES = { A: { name: 'GuidanceGroupIdRef', type: 'xs:IDREF', isPrimaryId: false, isOptional: true, isOnlyV4: undefined, }, B: { name: 'GuidancePatternIdRef', type: 'xs:IDREF', isPrimaryId: false, isOptional: true, isOnlyV4: undefined, }, C: { name: 'GuidanceEastShift', type: 'xs:long', isPrimaryId: false, isOptional: true, isOnlyV4: undefined, minValue: -2147483648, maxValue: 2147483647, }, D: { name: 'GuidanceNorthShift', type: 'xs:long', isPrimaryId: false, isOptional: true, isOnlyV4: undefined, minValue: -2147483648, maxValue: 2147483647, }, E: { name: 'PropagationOffset', type: 'xs:long', isPrimaryId: false, isOptional: true, isOnlyV4: undefined, minValue: -2147483648, maxValue: 2147483647, }, }; const CHILD_TAGS = { ASP: { name: 'AllocationStamp', isOnlyV4: undefined }, }; class GuidanceShift { constructor(attributes, isoxmlManager) { this.attributes = attributes; this.isoxmlManager = isoxmlManager; this.tag = "GST" /* TAGS.GuidanceShift */; } static fromXML(xml, isoxmlManager, internalId, targetClass = GuidanceShift) { return (0, utils_1.fromXML)(xml, isoxmlManager, targetClass, ATTRIBUTES, CHILD_TAGS, internalId); } toXML() { return (0, utils_1.toXML)(this, ATTRIBUTES, CHILD_TAGS); } } exports.GuidanceShift = GuidanceShift; (0, classRegistry_1.registerEntityClass)('main', "GST" /* TAGS.GuidanceShift */, GuidanceShift);