|
Public Member Functions |
| Properties (IN(RProperties) def=Nil) |
RString | getProperty (IN(RString) key) |
| see RString getProperty(IN(RString) key, IN(RString) defaultValue, bool withDefaults = true);
|
RString | getProperty (IN(RString) key, IN(RString) defaultValue, bool withDefaults=true) |
| retrieve a property as String
|
RMap | getMapProperty (IN(RString) keyStart, bool withDefaults=true) |
| ACDK extension return a list of properties as map If keyStart is "my.prop" and the properties contains the values my.prop.a=A my.prop.b=B my.prop.c=C this method returns a map a => A b => B c => C.
|
void | setPropertyMap (IN(RString) keyStart, IN(RMap) map) |
| set the map of value/keys in current Property Before inserting all entries with starting keyStart + "." will be deleted
|
RStringArray | getArrayProperty (IN(RString) keyStart, int start=0, bool withDefaults=true) |
| ADCK extension return a list of property values a array if keyStart is "my.prop" and start = 1 (default is 0) and the properties contains following values: my.prop.1=A my.prop.2=C my.prop.3=B my.prop.5=X this method returns a string array containing "A", "C", "B" if no element was found returns an empty array.
|
void | setArrayProperty (IN(RString) keyStart, IN(RStringArray) values, int start=0) |
| set the array of string in the current properties map Before inserting all entries with starting keyStart + "." will be deleted
|
RString | eval (IN(RString) expr, bool recursive=false) |
| this method replaces with corresponding values in this properties.
|
void | list (IN(acdk::io::RPrintWriter) out, bool withDefaults=true) |
| writes the elements into the printwriter
|
void | load (IN(acdk::io::RReader) in) |
| Load a properties file using java literal decoding.
|
RIterator | propertyNames (bool withDefaults=true) |
| get a iterator for all keys of this properties
|
RObject | setProperty (IN(RString) key, IN(RString) value) |
| set the property value
|
void | store (IN(acdk::io::RWriter) out, IN(RString) header, bool withDefaults=true) |
RProperties | defaults () |
void | setDefaults (IN(RProperties) defaults) |
void | mergeProperties (IN(RProperties) props) |
| merge existant properties with new properties.
|
void | addPropertyChangeListener (IN(RPropertiesChangeListener) listener) |
| add a new listener
|
void | removePropertyChangeListener (IN(RPropertiesChangeListener) listener) |
| remove a previous added listener
|
virtual RObject | clone () |
| Interface from cloneable.
|
virtual RObject | clone (sys::Allocator *alloc) |
Static Public Member Functions |
RProperties | loadProperties (IN(RString) name) |
| try to load properties file on given name.
|
Protected Member Functions |
void | _deleteKeys (IN(RString) keyStart) |
| deletes all entries with keys starting with keyStart in this properties
|
void | _notifyListener (PropertiesChangeAction action, IN(RString) key, IN(RObject) obj) |
| used internally to notify listener
|
void | _notifyListener2 (PropertiesChangeAction action, IN(RString) key, IN(RObject) obj) |
Static Protected Member Functions |
RString | _format (IN(RString) key, IN(RString) value) |
Protected Attributes |
RProperties | _defaults |
RPropertiesChangeListenerArray | _listener |
Friends |
class | PropertiesIterator |