Class ExpressionProperties

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>

    public class ExpressionProperties
    extends java.util.Properties
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionProperties​(java.util.Properties... defaults)
      Creates an empty property list with the specified defaults.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getProperty​(java.lang.String key)
      Returns property value with all ${propKey} like references replaced with the value of the relevant property with recursive resolution.
      java.lang.String getProperty​(java.lang.String key, java.lang.String defaultValue)  
      java.lang.String getRawPropertyValue​(java.lang.String key)
      Returns raw value of a property without any replacements.
      • Methods inherited from class java.util.Properties

        clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExpressionProperties

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

      • getProperty

        public java.lang.String getProperty​(java.lang.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 java.util.Properties
        Parameters:
        key - the property key.
        Returns:
        the value in this property list with the specified key value.
      • getProperty

        public java.lang.String getProperty​(java.lang.String key,
                                            java.lang.String defaultValue)
        Overrides:
        getProperty in class java.util.Properties
      • getRawPropertyValue

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