Interface IActiveViamPropertyRegistry

  • All Known Implementing Classes:
    ActiveViamPropertyRegistry

    public interface IActiveViamPropertyRegistry
    Interface to handle the Properties defined in ActiveViam products.
    Author:
    ActiveViam
    • Method Detail

      • getString

        String getString​(IActiveViamProperty prop,
                         String defaultValue)
        Gets the value of the property or defaultValue if it is not defined.
        Parameters:
        prop - the property to resolve
        defaultValue - the default value to return if no value is found
        Returns:
        the value of the property or defaultValue if it is not defined
      • getBoolean

        boolean getBoolean​(IActiveViamProperty prop,
                           boolean defaultValue)
        Gets the value of the property or defaultValue if it is not defined.
        Parameters:
        prop - the property to resolve
        defaultValue - the default value to return if no value is found
        Returns:
        the value of the property or defaultValue if it is not defined
      • getInteger

        int getInteger​(IActiveViamProperty prop,
                       int defaultValue)
        Gets the value of the property or defaultValue if it is not defined.
        Parameters:
        prop - the property to resolve
        defaultValue - the default value to return if no value is found
        Returns:
        the value of the property or defaultValue if it is not defined
      • getDouble

        double getDouble​(IActiveViamProperty prop,
                         double defaultValue)
        Gets the value of the property or defaultValue if it is not defined.
        Parameters:
        prop - the property to resolve
        defaultValue - the default value to return if no value is found
        Returns:
        the value of the property or defaultValue if it is not defined
      • getLong

        long getLong​(IActiveViamProperty prop,
                     long defaultValue)
        Gets the value of the property or defaultValue if it is not defined.
        Parameters:
        prop - the property to resolve
        defaultValue - the default value to return if no value is found
        Returns:
        the value of the property or defaultValue if it is not defined
      • set

        void set​(IActiveViamProperty prop,
                 Object value)
        Sets the value of a property.
        Parameters:
        prop - the property to set in the registry
        value - value to set in the registry
      • clear

        void clear​(IActiveViamProperty prop)
        Resets the value of a property.
        Parameters:
        prop - the property to clear