Java Doc for Config.java in  » J2EE » Enhydra-Application-Framework » com » lutris » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Enhydra Application Framework » com.lutris.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lutris.util.KeywordValueTable
      com.lutris.util.Config

Config
public class Config extends KeywordValueTable (Code)
Config is essentially a KeywordValueTable used for recursive storage of data derived from a config file. The contents is initialized but ConfigFile.
See Also:   ConfigFile
See Also:   KeywordValueTable
author:
   John Marco
author:
   Shawn McMurdo
version:
   $Revision: 1.3 $



Constructor Summary
public  Config()
     Default constructor for an empty Config.
public  Config(KeywordValueTable kvt)
     Constructor that takes a KeywordValueTable as initialization.
public  Config(KeywordValueTable kvt, ConfigFileInterface configFile)
     Constructor that takes a KeywordValueTable and a ConfigFile as initialization.
public  Config(ConfigFileInterface configFile)
     Constructor that associates this Config with a given ConfigFile.

Method Summary
public  HashtableallConfigParams(String prefix)
     Returns the hashtable containing names and values of all config parameters Names are in the form name-level-0_name-level-1_name-level-2...
public  intcontainsCount(String key)
     Returns the number of data elements for a given key, or -1 if the key is not found.
public  booleancontainsKey(String key)
     Returns true if the specified key is found, false otherwise.
public  booleangetBoolean(String key)
     Returns a single boolean value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a boolean then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  booleangetBoolean(String key, boolean defaultValue)
     Returns a single boolean value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a boolean then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  boolean[]getBooleans(String key)
     Returns all boolean values associated with a given key. If any of the elements associated with the key cannot be converted to a boolean then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  boolean[]getBooleans(String key, boolean[] defaultValue)
     Returns all boolean values associated with a given key. If any of the elements associated with the key cannot be converted to a boolean then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entry does notexist.
public  ConfiggetClonedConfig()
     Returnes cloned Config object.
public synchronized  ConfiggetConfig(String keyword)
     Get the value of a section as a Config object.
Parameters:
  keyword - The keyword of the field.
public  ConfigFileInterfacegetConfigFile()
     Gets the ConfigFile associated with this object.
public  ObjectgetDataSource(String key)
     Returns a DataSource value associated with a given key.
Parameters:
  key - The key to use to search for the configuration entry.
public  ObjectgetDataSource(String key, Object defaultValue)
     Returns a single DataSource value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a String then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  doublegetDouble(String key)
     Returns a single double value associated with a given key.
public  doublegetDouble(String key, double defaultValue)
     Returns a single double value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a double then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  double[]getDoubles(String key)
     Returns all double values associated with a given key. If any of the elements associated with the key cannot be converted to a double then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  double[]getDoubles(String key, double[] defaultValue)
     Returns all double values associated with a given key. If any of the elements associated with the key cannot be converted to a double then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  intgetInt(String key)
     Returns a single integer value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a integer then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  intgetInt(String key, int defaultValue)
     Returns a single integer value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a integer then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  int[]getInts(String key)
     Returns all integer values associated with a given key. If any of the elements associated with the key cannot be converted to a integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  int[]getInts(String key, int[] defaultValue)
     Returns all integer values associated with a given key. If any of the elements associated with the key cannot be converted to a integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  longgetLong(String key)
     Returns a single long integer value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a long integer then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  longgetLong(String key, long defaultValue)
     Returns a single long integer value associated with a given key. If the key is associated with more than one element then a ConfigException error is thrown with reason set to COUNT.
public  long[]getLongs(String key)
     Returns all long integer values associated with a given key. If any of the elements associated with the key cannot be converted to a long integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  long[]getLongs(String key, long[] defaultValue)
     Returns all long integer values associated with a given key. If any of the elements associated with the key cannot be converted to a long integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public synchronized  KeywordValueTablegetSection(String keyword)
     Gets the value of a section as a KeywordValueTable object. This method overrides the KeywordValueTable.getSection in order to insure that Config.getSection() always returns a Config object even if a KeywordValueTable was inserted into the Config as a section.
