Properties
| Kind of class: | interface |
|---|---|
| Inherits from: | BasicInterface |
| Implemented by: | |
| Version: | 1.0 |
| Author: | Martin Heidegger, Simon Wacker |
| Classpath: | org.as2lib.data.holder.Properties |
| File last modified: | Wednesday, 12 October 2005, 20:03:50 |
Properties represents a persistent set of properties; simply key-valuepairs.
Summary
Instance methods
getProperty
function getProperty (
key:String,
defaultValue:String) : String
Returns the value associated with the given
given
key if there is one, and thegiven
defaultValue otherwise.Parameters:
key :
the key to return the value for
defaultValue:
the default value to return if there is no value mapped to the
given
given
keyReturns:
the value mapped to the given
key or the given defaultValuesetProperty
function setProperty (
key:String,
value:String) : Void
Sets the given
to the
value for the given key; the value is mappedto the
key.Parameters:
key :
the key to map the
value tovalue:
the value to map to the
key