AnIML / schemas

AnIML XML schemas
17 stars 10 forks source link

(SI)UnitType is definited multiple times #6

Closed Mailaender closed 3 years ago

Mailaender commented 3 years ago

astm.core.UnitType and astm.core.SIUnitType but also astm.technique.UnitType and astm.technique.SIUnitType exist, which causes problems when implementing this in strictly type safe languages such as Java from automatically generated code using xjc. It also looks like the definitions are completely redundant.

burkhardschaefer commented 3 years ago

They are actually not the same. Quantities are handled differently in techniques AnIML documents. Documents have the quantity as an attribute to the Unit. In techniques, s are a child to , because you need to provide a list of permitted units. Hope this helps.