org.drools.tags.rule
Class SemanticsTag

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

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

Load semantics.

Version:
$Id: SemanticsTag.java,v 1.5 2003/01/01 22:15:31 bob Exp $
Author:
bob mcwhirter
See Also:
SemanticModule

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SemanticsTag()
          Construct.
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Perform this tag.
 java.lang.String getModule()
          Retrieve the module id.
protected  SemanticModule getSemanticModule()
          Retrieve the SemanticModule.
 java.lang.String getVar()
          Retrieve the variable in which to store the SemanticModule.
 void setModule(java.lang.String module)
          Set the module id to load.
 void setVar(java.lang.String var)
          Set the variable in which to store the SemanticModule.
 
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

SemanticsTag

public SemanticsTag()
Construct.

Method Detail

setModule

public void setModule(java.lang.String module)
Set the module id to load.

Parameters:
module - The module id.

getModule

public java.lang.String getModule()
Retrieve the module id.

Returns:
The module id.

setVar

public void setVar(java.lang.String var)
Set the variable in which to store the SemanticModule.

Parameters:
var - The variable name.

getVar

public java.lang.String getVar()
Retrieve the variable in which to store the SemanticModule.

Returns:
The variable name.

getSemanticModule

protected SemanticModule getSemanticModule()
                                    throws java.lang.Exception
Retrieve the SemanticModule.

Returns:
The semantic module.
Throws:
java.lang.Exception - If an error occurs while attempting to load the semantic module.

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.