org.mmbase.bridge.jsp.taglib
Class NodeReferrerTag

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
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
AbstractNodeProviderTag, AliasListTag, CountRelationsTag, CreateAliasTag, FieldReferrerTag, GetInfoTag, MayWriteTag, NodeInfoTag, SetContextTag, SetInfoTag

public abstract class NodeReferrerTag
extends CloudReferrerTag

A tag which is a 'NodeReferrerTag's can be the child of a NodeProvider tag, which supplies a 'Node' to its child tags. For example the FieldTag, needs the use the Node of the parent NodeProviderTag and therefore would be a NodeReferrerTag.

Author:
Michiel Meeuwissen
See Also:
Serialized Form

Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, PAGE_CATEGORY, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, 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
NodeReferrerTag()
           
 
Method Summary
 NodeProvider findNodeProvider()
          This method tries to find an ancestor object of type NodeProvider
 NodeProvider findNodeProvider(boolean throwexception)
          This method tries to find an ancestor object of type NodeProvider
protected  Node getNode()
          Gets the Node variable from the parent NodeProvider.
 void setNode(java.lang.String node)
          A NodeReferrer probably wants to supply the attribute 'node', to make it possible to refer to another node than the direct ancestor.
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloud, getCloudContext, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
findParentTag, findParentTag, findWriter, findWriter, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContextTag, getObject, getReferid, getString, release, setContext, setPageContext, setReferid, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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
 

Constructor Detail

NodeReferrerTag

public NodeReferrerTag()
Method Detail

setNode

public void setNode(java.lang.String node)
A NodeReferrer probably wants to supply the attribute 'node', to make it possible to refer to another node than the direct ancestor.

findNodeProvider

public NodeProvider findNodeProvider()
                              throws javax.servlet.jsp.JspTagException
This method tries to find an ancestor object of type NodeProvider
Returns:
the NodeProvider if found else an exception.

findNodeProvider

public NodeProvider findNodeProvider(boolean throwexception)
                              throws javax.servlet.jsp.JspTagException
This method tries to find an ancestor object of type NodeProvider
Returns:
the NodeProvider or null.

getNode

protected Node getNode()
                throws javax.servlet.jsp.JspTagException
Gets the Node variable from the parent NodeProvider.
Returns:
a org.mmbase.bridge.Node


MMBase build 1.6.5.20030923