Skip to content
Snippets Groups Projects
Verified Commit 06ae17a4 authored by Jan Loewe's avatar Jan Loewe :speech_balloon:
Browse files

fix(dsi): fix element names

parent 2460fd37
No related branches found
No related tags found
No related merge requests found
import { XMLElement } from "../XMLElement";
export class ExpandedUnc extends XMLElement {
uncertainty: XMLElement;
coverageFactor: XMLElement;
coverageProbability: XMLElement;
distribution?: XMLElement;
si_uncertainty: XMLElement;
si_coverageFactor: XMLElement;
si_coverageProbability: XMLElement;
si_distribution?: XMLElement;
constructor(options?: Partial<ExpandedUnc>) {
super(options);
this.uncertainty = new XMLElement(options.uncertainty);
this.coverageFactor = new XMLElement(options.coverageFactor);
this.coverageProbability = new XMLElement(options.coverageProbability);
this.si_uncertainty = new XMLElement(options.si_uncertainty);
this.si_coverageFactor = new XMLElement(options.si_coverageFactor);
this.si_coverageProbability = new XMLElement(options.si_coverageProbability);
if (options.distribution)
this.distribution = new XMLElement(options.distribution);
if (options.si_distribution)
this.si_distribution = new XMLElement(options.si_distribution);
}
}
......@@ -3,29 +3,29 @@ import { ExpandedUnc } from "./ExpandedUnc";
export class Real extends XMLElement {
// TODO: Add missing types
label?: XMLElement;
value: XMLElement;
unit: XMLElement;
dateTime?: XMLElement;
si_label?: XMLElement;
si_value: XMLElement;
si_unit: XMLElement;
si_dateTime?: XMLElement;
expandedUnc?: ExpandedUnc;
coverageInterval?: any;
si_expandedUnc?: ExpandedUnc;
si_coverageInterval?: any;
constructor(options?: Partial<Real>) {
super(options);
if (options.label)
this.label = new XMLElement(options.label);
if (options.si_label)
this.si_label = new XMLElement(options.si_label);
this.value = new XMLElement(options.value);
this.unit = new XMLElement(options.unit);
this.si_value = new XMLElement(options.si_value);
this.si_unit = new XMLElement(options.si_unit);
if (options.dateTime)
this.dateTime = new XMLElement(options.dateTime);
if (options.si_dateTime)
this.si_dateTime = new XMLElement(options.si_dateTime);
if (options.expandedUnc)
this.expandedUnc = new ExpandedUnc(options.expandedUnc);
else if (options.coverageInterval)
this.coverageInterval = options.coverageInterval;
if (options.si_expandedUnc)
this.si_expandedUnc = new ExpandedUnc(options.si_expandedUnc);
else if (options.si_coverageInterval)
this.si_coverageInterval = options.si_coverageInterval;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment