![]()
|
Cocoon API: Class Configurations
org.apache.cocoon.framework
|
Field Summary | |
protected java.lang.String |
baseName
|
protected java.util.Properties |
properties
|
protected Configurations |
root
|
Constructor Summary | |
Configurations()
|
|
Configurations(Configurations c)
Create the class with given defaults. |
|
Configurations(Configurations parent,
java.lang.String base)
Create a subconfiguration starting from the base node. |
|
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 |
getAnyConfig(java.lang.Class c,
java.lang.Object x)
For use by superclasses and support classes. |
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 Configurations root
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)
public Configurations(Configurations parent, java.lang.String base)
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 Configurations getAnyConfig(java.lang.Class c, java.lang.Object x) throws java.lang.IllegalAccessException
c
- - the superclass that is to be configured.x
- - the object that is to be configured, for validation.java.lang.IllegalAccessException
- if this object is not allowed
to access configuration information for the given class.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 |