跳到主要内容
版本:0.7.x

AbstractCollection

@agros/common / AbstractCollection

Class: AbstractCollection

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AbstractCollection()

Defined in

packages/agros-common/src/collection.ts:40

Properties

entities

Protected entities: EntityDescriptor[] = []

Defined in

packages/agros-common/src/collection.ts:38


projectConfig

Protected Readonly projectConfig: ProjectConfigParser

Defined in

packages/agros-common/src/collection.ts:37

Methods

generate

Abstract generate(props): Promise<CollectionGenerateResult>

Parameters

NameType
propsany

Returns

Promise<CollectionGenerateResult>

Defined in

packages/agros-common/src/collection.ts:142


getEntityDescriptor

Protected getEntityDescriptor(pathname): EntityDescriptor

Parameters

NameType
pathnamestring

Returns

EntityDescriptor

Defined in

packages/agros-common/src/collection.ts:119


modulesPath

Protected modulesPath(pathname?): string

Parameters

NameType
pathname?string

Returns

string

Defined in

packages/agros-common/src/collection.ts:65


projectPath

Protected projectPath(pathname?): string

Parameters

NameType
pathname?string

Returns

string

Defined in

packages/agros-common/src/collection.ts:49


srcPath

Protected srcPath(pathname?): string

Parameters

NameType
pathname?string

Returns

string

Defined in

packages/agros-common/src/collection.ts:57


updateEntities

Protected updateEntities(): void

Returns

void

Defined in

packages/agros-common/src/collection.ts:45


writeBinaryFile

Private writeBinaryFile(pathname, buffer): void

Parameters

NameType
pathnamestring
bufferBuffer

Returns

void

Defined in

packages/agros-common/src/collection.ts:128


writeFile

Protected writeFile(pathname, content, options?): Promise<void>

Parameters

NameType
pathnamestring
contentstring
optionsCollectionWriteFileOptions

Returns

Promise<void>

Defined in

packages/agros-common/src/collection.ts:73


writeTemplateFile

Protected writeTemplateFile(source, target, props?, options?): Promise<void>

Parameters

NameType
sourcestring
targetstring
propsRecord<string, any>
optionsCollectionWriteFileOptions

Returns

Promise<void>

Defined in

packages/agros-common/src/collection.ts:97