Constant Class
A Constant is a specific type of Unit that represents a number.
Extends
Methods
Name |
Description |
|
constructor(schema: Schema, name: string): Constant |
|
|
fromJSON(constantProps: ConstantProps): Promise<void> |
|
|
fromJSONSync(constantProps: ConstantProps): void |
|
|
toJSON(standalone: booleanfalse, includeSchemaVersion: booleanfalse): ConstantProps |
Save this Constants properties to an object for serializing to JSON. |
|
Inherited methods
Name |
Inherited from |
Description |
equalByKey(thisSchemaItem: SchemaItem, thatSchemaItemOrKey?: SchemaItemKey | SchemaItem): boolean Static Inherited |
SchemaItem |
Indicates if the two SchemaItem objects are equal by comparing their respective key properties. |
parseFullName(fullName: string): [string, string] Static Inherited |
SchemaItem |
Parses the given full name, {schemaName}.{schemaItemName} or {schemaName}:{schemaItemName}, into two separate strings. |
Properties
Name |
Type |
Description |
|
_definition Protected |
string |
|
|
_denominator Protected |
number | undefined |
|
|
_numerator Protected |
number | undefined |
|
|
_phenomenon Protected |
LazyLoadedPhenomenon | undefined |
|
|
definition Accessor ReadOnly |
string |
|
|
denominator Accessor ReadOnly |
number |
|
|
hasDenominator Accessor ReadOnly |
boolean |
|
|
hasNumerator Accessor ReadOnly |
boolean |
|
|
numerator Accessor ReadOnly |
number |
|
|
phenomenon Accessor ReadOnly |
undefined | LazyLoadedPhenomenon |
|
|
schemaItemType Readonly |
Constant |
|
|
Inherited properties
Defined in
Last Updated: 17 December, 2024