diff --git a/src/DCC.ts b/src/DCC.ts index e944d0a3c9451027a2d3ab3547204ff42b120da1..57f0bef5a63b331cefc80854918361d962e9d358 100644 --- a/src/DCC.ts +++ b/src/DCC.ts @@ -1250,17 +1250,28 @@ export class ListType extends DCCXMLElement { export class RelativeUncertaintyType extends DCCXMLElement { // region choice - relativeUncertaintyXmlList?: si.RealListXMLListType; - relativeUncertaintySingle?: si.RealQuantityType; - + relativeUncertaintyXmlList?: RelativeUncertaintyXmlList; + relativeUncertaintySingle?: RelativeUncertaintySingle; // endregion choice constructor(el: Partial<RelativeUncertaintyType> = {}) { super(el); // choice - if (el.relativeUncertaintyXmlList) this.relativeUncertaintyXmlList = new si.RealListXMLListType(el.relativeUncertaintyXmlList); - else if (el.relativeUncertaintySingle) this.relativeUncertaintySingle = new si.RealQuantityType(el.relativeUncertaintySingle); + if (el.relativeUncertaintyXmlList) this.relativeUncertaintyXmlList = new RelativeUncertaintyXmlList(el.relativeUncertaintyXmlList); + else if (el.relativeUncertaintySingle) this.relativeUncertaintySingle = new RelativeUncertaintySingle(el.relativeUncertaintySingle); + } +} + +export class RelativeUncertaintyXmlList extends si.RealListXMLListType { + get ns(): string { + return DCC.namespace; + } +} + +export class RelativeUncertaintySingle extends si.RealQuantityType { + get ns(): string { + return DCC.namespace; } }