nz.ac.waikato.mcennis.rat.graph.link
Class LinkFactory

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.link.LinkFactory

public class LinkFactory
extends java.lang.Object

Class for generating Links from a Properties map.


Constructor Summary
protected LinkFactory()
          Creates a new instance of LinkFactory
 
Method Summary
 Link create(java.util.Properties props)
          Creates a new Link based on the 'LinkClass' attribute.
static LinkFactory newInstance()
          Create a new reference to a singelton LinkFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkFactory

protected LinkFactory()
Creates a new instance of LinkFactory

Method Detail

newInstance

public static LinkFactory newInstance()
Create a new reference to a singelton LinkFactory object

Returns:
a reference to a LinkFactory

create

public Link create(java.util.Properties props)
Creates a new Link based on the 'LinkClass' attribute. Currently only BasicLink is supported, so this value is ignored. 'LinkType' sets the link type (relation) of this link before returning.

Parameters:
props - map of properties for creating a map
Returns:
a newly created Link