DDLGenConfigurationpublic class Configuration
extends java.lang.Object
| Modifier and Type | Field | Description | 
|---|---|---|
static java.lang.String | 
FALSE | 
 String representation of boolean  
false. | 
static java.lang.String | 
TRUE | 
 String representation of boolean  
true. | 
| Constructor | Description | 
|---|---|
Configuration() | 
 Constructor for Configuration. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
addProperties(java.lang.String filename) | 
 add properties (key, value) for configuration, the existed item will
 be overwrited. 
 | 
void | 
addProperties(java.util.Properties props) | 
 add properties (key, value) for configuration, the existed item will
 be overwrited. 
 | 
boolean | 
getBoolValue(java.lang.String key) | 
 get boolean value associated with key in the configuration files. 
 | 
boolean | 
getBoolValue(java.lang.String key,
            boolean defaultValue) | 
 get boolean value associated with key in the configuration files. 
 | 
java.lang.Integer | 
getInteger(java.lang.String name) | 
 Get property with given name as Integer value. 
 | 
java.lang.String | 
getStringValue(java.lang.String key) | 
 get String value associated with key in the configuration files. 
 | 
java.lang.String | 
getStringValue(java.lang.String key,
              java.lang.String defaultValue) | 
 get String value associated with key in the configuration files. 
 | 
void | 
setProperty(java.lang.String key,
           java.lang.String value) | 
 set property value, this will overwrite the loaded value. 
 | 
public static final java.lang.String TRUE
true.public static final java.lang.String FALSE
false.public final boolean getBoolValue(java.lang.String key)
                           throws WrongFormatException,
                                  KeyNotFoundException
key - keyWrongFormatException - format errorKeyNotFoundException - key errorpublic final boolean getBoolValue(java.lang.String key,
                                  boolean defaultValue)
key - keydefaultValue - default valuepublic final java.lang.Integer getInteger(java.lang.String name)
name - Name of the property.public final java.lang.String getStringValue(java.lang.String key)
                                      throws KeyNotFoundException
key - keyKeyNotFoundException - key errorpublic final java.lang.String getStringValue(java.lang.String key,
                                             java.lang.String defaultValue)
key - keydefaultValue - default valuepublic final void addProperties(java.util.Properties props)
props - propertiespublic final void addProperties(java.lang.String filename)
                         throws GeneratorException
filename - a properties fileGeneratorException - generator errorpublic final void setProperty(java.lang.String key,
                              java.lang.String value)
key - keyvalue - valueIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com