Extensions.I18n.LocalizeQuantityToUnitGroup
Revision as of 03:36, 5 August 2014 by Nb (talk | contribs) (Created page with "Category:i18n == Classification == {{ClassificationActivity | LocalizeQuantityToUnitGroup | Transforms a NumericQuantity to a particular group of units | Term | i18n...")
Contents
Classification
| Name | LocalizeQuantityToUnitGroup |
| Short Description | Transforms a NumericQuantity to a particular group of units |
| Class | Term |
| Extension | OTX i18n extension |
| Group | Quantity related terms |
| Exceptions | UnknownUnitException InvalidConversionException |
| Checker Rules | Quantities_Chk001 |
| Standard Compliant | Yes |
Pseudo-Code Syntax
Quantity LocalizeQuantityToUnitGroup(Quantity quantity, EquivalentUnitGroup equivalentUnitGroup);Description
The LocalizeQuantityToUnitGroup term is a NumericQuantity turn to a particular group of units.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
| Data Type | Description |
| Quantity | A transformed NumericQuantity in a specified unit group. |
Properties
| Name | Data Type | Class | Default | Cardinality | Description |
| Quantity | Quantity | Term | - | [1] | The Quantity that is located in the specified unit group. |
| EquivalentUnitGroup | - | Reference | - | [1] | Reference to the appropriate location in an XML document with the correct specification of the unit in a form of UNIT-SPEC elements of the ISO standard ODX |
Examples
Quantity result = LocalizeQuantityToUnitGroup(quantity, equivalentUnitGroup);