org.drools.tags.semantics
Class SemanticModuleTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.drools.tags.semantics.SemanticsTagSupport
|
+--org.drools.tags.semantics.SemanticModuleTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class SemanticModuleTag
- extends SemanticsTagSupport
Defines a SemanticModule
.
- Author:
- bob mcwhirter
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. |
SimpleSemanticModule |
getSemanticModule()
Retrieve the SemanticModule . |
java.lang.String |
getUri()
Retrieve the URI. |
java.lang.String |
getVar()
Retrieve the variable in which to store the
resulting SemanticModule . |
void |
setUri(java.lang.String uri)
Set the URI. |
void |
setVar(java.lang.String var)
Set the variable in which to store the resulting
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 |
SemanticModuleTag
public SemanticModuleTag()
- Construct.
getSemanticModule
public SimpleSemanticModule getSemanticModule()
- Retrieve the
SemanticModule
.
- Returns:
- The semantic module.
setUri
public void setUri(java.lang.String uri)
- Set the URI.
- Parameters:
uri
- The URI.
getUri
public java.lang.String getUri()
- Retrieve the URI.
- Returns:
- The URI.
setVar
public void setVar(java.lang.String var)
- Set the variable in which to store the resulting
SemanticModule
.
In addition to any variable specified using
this method, the variable org.drools.semantic-module
will also hold the new SemanticModule
.
- Parameters:
var
- The variable in which to store the new semantic module.
getVar
public java.lang.String getVar()
- Retrieve the variable in which to store the
resulting
SemanticModule
.
- Returns:
- The variable name.
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.