Package adams.core

Class PropertiesBasedEnumeration<T extends ConfigurableEnumeration.AbstractItem>

    • Constructor Detail

      • PropertiesBasedEnumeration

        public PropertiesBasedEnumeration()
    • Method Detail

      • postProcess

        protected T postProcess​(T item,
                                Properties props,
                                String key)
        For post-processing an item. E.g., adding additional information.
        Parameters:
        item - the new item
        props - the underlying properties
        key - the current key in the properties
        Returns:
        the updated item
      • getProperties

        protected Properties getProperties()
        Returns the properties.
        Returns:
        the properties
      • readProperties

        protected abstract Properties readProperties()
        Reads the properties from disk.
        Returns:
        the properties