net.jetrix.config
Class Configuration

java.lang.Object
  extended by net.jetrix.config.Configuration
Direct Known Subclasses:
FilterConfig, WinlistConfig

public class Configuration
extends Object

A generic configuration.

Version:
$Revision: 545 $, $Date: 2005-01-05 18:16:04 +0100 (mer., 05 janv. 2005) $
Author:
Emmanuel Bourg

Field Summary
protected  Properties props
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 boolean getBoolean(String key, boolean defaultValue)
           
 int getInt(String key, int defaultValue)
           
 Properties getProperties()
          Return the underlying Properties.
 String getString(String key, String defaultValue)
           
 void setParameter(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

protected Properties props
Constructor Detail

Configuration

public Configuration()
Method Detail

setParameter

public void setParameter(String name,
                         String value)

getInt

public int getInt(String key,
                  int defaultValue)

getBoolean

public boolean getBoolean(String key,
                          boolean defaultValue)

getString

public String getString(String key,
                        String defaultValue)

getProperties

public Properties getProperties()
Return the underlying Properties.

Since:
0.2


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.