Parameters:
  keyword - The keyword of the field.
public  StringgetString(String key)
     Returns a single String value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a String then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  StringgetString(String key, String defaultValue)
     Returns a single String value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a String then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  String[]getStrings(String key)
     Returns all String values associated with a given key. If any of the elements associated with the key cannot be converted to a String then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
public  String[]getStrings(String key, String[] defaultValue)
     Returns all String values associated with a given key. If any of the elements associated with the key cannot be converted to a String then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist.
public  voidimportConfig(Config config)
     Imorts and synchronizes to, all parameters (key-value pairs) according to given Config object parameters.
public  booleanisArray(String key)
     Is the key is an array, or a single value.
protected  KeywordValueTablenewSection()
     Allocates a new section.
public  voidsetConfigFile(ConfigFileInterface configFile)
     Sets the ConfigFile associated with this object.


Constructor Detail
Config
public Config()(Code)
Default constructor for an empty Config.



Config
public Config(KeywordValueTable kvt)(Code)
Constructor that takes a KeywordValueTable as initialization.
Parameters:
  kvt - KeywordValueTable with which to initialize Config



Config
public Config(KeywordValueTable kvt, ConfigFileInterface configFile)(Code)
Constructor that takes a KeywordValueTable and a ConfigFile as initialization. The ConfigFile is associated with this Config object.
Parameters:
  kvt - KeywordValueTable with which to initialize Config
Parameters:
  configFile - ConfigFile to associate this Config object with



Config
public Config(ConfigFileInterface configFile)(Code)
Constructor that associates this Config with a given ConfigFile.
Parameters:
  configFile - ConfigFile to associate this object with




Method Detail
allConfigParams
public Hashtable allConfigParams(String prefix) throws KeywordValueException(Code)
Returns the hashtable containing names and values of all config parameters Names are in the form name-level-0_name-level-1_name-level-2...
Parameters:
  prefix - - previous level name hashtable of all config parameters



containsCount
public int containsCount(String key) throws ConfigException(Code)
Returns the number of data elements for a given key, or -1 if the key is not found.
Parameters:
  key - The key to search for. The number of entries for the given key, or -1 ifthe key is not found.
exception:
  ConfigException -



containsKey
public boolean containsKey(String key)(Code)
Returns true if the specified key is found, false otherwise.
Parameters:
  key - The key whose existence is to be tested. true if the key was found, otherwise false.



getBoolean
public boolean getBoolean(String key) throws ConfigException(Code)
Returns a single boolean value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a boolean then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry. The boolean value associated with the given key.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getBoolean
public boolean getBoolean(String key, boolean defaultValue) throws ConfigException(Code)
Returns a single boolean value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a boolean then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. The boolean value associated with the given key.
exception:
  ConfigException - Thrown if there was not exactly one requestedelement, or if the element is of the wrong data type or format.
See Also:   ConfigException



getBooleans
public boolean[] getBooleans(String key) throws ConfigException(Code)
Returns all boolean values associated with a given key. If any of the elements associated with the key cannot be converted to a boolean then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry. An array of booleans containing the list of boolean values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getBooleans
public boolean[] getBooleans(String key, boolean[] defaultValue) throws ConfigException(Code)
Returns all boolean values associated with a given key. If any of the elements associated with the key cannot be converted to a boolean then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entry does notexist. An array of booleans containing the list of boolean values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entries are ofthe wrong data type or format.
See Also:   ConfigException



