|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.PropertySettings
public class PropertySettings
This object holds the property settings for Cocoon. This interface is loosely based on the Settings interface introduced in 2.2 but is note equivalent to it as it is only meant to hold configuration properties.
Field Summary | |
---|---|
protected static Map |
CONTEXT_PARAMETERS
Parameter map for the context protocol |
Fields inherited from interface org.apache.cocoon.util.Settings |
---|
PROPERTY_USER_SETTINGS, ROLE |
Constructor Summary | |
---|---|
PropertySettings(SourceResolver resolver,
Logger logger)
Initialize the settings for Cocoon. |
Method Summary | |
---|---|
List |
getProperties()
Return all available properties |
List |
getProperties(String keyPrefix)
Return all available properties starting with the prefix. |
String |
getProperty(String name)
Get the value of a property. |
String |
getProperty(String key,
String defaultValue)
Get the value of a property. |
int |
size()
Return the number of properties that have been defined |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map CONTEXT_PARAMETERS
Constructor Detail |
---|
public PropertySettings(SourceResolver resolver, Logger logger)
resolver
- The SourceResolver.logger
- the Logger to use.Method Detail |
---|
public String getProperty(String name)
Settings
getProperty
in interface Settings
name
- The name of the property.
Settings.getProperty(java.lang.String)
public String getProperty(String key, String defaultValue)
Settings
getProperty
in interface Settings
key
- The name of the property.defaultValue
- The value returned if the property is not available.
Settings.getProperty(java.lang.String, java.lang.String)
public List getProperties(String keyPrefix)
Settings
getProperties
in interface Settings
keyPrefix
- The prefix each property name must have.
Settings.getProperties(java.lang.String)
public List getProperties()
Settings
getProperties
in interface Settings
Settings.getProperties()
public int size()
Settings
size
in interface Settings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |