org.apache.velocity.tools.view.servlet
Class ServletToolboxRuleSet.BooleanConfigRule

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

protected abstract class ServletToolboxRuleSet.BooleanConfigRule
extends org.apache.commons.digester.Rule

Abstract rule for configuring boolean options on the parent object/element of the matching element.


Field Summary
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
protected ServletToolboxRuleSet.BooleanConfigRule()
           
 
Method Summary
 void body(java.lang.String ns, java.lang.String name, java.lang.String text)
           
abstract  void setBoolean(java.lang.Object parent, java.lang.Boolean value)
          Takes the parent object and boolean value in order to call the appropriate method on the parent for the implementing rule.
 
Methods inherited from class org.apache.commons.digester.Rule
begin, begin, body, end, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletToolboxRuleSet.BooleanConfigRule

protected ServletToolboxRuleSet.BooleanConfigRule()
Method Detail

body

public void body(java.lang.String ns,
                 java.lang.String name,
                 java.lang.String text)
          throws java.lang.Exception
Overrides:
body in class org.apache.commons.digester.Rule
Throws:
java.lang.Exception

setBoolean

public abstract void setBoolean(java.lang.Object parent,
                                java.lang.Boolean value)
                         throws java.lang.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:
java.lang.Exception


Copyright (c) 2003-2007 Apache Software Foundation