jmetal.util
Class PropUtils
java.lang.Object
jmetal.util.PropUtils
public abstract class PropUtils
- extends java.lang.Object
This class provides some utilities for working with properties.
Thanks to Francisco Chicano.
Method Summary |
static java.util.Properties |
dereferenceProperties(java.util.Properties pro)
|
static java.util.Properties |
getPropertiesWithPrefix(java.util.Properties pro,
java.lang.String prefix)
|
static boolean |
isLabel(java.lang.String str)
|
static java.util.Properties |
load(java.lang.String file)
|
static void |
main(java.lang.String[] argv)
|
static java.util.Properties |
putPrefixToProperties(java.lang.String prefix,
java.util.Properties pro)
|
static java.util.Properties |
setDefaultParameters(java.util.Properties properties,
java.lang.String algorithmName)
|
static java.util.Properties |
setDefaultParameters2(java.util.Properties properties,
java.lang.String algorithmName)
|
static java.util.Properties |
substituteLabels(java.util.Properties base,
java.util.Properties labels)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LABEL_RIGHT_DELIMITER
public static final char LABEL_RIGHT_DELIMITER
- See Also:
- Constant Field Values
LABEL_LEFT_DELIMITER
public static final char LABEL_LEFT_DELIMITER
- See Also:
- Constant Field Values
PropUtils
public PropUtils()
getPropertiesWithPrefix
public static java.util.Properties getPropertiesWithPrefix(java.util.Properties pro,
java.lang.String prefix)
putPrefixToProperties
public static java.util.Properties putPrefixToProperties(java.lang.String prefix,
java.util.Properties pro)
substituteLabels
public static java.util.Properties substituteLabels(java.util.Properties base,
java.util.Properties labels)
dereferenceProperties
public static java.util.Properties dereferenceProperties(java.util.Properties pro)
isLabel
public static boolean isLabel(java.lang.String str)
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static java.util.Properties load(java.lang.String file)
throws java.io.IOException
- Parameters:
file
- The file containing the properties
- Returns:
- A
Properties
object
- Throws:
java.io.FileNotFoundException
java.io.IOException
setDefaultParameters
public static java.util.Properties setDefaultParameters(java.util.Properties properties,
java.lang.String algorithmName)
setDefaultParameters2
public static java.util.Properties setDefaultParameters2(java.util.Properties properties,
java.lang.String algorithmName)