org.mmbase.bridge.jsp.taglib.functions
Class AbstractFunctionTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended byorg.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended byorg.mmbase.bridge.jsp.taglib.NodeReferrerTag
                      extended byorg.mmbase.bridge.jsp.taglib.functions.AbstractFunctionTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
BooleanFunctionTag, FunctionContainerTag, FunctionTag, ListFunctionTag, NodeFunctionTag, NodeListFunctionTag, VoidFunctionTag

public abstract class AbstractFunctionTag
extends NodeReferrerTag

The function tags can be used as a child of a 'NodeProvider' tag (but not on clusternodes?), but it can also be used stand alone, when using the attributes to specify on which object the function must be called (besides nodes, it can be called on node-manager, modules, sets). This is the absctract implementation, providing only the result of the function. The several extensions cast to the right type, and handle it on a specific way.

Since:
MMBase-1.7
Version:
$Id: AbstractFunctionTag.java,v 1.5.2.3 2004/07/26 20:12:20 nico Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Attribute container
           
protected  Attribute functionSet
           
protected  Attribute module
           
protected  Attribute name
           
protected  Attribute nodeManager
           
protected  Attribute parametersAttr
           
protected  Attribute referids
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
parentNodeId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
AbstractFunctionTag()
           
 
Method Summary
protected  void fillStandardParameters(Parameters p)
           
protected  Function getFunction(java.lang.String functionName)
          Gets function object, and checks consistency of attributes.
protected  java.lang.Object getFunctionValue()
           
 void setContainer(java.lang.String c)
           
 void setModule(java.lang.String m)
           
 void setName(java.lang.String n)
           
 void setNodemanager(java.lang.String n)
           
 void setParameters(java.lang.String p)
           
 void setReferids(java.lang.String r)
           
 void setSet(java.lang.String s)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
findNodeProvider, findNodeProvider, getNode, setNode
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloud, getCloudContext, getCloudVar, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
doEndTag, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

container

protected Attribute container

name

protected Attribute name

parametersAttr

protected Attribute parametersAttr

module

protected Attribute module

nodeManager

protected Attribute nodeManager

functionSet

protected Attribute functionSet

referids

protected Attribute referids
Constructor Detail

AbstractFunctionTag

public AbstractFunctionTag()
Method Detail

setName

public void setName(java.lang.String n)
             throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setContainer

public void setContainer(java.lang.String c)
                  throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setParameters

public void setParameters(java.lang.String p)
                   throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setModule

public void setModule(java.lang.String m)
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setNodemanager

public void setNodemanager(java.lang.String n)
                    throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setSet

public void setSet(java.lang.String s)
            throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setReferids

public void setReferids(java.lang.String r)
                 throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getFunction

protected final Function getFunction(java.lang.String functionName)
                              throws javax.servlet.jsp.JspTagException
Gets function object, and checks consistency of attributes.

Throws:
javax.servlet.jsp.JspTagException

fillStandardParameters

protected final void fillStandardParameters(Parameters p)
                                     throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getFunctionValue

protected final java.lang.Object getFunctionValue()
                                           throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException


MMBase build 1.7.1.20041002