tmozISharedConfiguration Interface Reference

Shared configuration. More...

List of all members.

Public Member Functions

boolean hasValue (in AString name)
 Return if configuration exists.
boolean addValue (in AString name, in AString value)
 Add value.
AString getValue (in AString name)
 Return configuration value.
boolean setValue (in AString name, in AString value)
 Set value.


Detailed Description

Shared configuration.

Shared configuration object can be used to access configuration.


Member Function Documentation

boolean addValue ( in AString  name,
in AString  value 
)

Add value.

Add item and value to the configuration.

Parameters:
name Name of the new item
value New value
Returns:
Return true if configuration was set. Return false if error or item already exists.

AString getValue ( in AString  name  ) 

Return configuration value.

Return value for given configuration. If value is not found in the shared configuration method throw exception.

Parameters:
name Name of the item
Returns:
Return value of the item. Throw exception if option does not exist.

boolean hasValue ( in AString  name  ) 

Return if configuration exists.

Parameters:
name Name of the item.
Returns:
Return true if configuration exists. Return false if configuration does not exists.

boolean setValue ( in AString  name,
in AString  value 
)

Set value.

Set value of existing configuration.

Parameters:
name Name of the item
value New value
Returns:
Return true if configuration was set. Return false if error or item does not exists.


Generated on Thu Aug 27 12:37:06 2009 for Tahiti XPCOM API