Difference between revisions of "Extensions.I18n.LocalizeQuantityToUnitGroup"
Jump to navigation
Jump to search
(Created page with "Category:i18n == Classification == {{ClassificationActivity | LocalizeQuantityToUnitGroup | Transforms a NumericQuantity to a particular group of units | Term | i18n...") |
|||
Line 3: | Line 3: | ||
{{ClassificationActivity | LocalizeQuantityToUnitGroup | Transforms a NumericQuantity to a particular group of units | [[Term]] | [[i18n|OTX i18n extension]] | [[Quantity related terms]] | [[UnknownUnitException]] <br/> [[InvalidConversionException]] | [[QuantitiesChk001|Quantities_Chk001]] }} | {{ClassificationActivity | LocalizeQuantityToUnitGroup | Transforms a NumericQuantity to a particular group of units | [[Term]] | [[i18n|OTX i18n extension]] | [[Quantity related terms]] | [[UnknownUnitException]] <br/> [[InvalidConversionException]] | [[QuantitiesChk001|Quantities_Chk001]] }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | QuantityTerm = I18n.LocalizeQuantityToUnitGroup(QuantityTerm, EquivalentUnitGroup); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 20: | Line 20: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Quantity | + | Quantities.Quantity Quantity1; |
+ | Quantities.Quantity Quantity2; | ||
+ | |||
+ | Quantity2 = I18n.LocalizeQuantityToUnitGroup(Quantity1, null); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | == See also == | ||
[[LocalizeQuantity]] | [[LocalizeQuantity]] |
Revision as of 08:14, 10 February 2015
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 |
OTL Syntax
QuantityTerm = I18n.LocalizeQuantityToUnitGroup(QuantityTerm, 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 |
OTL Examples
Quantities.Quantity Quantity1;
Quantities.Quantity Quantity2;
Quantity2 = I18n.LocalizeQuantityToUnitGroup(Quantity1, null);