Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dcc-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D-PTB
DCC
Development
dcc-js
Commits
fad5f6ab
Verified
Commit
fad5f6ab
authored
2 years ago
by
Jan Loewe
Browse files
Options
Downloads
Patches
Plain Diff
fix(namespace): fix namespace issue on RelativeUncertaintyType
Related to
d-ptb/dcc/gemimeg-tool#185
parent
1059b66c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!4
Update to DCC Schema V3.2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DCC.ts
+16
-5
16 additions, 5 deletions
src/DCC.ts
with
16 additions
and
5 deletions
src/DCC.ts
+
16
−
5
View file @
fad5f6ab
...
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment