|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.process.properties.BaseWorkProperties
org.writersforge.catalan.process.properties.ChainedProperties
A IWorkProperties that merges more than one IWorkProperties object into a chain of configurations. The ChainedProperties will search through each embedded config for the given property, and will return the first non-null value it finds. The array of property names is the union of all property names in all chained configs.
| Constructor Summary | |
ChainedProperties()
Creates a new instance of ChainedProperties. |
|
| Method Summary | |
void |
addPropertySet(IWorkProperties props)
Adds the given IWorkProperties object to the end of the chain. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieves the value of a named config property from the chained IWorkProperties instances. |
java.lang.String[] |
getPropertyNames()
Retrieves the names of all properties currently set on this holder. |
IWorkProperties[] |
getPropertySets()
Retrieves an array of all chained IWorkProperties instances. |
java.lang.String |
toString()
Converts object to String form. |
| Methods inherited from class org.writersforge.catalan.process.properties.BaseWorkProperties |
asMap, asMap, getPropertyAsBoolean, getPropertyAsDatum, getPropertyAsMap, getPropertyAsNumber, getPropertyAsString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ChainedProperties()
| Method Detail |
public final void addPropertySet(IWorkProperties props)
props - IWorkProperties to chainpublic IWorkProperties[] getPropertySets()
public java.lang.String[] getPropertyNames()
public java.lang.Object getProperty(java.lang.String name)
name - property name
public java.lang.String toString()
toString in class BaseWorkProperties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||