Class PropertyParser


  • public class PropertyParser
    extends java.lang.Object
    Author:
    Clinton Begin, Kazuki Shimizu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String KEY_DEFAULT_VALUE_SEPARATOR
      The special property key that specify a separator for key and default value on placeholder.
      static java.lang.String KEY_ENABLE_DEFAULT_VALUE
      The special property key that indicate whether enable a default value on placeholder.
    • Method Summary

      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
    • Method Detail

      • parse

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