|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.util.PropSpec
Stores named settings.
| Constructor Summary | |
PropSpec()
Create a new property specification. |
|
| Method Summary | |
PropSpec |
copyPropSpec()
Create a copy of this PropSpec instance. |
boolean |
getBooleanProperty(String pPropName)
Get the value of a boolean property. |
String |
getProperty(String pPropName)
Get the value of a string property. |
void |
setProperty(String pPropName,
boolean pValue)
Set the value of a boolean property. |
void |
setProperty(String pPropName,
String pValue)
Set the value of a string property. |
String |
toString()
Produce a textual description of the property settings, suitable for debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PropSpec()
| Method Detail |
public PropSpec copyPropSpec()
PropSpec instance.
public void setProperty(String pPropName,
boolean pValue)
pPropName - boolean property namepValue - boolean valuesetProperty(String,String)
public void setProperty(String pPropName,
String pValue)
All settings are stored dynamically using a String value for the property name.
This enables dynamic access to settings at runtime.
pPropName - string property namepValue - string valuepublic String getProperty(String pPropName)
If property has not previously been defined, returns an empty string.
pPropName - of string propertypublic boolean getBooleanProperty(String pPropName)
If property has not previously been defined, returns false.
pPropName - name of boolean propertypublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||