com.northgateis.reality.util
Class Properties
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--com.northgateis.reality.util.Properties
- public class Properties
- extends java.util.Properties
Handles reality specific properties.
- See Also:
- Serialized Form
| Constructor Summary
|
Properties()
Create a new properties class and load it from the reality properties
file (reality.properties). |
| Method Summary |
java.lang.String | getProperty(java.lang.String key) Get a property. |
java.lang.String | getProperty(java.lang.String key,
java.lang.String defaultValue) Get a property. |
| Methods inherited from class java.util.Properties |
list,
list,
load,
propertyNames,
save,
setProperty,
store |
| Methods inherited from class java.util.Hashtable |
clear,
clone,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
put,
putAll,
remove,
size,
toString,
values |
| Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Properties
public Properties()
throws java.io.IOException
- Create a new properties class and load it from the reality properties
file (reality.properties). This file may be located anywhere in the
class path
throws IOException reality.properties not found
getProperty
public java.lang.String getProperty(java.lang.String key)
- Get a property.
Properties defined on the command line overide those set in
the properties file.
- Overrides:
- getProperty in class java.util.Properties
- Parameters:
key - key to property
getProperty
public java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
- Get a property.
Properties defined on the command line overide those set in
the properties file.
- Overrides:
- getProperty in class java.util.Properties
- Parameters:
key - key to propertydefaultValue - value returned of key not found
Copyright (c) 2000 NEC Software Services (UK) Limited
NEC welcomes your feedback on our documentation.
If you have any comments about the current Reality Help, or want something to be added in a future revision, please contact your NEC Helpdesk.
If your comment relates to this particular Help topic, remember to include the following information:
|
Product:
|
RealityVersion 15.6
|
|
Help revision:
|
Revision 0
|
|
Help topic:
|
Reality Interface Classes: Class Properties
(JReal)
|
|
File name:
|
properties.html
|