org.drools.tags.rule
Class ConditionTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.drools.tags.rule.RuleTagSupport
|
+--org.drools.tags.rule.ConditionTag
- All Implemented Interfaces:
- ConditionReceptor, org.apache.commons.jelly.Tag
- public class ConditionTag
- extends RuleTagSupport
- implements ConditionReceptor
Construct a Condition
for a Rule
.
- Version:
- $Id: ConditionTag.java,v 1.4 2002/09/27 20:55:32 bob Exp $
- Author:
- bob mcwhirter
- See Also:
Condition
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
Perform this tag. |
Condition |
getCondition()
Retrieve the Condition . |
java.lang.String |
getVar()
Retrieve the variable in which to store the Condition . |
void |
receiveCondition(Condition condition)
Receive a Condition . |
void |
setCondition(Condition condition)
Set the Condition . |
void |
setVar(java.lang.String var)
Set the variable in which to store the Condition . |
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 |
ConditionTag
public ConditionTag()
- Construct.
setCondition
public void setCondition(Condition condition)
- Set the
Condition
.
- Parameters:
condition
- The condition.
getCondition
public Condition getCondition()
- Retrieve the
Condition
.
- Returns:
- The condition.
setVar
public void setVar(java.lang.String var)
- Set the variable in which to store the
Condition
.
- Parameters:
var
- The variable name.
getVar
public java.lang.String getVar()
- Retrieve the variable in which to store the
Condition
.
- Returns:
- The variable name.
receiveCondition
public void receiveCondition(Condition condition)
- Receive a
Condition
.
- Specified by:
receiveCondition
in interface ConditionReceptor
- Parameters:
condition
- The condition.
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws java.lang.Exception
- Perform this tag.
- Overrides:
doTag
in class org.apache.commons.jelly.TagSupport
- 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.