org.writersforge.catalan.transform
Class ProcessorFactory

java.lang.Object
  |
  +--org.writersforge.catalan.transform.ProcessorFactory

public class ProcessorFactory
extends java.lang.Object

Factory for converting XML transform instructions into NodeProcessor classes.

Author:
jsheets

Method Summary
 org.writersforge.bellows.traverse.NodeProcessor createProcessor(org.writersforge.bellows.Datum datum)
          Creates a NodeProcessor implementation, based on the content of the Datum input instruction.
static ProcessorFactory getInstance()
          Retrieves the singleton instance of the ProcessorFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProcessorFactory getInstance()
Retrieves the singleton instance of the ProcessorFactory.

Returns:
an instance of the ProcessorFactory

createProcessor

public org.writersforge.bellows.traverse.NodeProcessor createProcessor(org.writersforge.bellows.Datum datum)
Creates a NodeProcessor implementation, based on the content of the Datum input instruction.

Parameters:
datum - Datum version of the instruction
Returns:
a processor for the given instruction, or null if the Datum does not correspond to a known implementation