public abstract class AbstractPropertyUtils extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPropertyUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ResourceBundle |
getResourceBundle() |
String |
getString(String key)
Gets a string for the given key.
|
String |
getString(String key,
int... parameters)
Gets a parameterised string for the given key.
|
String |
getString(String key,
int parameter)
Gets a parameterised string for the given key.
|
String |
getString(String key,
Object... parameters)
Gets a parameterised string for the given key.
|
String |
getString(String key,
Object parameter)
Gets a parameterised string for the given key.
|
String |
getString(String key,
String... parameters)
Gets a parameterised string for the given key.
|
String |
getString(String key,
String parameter)
Gets a parameterised string for the given key.
|
String[] |
getStringArray(String key)
Gets a string array for the given key from the given resource bundle or one of its parents.
|
String[] |
getStringArray(String key,
String[] parameters)
Gets a parameterised string array for the given key from the given resource bundle or one of its parents.
|
public final String getString(String key)
key - the key of the string in the resource bundlepublic final String getString(String key, String parameter)
key - the key of the string in the resource bundleparameter - to be substituted into the returned stringpublic final String getString(String key, Object parameter)
key - the key of the string in the resource bundleparameter - to be substituted into the returned stringpublic final String getString(String key, int parameter)
key - the key of the string in the resource bundleparameter - to be substituted into the returned stringpublic final String getString(String key, String... parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arraykey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic final String getString(String key, int... parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arraykey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic final String getString(String key, Object... parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arraykey - the key of the string in the resource bundleparameters - to be substituted into the returned stringpublic final String[] getStringArray(String key)
key - the key of the string in the resource bundlepublic final String[] getStringArray(String key, String[] parameters)
i} where n is an integer from 0 to n-1, and n is size of the parameters array, will be replaced
by the ith element in the parameters arraykey - the key of the string in the resource bundleparameters - to be substituted into the returned stringprotected abstract ResourceBundle getResourceBundle()
Copyright © 2016. All rights reserved.