net.infonode.properties.propertymap
Class PropertyMapFactory

java.lang.Object
  extended by net.infonode.properties.propertymap.PropertyMapFactory

public class PropertyMapFactory
extends java.lang.Object

Contains factory methods for PropertyMap.

Version:
$Revision: 1.3 $
Author:
$Author: jesper $

Constructor Summary
private PropertyMapFactory()
           
 
Method Summary
static PropertyMap create(PropertyMap inheritFrom)
          Creates a property map with the same property group as inheritFrom.
static PropertyMap create(PropertyMapGroup propertyGroup)
          Creates a property map that can contain values for properties in the given property group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMapFactory

private PropertyMapFactory()
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