getClonedConfig
public Config getClonedConfig() throws KeywordValueException(Code)
Returnes cloned Config object. The cloned and original objects have exatly same key value pairs, but free of any common object references. Only reference which is same for both objects (the original, and it's clone) is reference to associated ConfigFile object (private argument of Config class). A cloned Config object.
exception:
  KeywordValueException -



getConfig
public synchronized Config getConfig(String keyword) throws KeywordValueException(Code)
Get the value of a section as a Config object.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path. A reference to the section object or null if not found.
exception:
  KeywordValueException - If the keyword is not syntacticallylegal or a non-leaf element of the keyword is not a section or the valueobject is not a KeywordValueTable.
See Also:   KeywordValueTable.getSection



getConfigFile
public ConfigFileInterface getConfigFile()(Code)
Gets the ConfigFile associated with this object. the associated ConfigFile,null if there is no config file associated with thisobject.



getDataSource
public Object getDataSource(String key) throws ConfigException(Code)
Returns a DataSource value associated with a given key.
Parameters:
  key - The key to use to search for the configuration entry. The DataSource value associated with the given key.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getDataSource
public Object getDataSource(String key, Object defaultValue) throws ConfigException(Code)
Returns a single DataSource value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a String then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. The DataSource value associated with the given key.
exception:
  ConfigException - Thrown if there was not exactly onerequested element, or if the element is of the wrong data type or format.
See Also:   ConfigException



getDouble
public double getDouble(String key) throws ConfigException(Code)
Returns a single double value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a double then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry. The double value associated with the given key.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getDouble
public double getDouble(String key, double defaultValue) throws ConfigException(Code)
Returns a single double value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a double then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. The double value associated with the given key.
exception:
  ConfigException - Thrown if there was not exactly one requestedelement, or if the element is of the wrong data type or format.
See Also:   ConfigException



getDoubles
public double[] getDoubles(String key) throws ConfigException(Code)
Returns all double values associated with a given key. If any of the elements associated with the key cannot be converted to a double then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry. An array of doubles containing the list of double values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getDoubles
public double[] getDoubles(String key, double[] defaultValue) throws ConfigException(Code)
Returns all double values associated with a given key. If any of the elements associated with the key cannot be converted to a double then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. An array of doubles containing the list of double values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entries are ofthe wrong data type or format.
See Also:   ConfigException



getInt
public int getInt(String key) throws ConfigException(Code)
Returns a single integer value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a integer then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry. The integer value associated with the given key.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getInt
public int getInt(String key, int defaultValue) throws ConfigException(Code)
Returns a single integer value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a integer then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. The integer value associated with the given key.
exception:
  ConfigException - Thrown if there was not exactly onerequested element, or if the element is of the wrong data type or format.
See Also:   ConfigException



getInts
public int[] getInts(String key) throws ConfigException(Code)
Returns all integer values associated with a given key. If any of the elements associated with the key cannot be converted to a integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry. An array of integers containing the list of integer values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getInts
public int[] getInts(String key, int[] defaultValue) throws ConfigException(Code)
Returns all integer values associated with a given key. If any of the elements associated with the key cannot be converted to a integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. An array of integers containing the list of integer values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entries are ofthe wrong data type or format.
See Also:   ConfigException



getLong
public long getLong(String key) throws ConfigException(Code)
Returns a single long integer value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a long integer then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry. The long integer value associated with the given key.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getLong
public long getLong(String key, long defaultValue) throws ConfigException(Code)
Returns a single long integer value associated with a given key. If the key is associated with more than one element then a ConfigException error is thrown with reason set to COUNT. If the retrieved element cannot be converted to a long integer then a ConfigException error is thrown with reason set to FORMAT.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. The long integer value associated with the given key.
exception:
  ConfigException - Thrown if there was not exactly one requestedelement, or if the element is of the wrong data type or format.
See Also:   ConfigException



getLongs
public long[] getLongs(String key) throws ConfigException(Code)
Returns all long integer values associated with a given key. If any of the elements associated with the key cannot be converted to a long integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry. An array of longs containing the list of long values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getLongs
public long[] getLongs(String key, long[] defaultValue) throws ConfigException(Code)
Returns all long integer values associated with a given key. If any of the elements associated with the key cannot be converted to a long integer then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. An array of longs containing the list of long values from theconfiguration input stream.
exception:
  ConfigException - Thrown if the requested entries are of the wrongdata type or format.
See Also:   ConfigException



getSection
public synchronized KeywordValueTable getSection(String keyword) throws KeywordValueException(Code)
Gets the value of a section as a KeywordValueTable object. This method overrides the KeywordValueTable.getSection in order to insure that Config.getSection() always returns a Config object even if a KeywordValueTable was inserted into the Config as a section.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path. A reference to the section object or null if not found.
exception:
  KeywordValueException - If the keyword is not syntactically legalor a non-leaf element of the keyword is not a section or the value object isnot a KeywordValueTable.
See Also:   KeywordValueTable.getSection



getString
public String getString(String key) throws ConfigException(Code)
Returns a single String value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a String then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry. The string value associated with the given key.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getString
public String getString(String key, String defaultValue) throws ConfigException(Code)
Returns a single String value associated with a given key. If the key is associated with more than one element, or the retrieved element cannot be converted to a String then a ConfigException exception is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. The string value associated with the given key.
exception:
  ConfigException - Thrown if there was not exactly onerequested element, or if the element is of the wrong data type or format.
See Also:   ConfigException



getStrings
public String[] getStrings(String key) throws ConfigException(Code)
Returns all String values associated with a given key. If any of the elements associated with the key cannot be converted to a String then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry. An array of strings containing the list of string values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entry does not existor elements are not in the requested format.
See Also:   ConfigException



getStrings
public String[] getStrings(String key, String[] defaultValue) throws ConfigException(Code)
Returns all String values associated with a given key. If any of the elements associated with the key cannot be converted to a String then a ConfigException error is thrown.
Parameters:
  key - The key to use to search for the configuration entry.
Parameters:
  defaultValue - The default value to use if the requested entrydoes not exist. An array of strings containing the list of string values fromthe configuration input stream.
exception:
  ConfigException - Thrown if the requested entries are ofthe wrong data type or format.
See Also:   ConfigException



importConfig
public void importConfig(Config config) throws KeywordValueException(Code)
Imorts and synchronizes to, all parameters (key-value pairs) according to given Config object parameters. All parameters which do not exist in imported Config object will be removed.
Parameters:
  config - Config object which has key-value pairs for importing.
exception:
  KeywordValueException -



isArray
public boolean isArray(String key) throws ConfigException(Code)
Is the key is an array, or a single value. If this returns true, you should use getStrings() (or if you know the type of the data, you can use, for example, getInts()). If this returns false, you shoud use getString() (or if you know the type of the data, you can use, for example, getInt()).
Parameters:
  key - The key to search for. True if the key is an array, false if it is a single value.
exception:
  ConfigException - If the key is not found.



newSection
protected KeywordValueTable newSection()(Code)
Allocates a new section. The overrides the default method to allocate a section that is of class Config. A reference to a new section.
See Also:   KeywordValueTable.newSection



setConfigFile
public void setConfigFile(ConfigFileInterface configFile)(Code)
Sets the ConfigFile associated with this object. For use by ConfigFile only, anyone else please use the appropriate constructor
Parameters:
  configFile - ConfigFile object associated with this object



Methods inherited from com.lutris.util.KeywordValueTable
public synchronized boolean containsKey(String keyword) throws KeywordValueException(Code)(Java Doc)
public synchronized Object get(String keyword) throws KeywordValueException(Code)(Java Doc)
public synchronized Object get(String keyword, Object defaultValue) throws KeywordValueException(Code)(Java Doc)
public synchronized KeywordValueTable getSection(String keyword) throws KeywordValueException(Code)(Java Doc)
public synchronized String getString(String keyword) throws KeywordValueException(Code)(Java Doc)
public synchronized String getString(String keyword, String defaultValue) throws KeywordValueException(Code)(Java Doc)
public synchronized String[] keys()(Code)(Java Doc)
public synchronized String[] leafKeys()(Code)(Java Doc)
protected KeywordValueTable newSection()(Code)(Java Doc)
public synchronized void remove(String keyword) throws KeywordValueException(Code)(Java Doc)
public synchronized void set(String keyword, Object value) throws KeywordValueException(Code)(Java Doc)
public synchronized void setDefault(String keyword, Object defaultValue) throws KeywordValueException(Code)(Java Doc)
public synchronized String toHtml()(Code)(Java Doc)
public synchronized String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.