Access keys

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-value
pairs.

Summary

Instance methods
Instance methods inherited from BasicInterface

Instance methods

getProperty

function getProperty (
key:String, defaultValue:String) : String
Returns the value associated with the given key if there is one, and the
given 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 key
Returns:
the value mapped to the given key or the given defaultValue

setProperty

function setProperty (
key:String, value:String) : Void
Sets the given value for the given key; the value is mapped
to the key.
Parameters:
key :
the key to map the value to
value:
the value to map to the key