org.drools.tags.semantics
Class SemanticComponentTagSupport

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.drools.tags.semantics.SemanticsTagSupport
              |
              +--org.drools.tags.semantics.SemanticComponentTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
ConditionTag, ConsequenceTag, ExtractorTag, ObjectTypeTag

public abstract class SemanticComponentTagSupport
extends SemanticsTagSupport

Support for semantic components.

Author:
bob mcwhirter

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SemanticComponentTagSupport()
          Construct.
 
Method Summary
 void checkAttributes()
          Check if the attributes have been set.
 java.lang.String getClassname()
          Retrieve the component class name.
 java.lang.String getName()
          Retrieve the component name.
 SimpleSemanticModule getSemanticModule()
          Retrieve the current SemanticModule.
 void setClassname(java.lang.String classname)
          Set the component class name.
 void setName(java.lang.String name)
          Set the component name.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
doTag, 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

SemanticComponentTagSupport

public SemanticComponentTagSupport()
Construct.
Method Detail

setName

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

getName

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

setClassname

public void setClassname(java.lang.String classname)
Set the component class name.
Parameters:
classname - The component class name.

getClassname

public java.lang.String getClassname()
Retrieve the component class name.
Returns:
The component class name.

checkAttributes

public void checkAttributes()
                     throws org.apache.commons.jelly.MissingAttributeException
Check if the attributes have been set.
Throws:
org.apache.commons.jelly.MissingAttributeException - If the attributes have not been set.

getSemanticModule

public SimpleSemanticModule getSemanticModule()
Retrieve the current SemanticModule.
Returns:
The current SemanticModule or null if none found.


Copyright © 2001-2002 The Werken Company. All Rights Reserved.