org.drools.tags.knowledge
Class KnowledgeTag

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

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

Work in a knowledge session.

Version:
$Id: KnowledgeTag.java,v 1.3 2002/08/21 05:46:13 bob Exp $
Author:
bob mcwhirter
See Also:
WorkingMemory

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
KnowledgeTag()
          Construct.
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Perform this tag.
 WorkingMemory getMemory()
          Retrieve the WorkingMemory.
 RuleBase getRules()
          Retrieve the RuleBase.
 boolean getTransactional()
          Retrieve the transactionality flag.
 java.lang.String getVar()
          Retrieve the variable in which to store the WorkingMemory.
 void setMemory(WorkingMemory memory)
          Set the WorkingMemory.
 void setRules(RuleBase ruleBase)
          Set the RuleBase.
 void setTransactional(boolean transactional)
          Set the transactionality flag.
 void setVar(java.lang.String var)
          Set the variable in which to store the WorkingMemory.
 
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

KnowledgeTag

public KnowledgeTag()
Construct.
Method Detail

setTransactional

public void setTransactional(boolean transactional)
Set the transactionality flag.
Parameters:
transactional - Transactionality flag.

getTransactional

public boolean getTransactional()
Retrieve the transactionality flag.
Returns:
The transactionality flag.

setVar

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

getVar

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

setMemory

public void setMemory(WorkingMemory memory)
Set the WorkingMemory.
Parameters:
memory - The working memory.

getMemory

public WorkingMemory getMemory()
Retrieve the WorkingMemory.
Returns:
The working memory.

setRules

public void setRules(RuleBase ruleBase)
Set the RuleBase.
Parameters:
ruleBase - The rule-base.

getRules

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

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-2003 The Werken Company. All Rights Reserved.