API Reference
classes
Smartliteral

@coasys/ad4m / Exports / SmartLiteral

Class: SmartLiteral

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new SmartLiteral(perspective, base)

Parameters

NameType
perspectivePerspectiveProxy
basestring

Defined in

SmartLiteral.ts:23 (opens in a new tab)

Properties

#base

Private #base: string

Defined in

SmartLiteral.ts:21 (opens in a new tab)


#perspective

Private #perspective: PerspectiveProxy

Defined in

SmartLiteral.ts:20 (opens in a new tab)

Accessors

base

get base(): string

Returns

string

Defined in

SmartLiteral.ts:28 (opens in a new tab)

Methods

get

get(): Promise<any>

Returns

Promise<any>

Defined in

SmartLiteral.ts:54 (opens in a new tab)


set

set(content): Promise<void>

Parameters

NameType
contentany

Returns

Promise<void>

Defined in

SmartLiteral.ts:67 (opens in a new tab)


create

Static create(perspective, literal): Promise<SmartLiteral>

Parameters

NameType
perspectivePerspectiveProxy
literalany

Returns

Promise<SmartLiteral>

Defined in

SmartLiteral.ts:32 (opens in a new tab)


getAllSmartLiterals

Static getAllSmartLiterals(perspective): Promise<SmartLiteral[]>

Parameters

NameType
perspectivePerspectiveProxy

Returns

Promise<SmartLiteral[]>

Defined in

SmartLiteral.ts:47 (opens in a new tab)


isSmartLiteralBase

Static isSmartLiteralBase(perspective, base): Promise<boolean>

Parameters

NameType
perspectivePerspectiveProxy
basestring

Returns

Promise<boolean>

Defined in

SmartLiteral.ts:39 (opens in a new tab)