org.writersforge.catalan.transform.rule
Class Recipe

java.lang.Object
  |
  +--org.writersforge.catalan.transform.rule.Recipe
All Implemented Interfaces:
Rule

public class Recipe
extends java.lang.Object
implements Rule

Convenience class for loading Bellows XML recipes as a composite Rule instance.

Author:
jsheets

Constructor Summary
Recipe(org.writersforge.bellows.Datum recipe)
          Creates a new instance of an XML transformation Recipe.
 
Method Summary
 org.writersforge.bellows.Datum process(org.writersforge.bellows.Datum content)
          Sends the content through the XML recipe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Recipe

public Recipe(org.writersforge.bellows.Datum recipe)
Creates a new instance of an XML transformation Recipe.

Parameters:
recipe - the contents of the recipe
Method Detail

process

public org.writersforge.bellows.Datum process(org.writersforge.bellows.Datum content)
Sends the content through the XML recipe.

Specified by:
process in interface Rule
Parameters:
content - a Datum object to apply the Rule to
Returns:
the transformed content