Class PropertyParser


  • public class PropertyParser
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PropertyParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String parse​(java.lang.String string, java.util.Properties variables)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • KEY_ENABLE_DEFAULT_VALUE

        public static final java.lang.String KEY_ENABLE_DEFAULT_VALUE
        The special property key that indicate whether enable a default value on placeholder.

        The default value is false (indicate disable a default value on placeholder) If you specify the true, you can specify key and default value on placeholder (e.g. ${db.username:postgres}).

        Since:
        3.4.2
        See Also:
        Constant Field Values
      • KEY_DEFAULT_VALUE_SEPARATOR

        public static final java.lang.String KEY_DEFAULT_VALUE_SEPARATOR
        The special property key that specify a separator for key and default value on placeholder.

        The default separator is ":".

        Since:
        3.4.2
        See Also:
        Constant Field Values
      • ENABLE_DEFAULT_VALUE

        private static final java.lang.String ENABLE_DEFAULT_VALUE
        See Also:
        Constant Field Values
      • DEFAULT_VALUE_SEPARATOR

        private static final java.lang.String DEFAULT_VALUE_SEPARATOR
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertyParser

        private PropertyParser()
    • Method Detail

      • parse

        public static java.lang.String parse​(java.lang.String string,
                                             java.util.Properties variables)