|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.framework.Configurations
This class encapsulates all the configurations needed by a Configurable class to work.
Field Summary | |
protected java.lang.String |
baseName
|
protected java.util.Properties |
properties
|
Constructor Summary | |
Configurations()
|
|
Configurations(Configurations c)
Create the class with given defaults. |
|
Configurations(java.io.InputStream stream)
Create the class from a the InputStream |
|
Configurations(java.io.InputStream stream,
Configurations defaults)
Create the class with given defaults and from the URL resource |
|
Configurations(java.lang.String file)
Create the class from a the file |
|
Configurations(java.lang.String file,
Configurations defaults)
Create the class with given defaults and from the file |
Method Summary | |
java.lang.Object |
get(java.lang.String key)
Get the configuration. |
java.lang.Object |
get(java.lang.String key,
java.lang.Object def)
Get the configuration and use the given default value if not found. |
Configurations |
getConfigurations(java.lang.String base)
Create a subconfiguration starting from the base node. |
java.lang.Object |
getNotNull(java.lang.String key)
Get the configuration, throw an exception if not present. |
java.util.Properties |
getProperties()
Get the Properties from the Configuration |
java.util.Vector |
getVector(java.lang.String key)
Get a vector of configurations when the syntax is incremental |
java.util.Enumeration |
keys()
Used by XSPProcessor, but this maybe should be getKeys()? |
void |
put(java.lang.String key,
java.lang.Object value)
The JavaModule interpreter is using this method. |
void |
set(java.lang.String key,
java.lang.Object value)
Set the configuration. |
void |
setBasename(java.lang.String baseName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String baseName
protected java.util.Properties properties
Constructor Detail |
public Configurations()
public Configurations(java.lang.String file) throws java.lang.Exception
public Configurations(java.lang.String file, Configurations defaults) throws java.lang.Exception
public Configurations(java.io.InputStream stream) throws java.lang.Exception
public Configurations(java.io.InputStream stream, Configurations defaults) throws java.lang.Exception
public Configurations(Configurations c)
Method Detail |
public void set(java.lang.String key, java.lang.Object value)
public void put(java.lang.String key, java.lang.Object value)
public java.lang.Object get(java.lang.String key)
public java.lang.Object get(java.lang.String key, java.lang.Object def)
public java.lang.Object getNotNull(java.lang.String key)
public java.util.Vector getVector(java.lang.String key)
public Configurations getConfigurations(java.lang.String base)
public java.util.Properties getProperties()
public void setBasename(java.lang.String baseName)
public java.util.Enumeration keys()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |