Class CatalogTreeIndex

    • Field Detail

      • parameters

        java.util.HashMap<java.lang.String,​java.lang.Object> parameters
    • Constructor Detail

      • CatalogTreeIndex

        public CatalogTreeIndex​(java.lang.String sysName,
                                java.lang.String userName)
    • Method Detail

      • insertNodes

        public void insertNodes​(java.lang.String pName,
                                java.lang.String pPath,
                                CatalogTreeNode pParent)
        Recursively add nodes to the tree
        Specified by:
        insertNodes in interface CatalogTree
        Specified by:
        insertNodes in class AbstractCatalogTree
        Parameters:
        pName - Name of the resource to be scanned; this is only used for the human-readable tree
        pPath - Path to this resource, including the pName part
        pParent - Node for the parent of the resource to be scanned, e.g. where in the tree to insert it.
      • setProperty

        public void setProperty​(java.lang.String key,
                                java.lang.Object value)
        Description copied from interface: NamedBean
        Attach a key/value pair to the NamedBean, which can be retrieved later. These are not bound properties as yet, and don't throw events on modification. Key must not be null.

        Prior to JMRI 4.3, the key was of Object type. It was constrained to String to make these more like normal Java Beans.

        Parameters:
        key - the property to set
        value - the value of the property
      • getProperty

        public java.lang.Object getProperty​(java.lang.String key)
        Description copied from interface: NamedBean
        Retrieve the value associated with a key. If no value has been set for that key, returns null.
        Parameters:
        key - the property to get
        Returns:
        The value of the property or null.
      • getPropertyKeys

        public java.util.Set<java.lang.String> getPropertyKeys()
        Description copied from interface: NamedBean
        Retrieve the complete current set of keys.
        Returns:
        empty set if none
      • removeProperty

        public void removeProperty​(java.lang.String key)
        Description copied from interface: NamedBean
        Remove the key/value pair against the NamedBean.
        Parameters:
        key - the property to remove