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

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.apache.cocoon.spring.configurator.impl.SettingsProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

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, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
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)
Overrides:
getProperty in class Properties
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)
Overrides:
getProperty in class Properties
Parameters:
key - The name of the property.
Returns:
The value of the property or null.
See Also:
Properties.getProperty(java.lang.String)


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