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 classPropertyParser.VariableTokenHandler
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringDEFAULT_VALUE_SEPARATORprivate static java.lang.StringENABLE_DEFAULT_VALUEstatic java.lang.StringKEY_DEFAULT_VALUE_SEPARATORThe special property key that specify a separator for key and default value on placeholder.static java.lang.StringKEY_ENABLE_DEFAULT_VALUEThe special property key that indicate whether enable a default value on placeholder.private static java.lang.StringKEY_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description privatePropertyParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringparse(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
-
-