org.apache.cocoon.spring.configurator.impl
Class SettingsProperties
java.lang.Object
java.util.Dictionary
java.util.Hashtable
java.util.Properties
org.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. |
Constructor Summary |
SettingsProperties(org.apache.cocoon.configuration.Settings s)
Constructor for this properties object. |
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 |
settings
protected final org.apache.cocoon.configuration.Settings settings
- A reference to the settings beans.
SettingsProperties
public SettingsProperties(org.apache.cocoon.configuration.Settings s)
- Constructor for this properties object.
- Parameters:
s
- The settings object.
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.