Interface MappedNode<T>

    • Method Detail

      • getItem

        T getItem​(String name)
        Gets a single item (indexed child) by name. Returns undefined if not found.
        Parameters:
        name -
      • getItems

        List<T> getItems()
        Returns an array of all the child items.
      • getItemNames

        List<String> getItemNames()
        Gets a list of the names of all indexed children.
      • addItem

        void addItem​(String name,
                     T item)
        Adds a child item.
        Parameters:
        name -
        item -
      • insertItem

        void insertItem​(String name,
                        T item,
                        int atIndex)
        Inserts a child item.
        Parameters:
        name -
        item -
        atIndex -
      • removeItem

        T removeItem​(String name)
        Removes a child item by name and returns the deleted child or undefined if there wasn't one.
        Parameters:
        name -
      • clearItems

        void clearItems()
        Removes all children.