Skip to content

@jimka/typescript-ui / core / BaseObject

Class: BaseObject

Defined in: src/typescript/lib/core/BaseObject.ts:11

Base class for all library objects. Automatically assigns a unique identifier on construction.

Extended by

Constructors

new BaseObject()

ts
new BaseObject(): BaseObject

Defined in: src/typescript/lib/core/BaseObject.ts:15

Returns

BaseObject

Methods

getClassName()

ts
getClassName(): string

Defined in: src/typescript/lib/core/BaseObject.ts:44

Returns the runtime class name of this object.

Returns

string

The name of the constructor function as a string.


getId()

ts
getId(): string

Defined in: src/typescript/lib/core/BaseObject.ts:24

Returns the unique identifier for this object.

Returns

string

The UUID string assigned at construction time.


setId()

ts
setId(id: string): this

Defined in: src/typescript/lib/core/BaseObject.ts:33

Sets the unique identifier for this object.

Parameters

id

string

The new identifier string to assign.

Returns

this