org.drools.tags.rule
Class ExtractionTag

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

public class ExtractionTag
extends RuleTagSupport
implements ExtractorReceptor

Construct an Extraction for a Rule.

Version:
$Id: ExtractionTag.java,v 1.5 2003/03/25 19:47:32 tdiesler Exp $
Author:
bob mcwhirter
See Also:
Extraction

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ExtractionTag()
          Construct.
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Perform this tag.
 Extractor getExtractor()
          Retrieve the Extractor.
 java.lang.String getTarget()
          Retrieve the target of the extraction.
 java.lang.String getVar()
          Retrieve the variable in which to store the Extraction.
 void receiveExtractor(Extractor extractor)
          Receive a Extractor.
protected  void setExtractor(Extractor extractor)
          Set the Extractor.
 void setTarget(java.lang.String target)
          Set the target of the extraction.
 void setVar(java.lang.String var)
          Set the variable in which to store the Extraction.
 
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.ExtractorReceptor
getAvailableDeclarations
 

Constructor Detail

ExtractionTag

public ExtractionTag()
Construct.
Method Detail

setExtractor

protected void setExtractor(Extractor extractor)
Set the Extractor.
Parameters:
extractor - The extractor.

getExtractor

public Extractor getExtractor()
Retrieve the Extractor.
Returns:
The extractor.

setTarget

public void setTarget(java.lang.String target)
Set the target of the extraction.
Parameters:
target - The target variable name.

getTarget

public java.lang.String getTarget()
Retrieve the target of the extraction.
Returns:
The target variable name.

setVar

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

getVar

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

receiveExtractor

public void receiveExtractor(Extractor extractor)
Receive a Extractor.
Specified by:
receiveExtractor in interface ExtractorReceptor
Parameters:
extractor - The extrcactor.

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.