Properties

Properties

Class representing a Properties set.

Constructor

new Properties(props)

Source:

Create an Properties

Parameters:
Name Type Description
props Object

Methods

getProperties() → {Object}

Source:

Returns an Object map of the given properties

Returns:

properties - the properties object

Type
Object

getProperty(name, default) → {*}

Source:

Property getter

Parameters:
Name Type Description
name string

the property name

default *

the defaut value to return if not set

Returns:

value - the property value

Type
*

setProperty(name, value)

Source:

Property setter

Parameters:
Name Type Description
name string

the property name

value *

the property value

toJSON() → {Object}

Source:

Returns a JSON object of the given properties

Returns:

json - the properties object

Type
Object

toPropertiessFileContent() → {string}

Source:

Returns a properties file-like string of the given properties

Returns:

properties - the properties content

Type
string