|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
schemacrawler.schemacrawler.Config
public final class Config
Configuration properties.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Constructor Summary | |
|---|---|
Config()
Creates an empty config. |
|
Config(java.util.Map<java.lang.String,java.lang.String> config)
Clones a config. |
|
Config(java.util.Properties properties)
Copies properties into a map. |
|
| Method Summary | |
|---|---|
boolean |
getBooleanValue(java.lang.String propertyName)
Gets the value of a property as a boolean. |
int |
getIntegerValue(java.lang.String propertyName)
Gets the value of a property as an integer. |
java.lang.String |
getStringValue(java.lang.String propertyName,
java.lang.String defaultValue)
Gets the value of a property as a string. |
static Config |
load(java.io.InputStream configStream)
Loads the SchemaCrawler configuration, from a properties file stream. |
static Config |
load(java.lang.String... configFilenames)
Loads the SchemaCrawler configuration, and override configuration, from properties files. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public Config()
public Config(java.util.Map<java.lang.String,java.lang.String> config)
config - Config to clonepublic Config(java.util.Properties properties)
properties - Properties to copy| Method Detail |
|---|
public static Config load(java.io.InputStream configStream)
configStream - Configuration stream.
public static Config load(java.lang.String... configFilenames)
configFilenames - Configuration file name.
public boolean getBooleanValue(java.lang.String propertyName)
propertyName - Property name
public int getIntegerValue(java.lang.String propertyName)
propertyName - Property name
public java.lang.String getStringValue(java.lang.String propertyName,
java.lang.String defaultValue)
propertyName - Property namedefaultValue - Default value
public java.lang.String toString()
toString in class java.util.AbstractMap<java.lang.String,java.lang.String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||