public class Environment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HKEY_CLASSES_ROOT
The keyword for the class root handle.
|
static java.lang.String |
HKEY_CURRENT_CONFIG
The keyword for the current configuration handle.
|
static java.lang.String |
HKEY_CURRENT_USER
The keyword for the current user handle.
|
static java.lang.String |
HKEY_DYN_DATA
The keyword for the DYN_DATA handle.
|
static java.lang.String |
HKEY_LOCAL_MACHINE
The keyword for the local machine handle.
|
static java.lang.String |
HKEY_PERFORMANCE_DATA
The keyword for the performance data handle.
|
static java.lang.String |
HKEY_USERS
The keyword for the users handle.
|
static java.lang.String |
LIBRARY |
static java.lang.String |
version |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsName(java.lang.Object context,
java.lang.String name)
Check that the given name is a symbol inside the library.
|
static java.lang.String |
getCommandForExtension(java.lang.String ext,
java.lang.String command)
Get the application string for the specified extension.
|
static java.lang.String |
getCommandForMimetype(java.lang.String mimetype,
java.lang.String command)
Get the application string for the given mime type.
|
static java.lang.String |
getEnv(java.lang.String var)
Get the contents of an environment variable.
|
static java.lang.String |
getErrorMessage(java.lang.Object context)
Inquire the error message belongs to the given status.
|
static java.lang.String |
getExtensionForMimeType(java.lang.String mimetype)
Get the extension for a mimetype.
|
static java.lang.String |
getLibraryDescription(java.lang.Object context)
Get the library description.
|
static java.lang.String |
getMimetypeForExtension(java.lang.String extension)
Get the mimetype for an extension.
|
java.lang.String |
getVersion() |
static java.lang.String[] |
inquireCommandsForExtension(java.lang.String extension)
Inquire the available command for an extension.
|
static java.lang.String[] |
inquireCommandsForMimetype(java.lang.String mimetype)
Inquire the available command for a mimetype.
|
static java.lang.String[] |
listClasses(java.lang.Object context)
Inquire the available classes located in the given library.
|
static java.lang.String[] |
listInterfaces(java.lang.Object context)
Inquire the available interfaces located in the given library.
|
static void |
loadTypeLibrary(java.lang.String library,
java.lang.Object context)
Load the library.
|
static void |
main(java.lang.String[] args)
The Main test body.
|
static void |
startApplication(java.lang.String command,
java.lang.String filename)
Start an application belonging to the given filename.
|
static void |
startApplication(java.lang.String command,
java.lang.String mimetype,
java.lang.String filename)
Start an application belongs to the given filename.
|
static void |
startApplicationExt(java.lang.String command,
java.lang.String ext,
java.lang.String filename)
Start an application belongs to the given filename.
|
static void |
unloadTypeLibrary(java.lang.Object context)
Unload the library.
|
public static final java.lang.String version
public static final java.lang.String LIBRARY
public static final java.lang.String HKEY_CLASSES_ROOT
public static final java.lang.String HKEY_CURRENT_CONFIG
public static final java.lang.String HKEY_CURRENT_USER
public static final java.lang.String HKEY_LOCAL_MACHINE
public static final java.lang.String HKEY_USERS
public static final java.lang.String HKEY_PERFORMANCE_DATA
public static final java.lang.String HKEY_DYN_DATA
public java.lang.String getVersion()
public static java.lang.String getCommandForExtension(java.lang.String ext, java.lang.String command)
ext
- The extension for that an application should be returned.
The string must not contain a dot.command
- The command to be reuqested.public static java.lang.String getCommandForMimetype(java.lang.String mimetype, java.lang.String command)
mimeType
- The mimetype for that an application should be returned.command
- The command to be requested.public static java.lang.String[] inquireCommandsForMimetype(java.lang.String mimetype)
mimetype
- The mimetype.public static java.lang.String[] inquireCommandsForExtension(java.lang.String extension)
extentsion
- The extension.public static java.lang.String getMimetypeForExtension(java.lang.String extension)
extension
- The extension.
The string must not contain a dot.public static java.lang.String getExtensionForMimeType(java.lang.String mimetype)
mimetype
- The mimetype.public static java.lang.String getEnv(java.lang.String var)
var
- The environment variable.public static java.lang.String[] listClasses(java.lang.Object context)
library
- The name of the library to be inquired.public static java.lang.String[] listInterfaces(java.lang.Object context)
library
- The name of the library to be inquired.public static java.lang.String getErrorMessage(java.lang.Object context)
status
- The status word.public static void loadTypeLibrary(java.lang.String library, java.lang.Object context)
library
- The name of the library to be loaded.context
- The context in that the libarary was loaded.public static void unloadTypeLibrary(java.lang.Object context)
context
- The context in that the libarary was loaded.public static java.lang.String getLibraryDescription(java.lang.Object context)
context
- the context in that the library was loaded.public static boolean containsName(java.lang.Object context, java.lang.String name)
context
- the context in that the library was loaded.name
- the name to be checkedpublic static void startApplication(java.lang.String command, java.lang.String filename) throws FwkException
command
- Name of the command to be executed. e.g. "open"filename
- name of the file to be handled.FwkException
- Brick exception if not possible.public static void startApplication(java.lang.String command, java.lang.String mimetype, java.lang.String filename) throws FwkException
filename
- Name fo the file to be opened.mimetype
- Mimetype string.a
- Brick exception if no possible.FwkException
public static void startApplicationExt(java.lang.String command, java.lang.String ext, java.lang.String filename) throws FwkException
filename
- Name fo the file to be opened.ext
- Extension string.a
- Brick exception if no possible.FwkException
public static void main(java.lang.String[] args)