|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.core.PropertyStore
public final class PropertyStore
Responsible for managing the available properties. The property values can be
obtained simply by querying the reference returned by getConfig().
Alternatively consider calling PropertyInfo.getValue(), which
provides for customized default behavior. These info objects can be added by
calling addInfo(String, String, String, String) and are used for
example in ProtoJ help.
| Constructor Summary | |
|---|---|
PropertyStore(CoreProject parent)
Creates an instance with the owning project. |
|
| Method Summary | |
|---|---|
PropertyInfo |
addInfo(java.lang.String key,
java.lang.String missingDefault,
java.lang.String emptyDefault,
java.lang.String description)
Convenience method that creates a PropertyInfo instance with the
given arguments and adds it to this store. |
org.apache.commons.configuration.Configuration |
getConfig()
The instance responsible for obtaining property values. |
PropertyInfo |
getInfo(java.lang.String key)
Looks up the PropertyInfo with the given key. |
java.util.Collection<PropertyInfo> |
getInfos()
Read-only access to the added PropertyInfo instances. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyStore(CoreProject parent)
parent - | Method Detail |
|---|
public PropertyInfo addInfo(java.lang.String key,
java.lang.String missingDefault,
java.lang.String emptyDefault,
java.lang.String description)
PropertyInfo instance with the
given arguments and adds it to this store.
key - missingDefault - emptyDefault - description -
public java.util.Collection<PropertyInfo> getInfos()
PropertyInfo instances.
public PropertyInfo getInfo(java.lang.String key)
PropertyInfo with the given key.
key -
public org.apache.commons.configuration.Configuration getConfig()
createConfig().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||