MetaEntity class
Represents one entity.
Constructors
Section titled “Constructors”constructor
Section titled “constructor”The default constructor. ⊕ new MetaEntity(parent?: MetaEntity): MetaEntity
Parameters:
Section titled “Parameters:”- parent: MetaEntity, Optional
Public Properties
Section titled “Public Properties”attributes
Section titled “attributes”List of Attributes that belong to this entity.
● attributes: MetaEntityAttr[]
caption
Section titled “caption”The caption of entity attr.
● caption: string
captionPlural
Section titled “captionPlural”The caption of entity attr in plural form.
● captionPlural: string
description
Section titled “description”The description of entity.
● description: string
The id.
● id: string
The name of entity.
● name: string
parent
Section titled “parent”The parent.
● parent: MetaEntity
subEntities
Section titled “subEntities”List of sub entities that belong to this entity.
● subEntities: MetaEntity[]
Public Methods
Section titled “Public Methods”loadFromData
Section titled “loadFromData”Loads entity from its JSON representation object.
▸ loadFromData(model: MetaData,dto: MetaEntityDTO): void
Parameters:
Section titled “Parameters:”- model: MetaData - The Data Model.
- dto: MetaEntityDTO - The JSON representation object.
Returns void
▸ scan(processAttribute?: (attr: MetaEntityAttr, opts: any
) => void
,processEntity?: (entity: MetaEntity, opts: any
) => void
): void
Parameters:
Section titled “Parameters:”- processAttribute: (attr: MetaEntityAttr, opts:
any
) =>void
, Optional - processEntity: (entity: MetaEntity, opts:
any
) =>void
, Optional
Returns void