net.infonode.properties.propertymap

Class PropertyMapFactory

public class PropertyMapFactory extends Object

Contains factory methods for {@link PropertyMap}.

Version: $Revision: 1.3 $

Author: $Author: jesper $

Method Summary
static PropertyMapcreate(PropertyMapGroup propertyGroup)
Creates a property map that can contain values for properties in the given property group.
static PropertyMapcreate(PropertyMap inheritFrom)
Creates a property map with the same property group as inheritFrom.

Method Detail

create

public static PropertyMap create(PropertyMapGroup propertyGroup)
Creates a property map that can contain values for properties in the given property group.

Parameters: propertyGroup the property group

Returns: a new property map

create

public static PropertyMap create(PropertyMap inheritFrom)
Creates a property map with the same property group as inheritFrom. inheritFrom is added as a super map to the created property map.

Parameters: inheritFrom the super map

Returns: a new property map