util/ Properties.js

Copyright

2006 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com) All rights reserved

Related

util/Collections.js

Summary
2006 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com) All rights reserved
Used to load a properies file from a string
an array of two items, name and value
Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.
Gets the value from the properites by key.
Sets (or adds) a property from this properties object

Properties

Summary
Used to load a properies file from a string
an array of two items, name and value
Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.
Gets the value from the properites by key.
Sets (or adds) a property from this properties object

Functions

Properties. parse

Used to load a properies file from a string

Parameters

stylenull=plain text, 2=escaped, 3=base64ed

Return

Properties. splitNameValue

Returns

an array of two items, name and value

Properties. propertyNames

Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.

Returns

an array of key names

Properties. getProperty

Gets the value from the properites by key.  If key is not found it will return what (if anything) is passed in defaultValue.  If key is not found and no defaultvalue given, it’ll return null

Parameters

keythe string key to search for
defaultValue(optional) the value to return if the key is not found

Returns

the property as a string, the default value, or null

Properties. setProperty

Sets (or adds) a property from this properties object

Parameters

keythe key
valuethe value

Properties. store

Parameters

stylenull=plain text, 2=escaped, 3=base64ed
headerthe header to put at the top of the file (string) can be null Return: