new $k.Unit(symbol, quantityKindopt)
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
symbol | string | | Either the unit symbol of a configured unit, or the unit configuration element  | |
quantityKind | $k. | <optional> | The quantity kind of the unit. This is necessary when the first parameter is a string and multiple units with the same symbol exist in different qunatity kinds.  | 
Throws:
If the parameter is a semantic element other than a unit configuration element
Methods
name() → {string}
- Since
 - 5.4.2
 
Returns:
The unit/quantity name
- Type:
 - string
 
quantityKind() → {$k.QuantityKind}
- Since
 - 5.4.2
 
Returns:
The quantity kind
- Type:
 - $k.
QuantityKind  
symbol() → {string}
- Since
 - 5.4.2
 
Returns:
The unit/quantity symbol
- Type:
 - string