org.mmbase.bridge.jsp.taglib.functions
Class AbstractFunctionTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.mmbase.bridge.jsp.taglib.ContextReferrerTag
org.mmbase.bridge.jsp.taglib.CloudReferrerTag
org.mmbase.bridge.jsp.taglib.NodeReferrerTag
org.mmbase.bridge.jsp.taglib.functions.AbstractFunctionTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
- Direct Known Subclasses:
- BooleanFunctionTag, FunctionContainerTag, FunctionTag, HasFunctionTag, ListFunctionTag, NodeFunctionTag, NodeListFunctionTag, VoidFunctionTag
public abstract class AbstractFunctionTag
- extends NodeReferrerTag
The function tags can be used as a child of a 'NodeProvider' tag (though posisbly
not on clusternodes).
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 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| 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 |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag |
doEndTag, doStartTag, fillStandardParameters, findNode, findNodeProvider, findNodeProvider, getCloudVar, getLocale, getNode, getNode, getNodeFromPageContext, initTag, setElement, setNode |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
appendMoreParameters, doCatch, doFinally, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, 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 |
THISPAGE
public static final String THISPAGE
- See Also:
- Constant Field Values
container
protected Attribute container
name
protected Attribute name
parametersAttr
protected Attribute parametersAttr
module
protected Attribute module
nodeManager
protected Attribute nodeManager
functionSet
protected Attribute functionSet
functionClass
protected Attribute functionClass
referids
protected Attribute referids
add
protected Attribute add
retain
protected Attribute retain
remove
protected Attribute remove
AbstractFunctionTag
public AbstractFunctionTag()
setName
public void setName(String n)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setContainer
public void setContainer(String c)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setParameters
public void setParameters(String p)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setModule
public void setModule(String m)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setNodemanager
public void setNodemanager(String n)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setSet
public void setSet(String s)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setClassname
public void setClassname(String c)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setReferids
public void setReferids(String r)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setAdd
public void setAdd(String c)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setRetain
public void setRetain(String c)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
setRemove
public void setRemove(String c)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
useCollectionMethods
protected <C> Collection<C> useCollectionMethods(Collection<C> col)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getFunction
protected final Function getFunction(String functionName)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getFunction
protected final Function getFunction(String functionName,
boolean exception)
throws javax.servlet.jsp.JspTagException
- Gets function object, and checks consistency of attributes.
- Throws:
javax.servlet.jsp.JspTagException
getFunction
protected final Function getFunction()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getFunctionValue
protected final Object getFunctionValue()
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
getFunctionValue
protected final Object getFunctionValue(boolean register)
throws javax.servlet.jsp.JspTagException
- Throws:
javax.servlet.jsp.JspTagException
MMBase 2.0-SNAPSHOT - null