public class PropertyUtil
extends java.lang.Object
Constructor and Description |
---|
PropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getEnumeratedProperty(java.lang.String key)
Returns a List of property values whose keys are identical excepct for
a trailing "." and index.
|
static void |
setEnumeratedProperty(java.lang.String key,
java.util.List<java.lang.String> values)
Sets a series of property values whose keys are identical excepct for
a trailing "." and index.
|
public static java.util.List<java.lang.String> getEnumeratedProperty(java.lang.String key)
key
- key of the enumerated property, excluding the trailing "." and
index. I.e., if you have properties "file.0=file0.txt" and
"file.1=file1.txt", calling getEnumeratedProperty("file", properties)
would return a list containing "file0.txt" and "file1.txt".public static void setEnumeratedProperty(java.lang.String key, java.util.List<java.lang.String> values)
key
- key of the enumerated property (see
getEnumeratedProperty(java.lang.String)
)values
- values to be assigned to the enumerated property, in order.
All members of this List must be Strings.