Interface org.as2lib.data.holder.Properties

Description

Properties represents a persistent set of properties; simply key-value pairs.

Method Index

getProperty(), setProperty()

Inherited from BasicInterface

Method Detail

getProperty

public 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

keythe key to return the value for
defaultValuethe default value to return if there is no value mapped to the given key

Return

the value mapped to the given key or the given defaultValue

setProperty

public function setProperty(key:String, value:String):Void

Sets the given value for the given key; the value is mapped to the key.

Parameters

keythe key to map the value to
valuethe value to map to the key