|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.ParameterService
public class ParameterService
This class loads the yalrc property files and provides methods to access them. It also provides methods to create
files relative to the RapidMiner home directory. As the getProperty(String) method throws an exception if
the parameter is not set, the System.getProperty(String) methods should be used if this is not desired.
| Constructor Summary | |
|---|---|
ParameterService()
|
|
| Method Summary | |
|---|---|
static boolean |
booleanValue(java.lang.String value,
boolean deflt)
Returns true if value is "true", "yes", "y" or "on". |
static void |
copyMainUserConfigFile(VersionNumber oldVersion,
VersionNumber newVersion)
|
static void |
ensureRapidMinerHomeSet()
Tries to find the rapidminer.home directory if the property is not set and sets it. |
static java.io.File |
getConfigFile(java.lang.String name)
|
static java.io.File |
getLibraryFile(java.lang.String name)
|
static java.io.File |
getMainUserConfigFile()
Returns the main user configuration file containing the version number and the OS. |
static java.io.File |
getPluginDir()
|
static java.io.File |
getRapidMinerHome()
|
static java.io.File |
getSampleDir()
|
static java.io.File |
getSampleFile(java.lang.String filename)
|
static java.io.File |
getSourceFile(java.lang.String filename)
|
static java.io.File |
getUserConfigFile(java.lang.String name)
Returns the configuration file in the user dir .rapidminer and automatically adds the current version number if it is a rc file. |
static java.io.File |
getUserRapidMinerDir()
|
static java.io.File |
getUserSampleFile(java.lang.String filename)
|
static java.io.File |
getUserWorkspace()
Returns the user workspace (if one was set). |
static java.io.File |
getVersionedUserConfigFile(VersionNumber versionNumber,
java.lang.String name)
|
static void |
init()
Invokes init(InputStream, boolean) with a null stream meaning that the core operators.xml is loaded and
with addWekaOperators = true. |
static void |
init(java.io.InputStream operatorsXMLStream,
boolean addWekaOperators)
Registers the operators from the stream and reads the rc file. |
static void |
init(java.io.InputStream operatorsXMLStream,
java.io.InputStream additionalXMLStream,
boolean addWekaOperators)
Registers the operators from the stream and reads the rc file. |
static void |
init(java.io.InputStream operatorsXMLStream,
java.io.InputStream additionalXMLStream,
java.io.InputStream additionalIOObjectsXMLStream,
boolean addWekaOperators)
Registers the operators from the stream and reads the rc file. |
static void |
setUserWorkspace(java.io.File workspace)
Sets the current user workspace to this file. |
static void |
writeProperties(java.util.Properties properties,
java.io.File file)
|
static void |
writePropertyIntoMainUserConfigFile(java.lang.String key,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterService()
| Method Detail |
|---|
public static void ensureRapidMinerHomeSet()
public static void init()
init(InputStream, boolean) with a null stream meaning that the core operators.xml is loaded and
with addWekaOperators = true. Registers the operators from the stream and reads the rc file.
public static void init(java.io.InputStream operatorsXMLStream,
boolean addWekaOperators)
public static void init(java.io.InputStream operatorsXMLStream,
java.io.InputStream additionalXMLStream,
boolean addWekaOperators)
public static void init(java.io.InputStream operatorsXMLStream,
java.io.InputStream additionalXMLStream,
java.io.InputStream additionalIOObjectsXMLStream,
boolean addWekaOperators)
public static java.io.File getUserWorkspace()
public static final void setUserWorkspace(java.io.File workspace)
public static void copyMainUserConfigFile(VersionNumber oldVersion,
VersionNumber newVersion)
public static void writeProperties(java.util.Properties properties,
java.io.File file)
public static void writePropertyIntoMainUserConfigFile(java.lang.String key,
java.lang.String value)
public static java.io.File getMainUserConfigFile()
public static java.io.File getUserConfigFile(java.lang.String name)
public static java.io.File getVersionedUserConfigFile(VersionNumber versionNumber,
java.lang.String name)
public static java.io.File getUserRapidMinerDir()
public static java.io.File getRapidMinerHome()
public static java.io.File getConfigFile(java.lang.String name)
public static java.io.File getLibraryFile(java.lang.String name)
public static java.io.File getSampleFile(java.lang.String filename)
public static java.io.File getUserSampleFile(java.lang.String filename)
public static java.io.File getSourceFile(java.lang.String filename)
public static java.io.File getPluginDir()
public static java.io.File getSampleDir()
public static boolean booleanValue(java.lang.String value,
boolean deflt)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||