public class ToolSystemConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TOOLCONFIG |
Constructor and Description |
---|
ToolSystemConfiguration() |
public static String DEFAULT_TOOLCONFIG
public static ToolSystemConfiguration loadDefaultConfiguration()
public static ToolSystemConfiguration loadDefaultDesktopAndPortalConfiguration() throws IOException
IOException
public static ToolSystemConfiguration loadDefaultDesktopConfiguration() throws IOException
IOException
public static ToolSystemConfiguration loadDefaultDesktopConfiguration(List<Input> additionalInputs) throws IOException
IOException
public static ToolSystemConfiguration loadDefaultPortalConfiguration() throws IOException
IOException
public static ToolSystemConfiguration loadRemotePortalConfiguration() throws IOException
IOException
public static ToolSystemConfiguration loadRemotePortalMasterConfiguration() throws IOException
IOException
public static ToolSystemConfiguration loadDefaultPortalConfiguration(List<Input> additionalInputs) throws IOException
IOException
public static ToolSystemConfiguration loadConfiguration(Input xmlFile) throws IOException
xmlFile
- IOException
public static ToolSystemConfiguration loadConfiguration(List<Input> inputs) throws IOException
inputs
- IOException
public List<RawDeviceConfig> getRawConfigs()
public List<RawMapping> getRawMappings()
public List<VirtualDeviceConfig> getVirtualConfigs()
public List<VirtualMapping> getVirtualMappings()
public List<VirtualConstant> getVirtualConstants()
public void setRawConfigs(List<RawDeviceConfig> rawConfigs)
public void setRawMappings(List<RawMapping> rawMappings)
public void setVirtualConfigs(List<VirtualDeviceConfig> virtualConfigs)
public void setVirtualMappings(List<VirtualMapping> virtualMappings)
public void setVirtualConstants(List<VirtualConstant> virtualConstants)
public void addRawDeviceConfig(RawDeviceConfig config)
public void addRawMapping(RawMapping mapping)
public void addVirtualDeviceConfig(VirtualDeviceConfig config)
public void addVirtualMapping(VirtualMapping mapping)
public void addVirtualConstant(VirtualConstant constant)
public static InputStream domToInputStream(Node root) throws UnsupportedEncodingException
UnsupportedEncodingException
public static void domToString(Node node, StringBuffer sb, int ind)
public static void tempGamePadConfigJInputWriter()
public static void setFileFromString(File aFile, String aContents) throws FileNotFoundException, IOException
aFile
- is an existing file which can be written to.IllegalArgumentException
- if param does not comply.FileNotFoundException
- if the file does not exist.IOException
- if problem encountered during write.public static String getStringFromFile(File aFile)
aFile
- is a file which already exists and can be read.public static void main(String[] args) throws IOException
IOException