org.jmux.app
Class ConfigImpl

java.lang.Object
  extended by org.jmux.app.ConfigImpl
All Implemented Interfaces:
java.io.Serializable, Config

public class ConfigImpl
extends java.lang.Object
implements Config, java.io.Serializable

Author:
donaldw
See Also:
Serialized Form

Constructor Summary
ConfigImpl(java.lang.String name)
           
 
Method Summary
 boolean getBoolean(boolean def)
           
 boolean getBoolean(boolean defaultVal, java.lang.String... names)
           
 Config getConf(java.lang.String name)
           
 java.util.List<Config> getConfs(java.lang.String name)
           
 int getInteger(int def)
           
 int getInteger(int defaultVal, java.lang.String... names)
           
 java.lang.String getName()
           
 java.lang.String getString(java.lang.String def)
           
 java.lang.String getString(java.lang.String defaultVal, java.lang.String... names)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigImpl

public ConfigImpl(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Config

getConf

public Config getConf(java.lang.String name)
Specified by:
getConf in interface Config

getConfs

public java.util.List<Config> getConfs(java.lang.String name)
Specified by:
getConfs in interface Config

getBoolean

public boolean getBoolean(boolean def)
Specified by:
getBoolean in interface Config

getString

public java.lang.String getString(java.lang.String def)
Specified by:
getString in interface Config

getInteger

public int getInteger(int def)
Specified by:
getInteger in interface Config

getBoolean

public boolean getBoolean(boolean defaultVal,
                          java.lang.String... names)
Specified by:
getBoolean in interface Config

getString

public java.lang.String getString(java.lang.String defaultVal,
                                  java.lang.String... names)
Specified by:
getString in interface Config

getInteger

public int getInteger(int defaultVal,
                      java.lang.String... names)
Specified by:
getInteger in interface Config

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2008 jmux.org. All Rights Reserved.