org.apache.cocoon.spring.configurator.impl
Class SettingsProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.apache.cocoon.spring.configurator.impl.SettingsProperties
All Implemented Interfaces:
Cloneable, Map, Serializable

public class SettingsProperties
extends Properties

A properties implementation using the settings object.

Since:
1.0
Version:
$Id: SettingsProperties.java 587750 2007-10-24 02:35:22Z vgritsenko $
See Also:
Serialized Form

Field Summary
protected  org.apache.cocoon.configuration.Settings settings
          A reference to the settings beans.
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
SettingsProperties(org.apache.cocoon.configuration.Settings s)
          Constructor for this properties object.
 
Method Summary
 String getProperty(String key)
           
 String getProperty(String key, String defaultValue)
           
 
Methods inherited from class java.util.Properties
list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

settings

protected final org.apache.cocoon.configuration.Settings settings
A reference to the settings beans.

Constructor Detail

SettingsProperties

public SettingsProperties(org.apache.cocoon.configuration.Settings s)
Constructor for this properties object.

Parameters:
s - The settings object.
Method Detail

getProperty

public String getProperty(String key,
                          String defaultValue)
Parameters:
key - The name of the property.
defaultValue - The default value of the property.
Returns:
The value of the property or the default value.
See Also:
Properties.getProperty(java.lang.String, java.lang.String)

getProperty

public String getProperty(String key)
Parameters:
key - The name of the property.
Returns:
The value of the property or null.
See Also:
Properties.getProperty(java.lang.String)


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.