Class ExpressionProperties

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class ExpressionProperties extends Properties
See Also:
  • Constructor Details

    • ExpressionProperties

      public ExpressionProperties(Properties... defaults)
      Creates an empty property list with the specified defaults.
      Parameters:
      defaults - java.util.Properties
  • Method Details

    • getProperty

      public @Nullable String getProperty(String key)

      Returns property value with all ${propKey} like references replaced with the value of the relevant property with recursive resolution.

      The method returns null if the property is not found.

      Overrides:
      getProperty in class Properties
      Parameters:
      key - the property key.
      Returns:
      the value in this property list with the specified key value.
    • getProperty

      public @PolyNull String getProperty(String key, @PolyNull String defaultValue)
      Overrides:
      getProperty in class Properties
    • getRawPropertyValue

      public @Nullable String getRawPropertyValue(String key)
      Returns raw value of a property without any replacements.
      Parameters:
      key - property name
      Returns:
      raw property value