API / geotoolkit / util / AbstractUnitFactory / AbstractUnitFactory
util.AbstractUnitFactory.AbstractUnitFactory
Abstract factory for unit factory
AbstractUnitFactory
Constructors
Methods
▸ getClassName(): string
string
▸ Abstract getTimeStamp(): number
Returns the time stamp (version) of unit factory. This value will be updated whenever modification made.
number
▸ Abstract getUnit(value, quantityType?, nullIfNotExist?): AbstractUnit
Returns an instance of unit based on specified information
| Name | Type | Description |
|---|---|---|
value | string | AbstractUnit | represent the {string} name, {string} symbol or {AbstractUnit} unit to be created |
Optional quantityType | string[] | expected quantity types |
Optional nullIfNotExist | boolean | return null if unit does not exist instead of returning a user-defined unit |
▸ Static getClassName(): string
string
▸ Static getDefaultFactory(): UnitFactory
Returns instance of unit factory
factory
▸ Static setType(type): void
Returns instance of unit factory
| Name | Type | Description |
|---|---|---|
type | typeof UnitFactory | factory ctor |
void