org.drools.tags.rule
Class ObjectTypeComponentTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.DynaTagSupport
              |
              +--org.apache.commons.jelly.DynaBeanTagSupport
                    |
                    +--org.drools.tags.rule.ComponentTag
                          |
                          +--org.drools.tags.rule.ObjectTypeComponentTag
All Implemented Interfaces:
org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag

public class ObjectTypeComponentTag
extends org.drools.tags.rule.ComponentTag

Dynamic ObjectType component tag.

Version:
$Id: ObjectTypeComponentTag.java,v 1.1 2002/09/27 20:55:32 bob Exp $
Author:
bob mcwhirter

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ObjectTypeComponentTag()
          Construct.
 
Method Summary
 void beforeSetAttributes()
          Hook before attributes are set for initialization.
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Perform this tag.
protected  java.lang.Object getComponent()
          Retrieve the component.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Set an attribute on this tag.
 
Methods inherited from class org.apache.commons.jelly.DynaBeanTagSupport
getAttributeType, getDynaBean, setContext, setDynaBean
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
getBody, getContext, getParent, invokeBody, setBody, setParent
 

Constructor Detail

ObjectTypeComponentTag

public ObjectTypeComponentTag()
Construct.

Method Detail

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.

getComponent

protected java.lang.Object getComponent()
Retrieve the component.

Returns:
The component.

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
                  throws java.lang.Exception
Set an attribute on this tag.

Specified by:
setAttribute in interface org.apache.commons.jelly.DynaTag
Overrides:
setAttribute in class org.apache.commons.jelly.DynaBeanTagSupport
Parameters:
name - The attribute name.
value - The value.
Throws:
java.lang.Exception - If an error occurs while attempting to set the attribute value.

beforeSetAttributes

public void beforeSetAttributes()
                         throws java.lang.Exception
Hook before attributes are set for initialization.

Overrides:
beforeSetAttributes in class org.apache.commons.jelly.DynaBeanTagSupport
Throws:
java.lang.Exception - If an error occurs.


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