Class BaseConfiguration

    • Constructor Detail

      • BaseConfiguration

        public BaseConfiguration()
    • Method Detail

      • addPropertyDirect

        protected void addPropertyDirect​(java.lang.String key,
                                         java.lang.Object value)
        Adds a key/value pair to the map. This routine does no magic morphing. It ensures the keylist is maintained
        Specified by:
        addPropertyDirect in class AbstractConfiguration
        Parameters:
        key - key to use for mapping
        value - object to store
      • getProperty

        public java.lang.Object getProperty​(java.lang.String key)
        Read property from underlying map.
        Specified by:
        getProperty in interface Configuration
        Parameters:
        key - key to use for mapping
        Returns:
        object associated with the given configuration key.
      • isEmpty

        public boolean isEmpty()
        Check if the configuration is empty
        Specified by:
        isEmpty in interface Configuration
        Returns:
        true if Configuration is empty, false otherwise.
      • containsKey

        public boolean containsKey​(java.lang.String key)
        check if the configuration contains the key
        Specified by:
        containsKey in interface Configuration
        Parameters:
        key - the configuration key
        Returns:
        true if Configuration contain given key, false otherwise.
      • clearPropertyDirect

        protected void clearPropertyDirect​(java.lang.String key)
        Clear a property in the configuration.
        Overrides:
        clearPropertyDirect in class AbstractConfiguration
        Parameters:
        key - the key to remove along with corresponding value.
      • getKeys

        public java.util.Iterator<java.lang.String> getKeys()
        Get the list of the keys contained in the configuration repository.
        Specified by:
        getKeys in interface Configuration
        Returns:
        An Iterator.
      • clone

        public java.lang.Object clone()
        Creates a copy of this object. This implementation will create a deep clone, i.e. the map that stores the properties is cloned, too. So changes performed at the copy won't affect the original and vice versa.
        Overrides:
        clone in class EventSource
        Returns:
        the copy
        Since:
        1.3