Interface DynamicPropertyMap

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Map<String,​String> getCustomProperties​(String key)
      Gets the key value pair(s) of a custom property as a map with the given key and any overrides applied.
      String getProperty​(String key)
      Gets the String value (String.valueOf) of the Operation Property with the given key and any overrides applied.
      String getProperty​(String key, String defaultValue)
      Gets the String value (String.valueOf) of the Operation Property with the given key and any overrides applied, returning the defaultValue if the located property value is blank (null or all characters are whitespace).
    • Method Detail

      • getProperty

        String getProperty​(String key)
        Gets the String value (String.valueOf) of the Operation Property with the given key and any overrides applied. Any Operation Property of type String, Integer or Boolean, that can be overridden should be obtained from this Map, all others should be obtained from BrowseContext.getOperationProperties()
        Parameters:
        key - key of the desired property
        Returns:
        String value of the Operation Property or null if not found
      • getProperty

        String getProperty​(String key,
                           String defaultValue)
        Gets the String value (String.valueOf) of the Operation Property with the given key and any overrides applied, returning the defaultValue if the located property value is blank (null or all characters are whitespace). Any Operation Property of type String, Integer or Boolean, that can be overridden should be obtained from this Map, all others should be obtained from BrowseContext.getOperationProperties()
        Parameters:
        key - key of the desired property
        defaultValue - value to return if property value is blank
        Returns:
        String property value or defaultValue if not found.
      • getCustomProperties

        Map<String,​String> getCustomProperties​(String key)
        Gets the key value pair(s) of a custom property as a map with the given key and any overrides applied. Any overridable operation property of type "customproperties" should be obtained from this method. This method returns Collections.emptyMap() if the property for given key is not found. For Operation Properties of type String, Integer or Boolean, please use getProperty(String) or getProperty(String, String)
        Parameters:
        key - key of the desired custom property
        Returns:
        Immutable map of key-value pairs of the Operation custom property or Collections.emptyMap() if not found
        Throws:
        IllegalArgumentException - if the key provided is not a "customproperties" field type.