MetaEntity class

Represents one entity.

Index

Constructors

Public Properties

Public Methods

Constructors


constructor

The default constructor. ⊕ new MetaEntity(parent?: MetaEntity): MetaEntity

Parameters:


Public Properties


attributes

List of Attributes that belong to this entity.

● attributes: MetaEntityAttr[]


caption

The caption of entity attr.

● caption: string


captionPlural

The caption of entity attr in plural form.

● captionPlural: string


description

The description of entity.

● description: string


id

The id.

● id: string


name

The name of entity.

● name: string


parent

The parent.

● parent: MetaEntity


subEntities

List of sub entities that belong to this entity.

● subEntities: MetaEntity[]


Public Methods


loadFromData

Loads entity from its JSON representation object.

▸ loadFromData(model: MetaData,dto: MetaEntityDTO): void

Parameters:

Returns void


scan

▸ scan(processAttribute?: (attr: MetaEntityAttr, opts: any) => void,processEntity?: (entity: MetaEntity, opts: any) => void): void

Parameters:

  • processAttribute: (attr: MetaEntityAttr, opts: any) => void, Optional
  • processEntity: (entity: MetaEntity, opts: any) => void, Optional

Returns void