jfun.jaskell.conf
Class Configuration

java.lang.Object
  extended byjfun.jaskell.conf.Configuration
All Implemented Interfaces:
java.io.Serializable

public final class Configuration
extends java.lang.Object
implements java.io.Serializable

Object of this class contains information read from a jaskell configuration file.

Zephyr Business Solutions Corp.

Author:
Ben Yu
See Also:
Serialized Form

Method Summary
 boolean containsKey(java.lang.Object key)
          Tests if a key is present in the configuration.
 java.lang.Object getValue(java.lang.Object key)
          Get the value of a certain key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public java.lang.Object getValue(java.lang.Object key)
                          throws java.util.NoSuchElementException
Get the value of a certain key.

Parameters:
key - the key.
Returns:
the value of the key.
Throws:
java.util.NoSuchElementException - if the key is not found.

containsKey

public boolean containsKey(java.lang.Object key)
Tests if a key is present in the configuration.

Parameters:
key - the key.
Returns:
true if the key is in configuration.