blockly > Procedures > ObservableProcedureMap
Procedures.ObservableProcedureMap class
Signature:
export declare class ObservableProcedureMap extends Map<string, IProcedureModel> implements IProcedureMap
Extends: Map<string, IProcedureModel>
Implements: IProcedureMap
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ObservableProcedureMap
class.
Methods
Method |
Modifiers |
Description |
add(proc) |
|
Adds the given ProcedureModel to the map of procedure models, so that blocks can find it. |
clear() |
|
Removes all ProcedureModels from the procedure map. |
delete(id) |
|
Deletes the ProcedureModel with the given ID from the procedure map (if it exists). |
getProcedures() |
|
Returns all of the procedures stored in this map. |
set(id, proc) |
|
Adds the given procedure model to the procedure map. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`ObservableProcedureMap` is a class that manages a collection of `ProcedureModel` objects, allowing for efficient retrieval and manipulation of procedures within Blockly."],["This class extends the standard JavaScript `Map` and implements the `IProcedureMap` interface, providing methods for adding, deleting, and accessing procedures."],["`ObservableProcedureMap`'s constructor is internal, meaning it is not intended for direct use by external code; instead, developers should interact with it through its public methods."],["Key methods include `add`, `clear`, `delete`, `getProcedures`, and `set`, which enable the management of procedures within the map."]]],["The `ObservableProcedureMap` class, extending `Map`, manages a collection of `IProcedureModel` objects. Key actions include adding procedures via `add` or `set`, removing them with `delete` or `clear` for all, and retrieving all stored procedures using `getProcedures`. This class implements the `IProcedureMap` interface. The constructor is internal, preventing direct instantiation by third-party code.\n"]]