org.eclipse.higgins.registry
Class MapConfiguraton
java.lang.Object
org.eclipse.higgins.registry.MapConfiguraton
- All Implemented Interfaces:
- IConfiguration
public class MapConfiguraton
- extends Object
- implements IConfiguration
MapConfiguraton
public MapConfiguraton(Map config)
- Parameters:
config -
getProperty
public Object getProperty(String key)
- Description copied from interface:
IConfiguration
- Searches for the configuration property with the specified key in this
configuration. The method returns null if the property is not found.
- Specified by:
getProperty in interface IConfiguration
- Parameters:
key - the property key
- Returns:
- the value in this configuration with the specified key value
getProperty
public Object getProperty(String key,
Object defaultValue)
- Description copied from interface:
IConfiguration
- Searches for the configuration property with the specified key in this
configuration. The method returns
defaultValue if the
property is not found.
- Specified by:
getProperty in interface IConfiguration
- Parameters:
key - the property keydefaultValue - a default value
- Returns:
- the value in this configuration with the specified key value
getPropertyNames
public Iterator getPropertyNames()
- Description copied from interface:
IConfiguration
- Provides set of configuration property names.
- Specified by:
getPropertyNames in interface IConfiguration
- Returns:
- an
Iterable set of Strings
save
public void save()
throws RegistryConfigurationException
- Specified by:
save in interface IConfiguration
- Throws:
RegistryConfigurationException
setProperty
public void setProperty(String key,
Object property)
throws RegistryConfigurationException
- Specified by:
setProperty in interface IConfiguration
- Throws:
RegistryConfigurationException