public class QVariables
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile(java.lang.String key)
Get a Q variable as a
File . |
org.apache.commons.vfs.FileObject |
getFileObject(java.lang.String key)
Get a Q variable as a Apache VFS
FileObject . |
java.util.Set<java.lang.String> |
getKeys()
Get the names of all available Q variables.
|
java.util.List<java.lang.String> |
getList(java.lang.String key)
Get the variable as a List of Strings.
|
java.lang.String |
getString(java.lang.String key)
Get a Q variable as a String, this returns the raw value.
|
java.lang.String |
getSystemVariable(java.lang.String key)
Get a Q system variable (from variables.ini) as a String, this returns the raw value.
|
VirtualFile |
getVirtualFile(java.lang.String key)
Get a Q variable as a
VirtualFile . |
public java.util.Set<java.lang.String> getKeys()
public java.lang.String getString(java.lang.String key)
key
- name of the variable.public java.lang.String getSystemVariable(java.lang.String key)
key
- name of the variable.public java.io.File getFile(java.lang.String key)
File
. This only works if the variable is a single File or Folder on the local file
system.key
- name of the variable.public org.apache.commons.vfs.FileObject getFileObject(java.lang.String key)
FileObject
. This only works if the variable is a single URL.key
- name of the variable.public VirtualFile getVirtualFile(java.lang.String key)
VirtualFile
. The VirtualFile
offers access to all possible representations
of the location or part of the url. This only works if the variable is a single URL.key
- name of the variable.public java.util.List<java.lang.String> getList(java.lang.String key)
key
- name of the variable.