org.mmbase.bridge.jsp.taglib
Class NodeReferrerTag

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

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.

Version:
$Id: NodeReferrerTag.java,v 1.15 2003/09/08 12:05:13 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Attribute 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
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, 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

parentNodeId

protected Attribute parentNodeId
Constructor Detail

NodeReferrerTag

public NodeReferrerTag()
Method Detail

setNode

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

Throws:
javax.servlet.jsp.JspTagException

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.
Throws:
javax.servlet.jsp.JspTagException

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.
Throws:
javax.servlet.jsp.JspTagException

getNode

protected Node getNode()
                throws javax.servlet.jsp.JspTagException
Gets the Node variable from the parent NodeProvider.

Returns:
a org.mmbase.bridge.Node
Throws:
javax.servlet.jsp.JspTagException


MMBase build 1.7.1.20041002