java.lang.Object | |
↳ | org.hibernate.util.PropertiesHelper |
Collection of helper methods for dealing with java.util.Properties objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Extract a property value by name from the given properties object.
| |||||||||||
Get a property value as a boolean.
| |||||||||||
Get a property value as a boolean.
| |||||||||||
Get a property value as an int.
| |||||||||||
Get a property value as an Integer.
| |||||||||||
Get a property value as a string.
| |||||||||||
replace a property by a starred version
| |||||||||||
Handles interpolation processing for a single property.
| |||||||||||
Handles interpolation processing for all entries in a properties object.
| |||||||||||
Constructs a map from a property value.
| |||||||||||
Get a property value as a string array.
| |||||||||||
Convert a string to an array of strings.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Extract a property value by name from the given properties object.
Both null and empty string are viewed as the same, and return null.propertyName | The name of the property for which to extract value |
---|---|
properties | The properties object |
Get a property value as a boolean.
First, the string value is extracted, and thenvalueOf(String)
is
used to determine the correct boolean value.propertyName | The name of the property for which to retrieve value |
---|---|
properties | The properties object |
defaultValue | The default property value to use. |
Get a property value as a boolean. Shorthand for calling
getBoolean(String, java.util.Properties, boolean)
with false
as the default value.
propertyName | The name of the property for which to retrieve value |
---|---|
properties | The properties object |
Get a property value as an int.
First, the string value is extracted, and thenparseInt(String)
is
used to determine the correct int value for any non-null property values.propertyName | The name of the property for which to retrieve value |
---|---|
properties | The properties object |
defaultValue | The default property value to use. |
Get a property value as an Integer.
First, the string value is extracted, and thenvalueOf(String)
is
used to determine the correct boolean value for any non-null property values.propertyName | The name of the property for which to retrieve value |
---|---|
properties | The properties object |
Get a property value as a string.
propertyName | The name of the property for which to retrieve value |
---|---|
properties | The properties object |
defaultValue | The default property value to use. |
replace a property by a starred version
props | properties to check |
---|---|
key | proeprty to mask |
Handles interpolation processing for a single property.
property | The property value to be processed for interpolation. |
---|
Handles interpolation processing for all entries in a properties object.
properties | The properties object. |
---|
Constructs a map from a property value.
The exact behavior here is largely dependant upon what is passed in as the delimiter.propertyName | The name of the property for which to retrieve value |
---|---|
delim | The string defining tokens used as both entry and key/value delimiters. |
properties | The properties object |
Get a property value as a string array.
propertyName | The name of the property for which to retrieve value |
---|---|
delim | The delimiter used to separate individual array elements. |
properties | The properties object |
Convert a string to an array of strings. The assumption is that the individual array elements are delimited in the source stringForm param by the delim param.
stringForm | The string form of the string array. |
---|---|
delim | The delimiter used to separate individual array elements. |