Skip to content

Builtins

Internal. These builtins are implementation details of the DMLA core and may change without notice.

Internal core builtins. The Builtins package is only accessible from the Bootstrap package; models should use the Bootstrap operations that wrap these builtins.

Functions

  • __AddAttribute: Entity(Base) __AddAttribute(Entity(Base) container, Entity(Base) entityToAdd) — Adds an attribute to an entity.
  • __CreateEntity: Entity(Base) __CreateEntity(String? id, Entity(Base)? meta) — Creates a new entity.
  • __CreateDynamicEntity: Entity(Base) __CreateDynamicEntity(Entity(Base)? meta, String? name) — Creates a new dynamic entity.
  • __DeleteEntity: Bool __DeleteEntity(Entity(Base) entity) — Deletes an entity.
  • __GetAttributes: Array<Entity(Base)> __GetAttributes(Entity(Base) entity) — Returns the attributes of an entity.
  • __GetContainerEntities: Array<Entity(Base)> __GetContainerEntities(Entity(Base) entity) — Returns the entities that contain an entity as an attribute.
  • __GetID: String? __GetID(Entity(Base)? entity) — Returns the id of an entity.
  • __GetValue: ObjectType? __GetValue(String id) · ObjectType? __GetValue(Entity(Base)? entity) — Gets the Value of the entity with the given id.
  • __GetValues: ObjectType? __GetValues(String id) · ObjectType? __GetValues(Entity(Base)? entity) — Gets the Values of the entity with the given id.
  • __Invoke: ObjectType? __Invoke(ObjectType? owner, ObjectType operation, Array<ObjectType> args) — Invokes an operation through a reference.
  • __Cleanup: Void __Cleanup() — Removes every dynamic entity created in the current session.
  • __RemoveAttribute: Entity(Base) __RemoveAttribute(Entity(Base) container, Entity(Base) entityToRemove) — Removes an attribute from an entity.
  • __SetValue: ObjectType? __SetValue(String id, ObjectType value) · ObjectType? __SetValue(Entity(Base)? entity, ObjectType value) — Sets the Value of the entity with the given id.
  • __SetValues: ObjectType? __SetValues(String id, Array<ObjectType> values) · ObjectType? __SetValues(Entity(Base)? entity, Array<ObjectType> values) — Replaces the Values of the entity with the given id.
  • __BroadcastValidationCompleted: Bool __BroadcastValidationCompleted() — Fires the runtime ValidationCompleted event.
  • __UpdateValidationStatus: Bool __UpdateValidationStatus(ObjectType entity, ObjectType result) — Stores the validation result of an entity in the validation cache.