org.drools.tags.knowledge
Class RuleBaseTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.drools.tags.knowledge.RuleBaseTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class RuleBaseTag
extends org.apache.commons.jelly.TagSupport

Create a RuleBase.

Version:
$Id: RuleBaseTag.java,v 1.4 2002/08/21 05:46:13 bob Exp $
Author:
bob mcwhirter

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
RuleBaseTag()
          Construct.
 
Method Summary
 void addRule(Rule rule)
          Add a Rule to the RuleBase.
 void addRuleSet(RuleSet ruleSet)
          Add a RuleSet to the RuleBase.
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Perform this tag.
 RuleBase getRuleBase()
          Retrieve the RuleBase.
 java.lang.String getVar()
          Retrieve the variable in which to store the RuleBase.
 void setVar(java.lang.String var)
          Set the variable in which to store the RuleBase.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
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
 

Constructor Detail

RuleBaseTag

public RuleBaseTag()
Construct.
Method Detail

setVar

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

getVar

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

getRuleBase

public RuleBase getRuleBase()
Retrieve the RuleBase.
Returns:
The rule-base.

addRuleSet

public void addRuleSet(RuleSet ruleSet)
                throws org.apache.commons.jelly.JellyException
Add a RuleSet to the RuleBase.
Parameters:
ruleSet - The rule-set to add.
Throws:
org.apache.commons.jelly.JellyException - If an error occurs while attempting to add the rule-set.

addRule

public void addRule(Rule rule)
             throws org.apache.commons.jelly.JellyException
Add a Rule to the RuleBase.
Parameters:
rule - The rule to add.
Throws:
org.apache.commons.jelly.JellyException - If an error occurs while attempting to add the rule.

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws java.lang.Exception
Perform this tag.
Parameters:
output - The output sink.
Throws:
java.lang.Exception - If an error occurs while attempting to perform this tag.


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