Class ServletToolboxRuleSet.BooleanConfigRule

java.lang.Object
Rule
org.apache.velocity.tools.view.servlet.ServletToolboxRuleSet.BooleanConfigRule
Direct Known Subclasses:
ServletToolboxRuleSet.CreateSessionRule, ServletToolboxRuleSet.XhtmlRule
Enclosing class:
ServletToolboxRuleSet

protected abstract class ServletToolboxRuleSet.BooleanConfigRule extends Rule
Abstract rule for configuring boolean options on the parent object/element of the matching element.
  • Constructor Details

    • BooleanConfigRule

      protected BooleanConfigRule()
  • Method Details

    • body

      public void body(String ns, String name, String text) throws Exception
      Throws:
      Exception
    • setBoolean

      public abstract void setBoolean(Object parent, Boolean value) throws Exception
      Takes the parent object and boolean value in order to call the appropriate method on the parent for the implementing rule.
      Parameters:
      parent - the parent object/element in the digester's stack
      value - the boolean value contained in the current element
      Throws:
      Exception