org.drools.tags.rule
Class ConsequenceTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.drools.tags.rule.RuleTagSupport
              |
              +--org.drools.tags.rule.ConsequenceTag
All Implemented Interfaces:
ConsequenceReceptor, org.apache.commons.jelly.Tag

public class ConsequenceTag
extends RuleTagSupport
implements ConsequenceReceptor

Construct a Consequence for a Rule.

Version:
$Id: ConsequenceTag.java,v 1.6 2003/03/25 19:47:32 tdiesler Exp $
Author:
bob mcwhirter
See Also:
Consequence

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ConsequenceTag()
          Construct.
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Perform this tag.
 Consequence getConsequence()
          Retrieve the Consequence.
 java.lang.String getVar()
          Retrieve the variable in which to store the Consequence.
 void receiveConsequence(Consequence consequence)
          Receive a Consequence.
 void setConsequence(Consequence consequence)
          Set the Consequence.
 void setVar(java.lang.String var)
          Set the variable in which to store the Consequence.
 
Methods inherited from class org.drools.tags.rule.RuleTagSupport
getAvailableDeclarations, getRule, getRuleSet, requiredAttribute
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.tags.rule.ConsequenceReceptor
getAvailableDeclarations
 

Constructor Detail

ConsequenceTag

public ConsequenceTag()
Construct.
Method Detail

setConsequence

public void setConsequence(Consequence consequence)
Set the Consequence.
Parameters:
consequence - The consequence.

getConsequence

public Consequence getConsequence()
Retrieve the Consequence.
Returns:
The consequence.

setVar

public void setVar(java.lang.String var)
Set the variable in which to store the Consequence.
Parameters:
var - The variable name.

getVar

public java.lang.String getVar()
Retrieve the variable in which to store the Consequence.
Returns:
The variable name.

receiveConsequence

public void receiveConsequence(Consequence consequence)
Receive a Consequence.
Specified by:
receiveConsequence in interface ConsequenceReceptor
Parameters:
consequence - The consequence.

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Perform this tag.
Overrides:
doTag in class org.apache.commons.jelly.TagSupport
Parameters:
output - The output sink.
Throws:
org.apache.commons.jelly.JellyTagException - If an error occurs while attempting to perform this tag.


Copyright © 2001-2003 The Werken Company. All Rights Reserved.