Class AbstractRewrite

java.lang.Object
org.ocpsoft.rewrite.AbstractRewrite
All Implemented Interfaces:
Rewrite

public abstract class AbstractRewrite extends Object implements Rewrite
Author:
Lincoln Baxter, III
  • Constructor Details

    • AbstractRewrite

      public AbstractRewrite()
  • Method Details

    • getRewriteContext

      public Context getRewriteContext()
      Description copied from interface: Rewrite
      Get the Context object associated with this Rewrite event. The Context is created at the start of a Rewrite event, and is destroyed once the Rewrite event is complete.
      Specified by:
      getRewriteContext in interface Rewrite
    • getEvaluatedRules

      public List<Rule> getEvaluatedRules()
      Description copied from interface: Rewrite
      Returns the list of Rule instances that have been evaluated during this Rewrite event.
      Specified by:
      getEvaluatedRules in interface Rewrite
    • logEvaluatedRules

      public static void logEvaluatedRules(Rewrite event, org.ocpsoft.logging.Logger.Level level)
      Print a log of all Rule instances evaluated during the given Rewrite event. This method is a no-op if the selected logging Logger.Level is disabled.