org.drools.tags.rule
Class RuleTag

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

public class RuleTag
extends RuleTagSupport

Construct a Rule for a RuleSet.

Version:
$Id: RuleTag.java,v 1.5 2003/07/10 14:19:51 tdiesler Exp $
Author:
bob mcwhirter
See Also:
Rule

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
RuleTag()
          Construct.
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Perform this tag.
 java.lang.String getName()
          Retrieve the Rule name.
 Rule getRule()
          Retrieve the Rule.
 java.lang.Integer getSalience()
          Retrieve the Rule salience.
 java.lang.String getVar()
          Retrieve the variable in which to store the Rule.
 void setName(java.lang.String name)
          Set the Rule name.
 void setSalience(java.lang.Integer salience)
          Set the Rule salience.
 void setVar(java.lang.String var)
          Set the variable in which to store the Rule.
 
Methods inherited from class org.drools.tags.rule.RuleTagSupport
getAvailableDeclarations, 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
 

Constructor Detail

RuleTag

public RuleTag()
Construct.
Method Detail

setName

public void setName(java.lang.String name)
Set the Rule name.
Parameters:
name - The name.

getName

public java.lang.String getName()
Retrieve the Rule name.
Returns:
The name.

getSalience

public java.lang.Integer getSalience()
Retrieve the Rule salience.
Returns:
The salience.

setSalience

public void setSalience(java.lang.Integer salience)
Set the Rule salience.
Parameters:
salience - The salience.

setVar

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

getVar

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

getRule

public Rule getRule()
Retrieve the Rule.
Overrides:
getRule in class RuleTagSupport
Returns:
The rule.

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.