Package org.apache.ibatis.parsing
Class PropertyParser
- java.lang.Object
-
- org.apache.ibatis.parsing.PropertyParser
-
public class PropertyParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PropertyParser.VariableTokenHandler
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DEFAULT_VALUE_SEPARATOR
private static java.lang.String
ENABLE_DEFAULT_VALUE
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.private static java.lang.String
KEY_PREFIX
-
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)
-
-
-
Field Detail
-
KEY_PREFIX
private static final java.lang.String KEY_PREFIX
- See Also:
- Constant Field Values
-
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 thetrue
, 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
-
-