nz.ac.waikato.mcennis.rat.graph.property
Class PropertyFactory

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.property.PropertyFactory

public class PropertyFactory
extends java.lang.Object

Class for creating Property objects


Constructor Summary
PropertyFactory()
          Creates a new instance of PropertyFactory
 
Method Summary
 Property create(java.util.Properties props)
          Creates a new Property Object.
static PropertyFactory newInstance()
          Create a reference to the singelton PropertyFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFactory

public PropertyFactory()
Creates a new instance of PropertyFactory

Method Detail

newInstance

public static PropertyFactory newInstance()
Create a reference to the singelton PropertyFactory

Returns:
reference to the PropertyFactory

create

public Property create(java.util.Properties props)
Creates a new Property Object. 'PropertyID' is used to set the id of the resulting property. 'PropertyClass' is used to set what class of objects can be added as values. A new BasicProperty object with the given id and given values class is returned.

Parameters:
props - map of initialization properties
Returns:
new Property object