org.drools.tags.knowledge
Class FactTagSupport

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.drools.tags.knowledge.FactTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
AssertTag, ModifyTag, RetractTag

public abstract class FactTagSupport
extends org.apache.commons.jelly.TagSupport

Support for fact tags.

Version:
$Id: FactTagSupport.java,v 1.3 2002/08/28 20:24:59 bob Exp $
Author:
bob mcwhirter

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
protected FactTagSupport()
          Construct.
 
Method Summary
 java.lang.Object getFact()
          Retrieve the fact object.
protected  WorkingMemory getWorkingMemory()
          Retrieve the current WorkingMemory.
 void setFact(java.lang.Object fact)
          Set the fact object.
protected  void validateAttributes()
          Validate required attributes.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
doTag, 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

FactTagSupport

protected FactTagSupport()
Construct.
Method Detail

setFact

public void setFact(java.lang.Object fact)
Set the fact object.
Parameters:
fact - The fact object.

getFact

public java.lang.Object getFact()
Retrieve the fact object.
Returns:
The fact object.

validateAttributes

protected void validateAttributes()
                           throws org.apache.commons.jelly.MissingAttributeException
Validate required attributes.
Throws:
org.apache.commons.jelly.MissingAttributeException - If a required attribute is missing.

getWorkingMemory

protected WorkingMemory getWorkingMemory()
                                  throws org.apache.commons.jelly.JellyException
Retrieve the current WorkingMemory.
Returns:
The working memory.
Throws:
org.apache.commons.jelly.JellyException - If a working memory cannot be retrieved.


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