Constructor
new SchemaUnitClass(name, booleanAttributes, valueAttributes, units)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of this unit class. |
booleanAttributes |
Set.<SchemaAttribute> | The boolean attributes for this unit class. |
valueAttributes |
Map.<SchemaAttribute, *> | The value attributes for this unit class. |
units |
Map.<string, SchemaUnit> | The units for this unit class. |
- Source:
Classes
Members
_units :Map.<string, SchemaUnit>
The units for this unit class.
Type:
- Map.<string, SchemaUnit>
- Source:
defaultUnit
Get the default unit for this unit class.
- Source:
units
Get the units for this unit class.
- Source:
Methods
extractUnit() → {Array}
Extracts the Unit class and remainder
- Source:
Returns:
[SchemaUnit, string, string] containing unit class, unit string, and value string
- Type
- Array