org.writersforge.catalan.transform.rule
Class ConvertRule

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

public abstract class ConvertRule
extends QueryRule

Common base class for all query-based rules that convert existing content into some other format.

Author:
jsheets

Constructor Summary
ConvertRule(java.lang.String query, java.lang.String propertyName)
          Creates a new instance of ConvertRule for Datum or Datum property operations.
 
Methods inherited from class org.writersforge.catalan.transform.rule.QueryRule
getPropertyName, getQuery, isPropertyRule, postProcessTargets, process, processDatum, processProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertRule

public ConvertRule(java.lang.String query,
                   java.lang.String propertyName)
Creates a new instance of ConvertRule for Datum or Datum property operations. Uses the query to gather the data to transform. If propertyName is null, the Rule should act upon the Datum itself, not the property.

Parameters:
query - the Bellows query to select target content
propertyName - the name of the Datum property to transform, or null for Datum transforms