org.kohsuke.stapler.jelly
Class FindAncestorTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.kohsuke.stapler.jelly.FindAncestorTag
All Implemented Interfaces:
org.apache.commons.jelly.NamespaceAwareTag, org.apache.commons.jelly.Tag

@NoContent
public class FindAncestorTag
extends org.apache.commons.jelly.TagSupport
implements org.apache.commons.jelly.NamespaceAwareTag

Finds the nearest tag (in the call stack) that has the given tag name, and sets that as a variable.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent
 
Constructor Summary
FindAncestorTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
protected  javax.servlet.http.HttpServletRequest getRequest()
           
protected  javax.servlet.http.HttpServletResponse getResponse()
           
protected  javax.servlet.ServletContext getServletContext()
           
 void setNamespaceContext(java.util.Map prefixToUriMap)
           
 void setTag(java.lang.String tag)
          QName of the tag to look for.
 void setVar(java.lang.String var)
          Variable name to set the discovered Tag object.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, 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, setContext, setParent
 

Constructor Detail

FindAncestorTag

public FindAncestorTag()
Method Detail

setVar

public void setVar(java.lang.String var)
Variable name to set the discovered Tag object.


setTag

public void setTag(java.lang.String tag)
QName of the tag to look for.


doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Specified by:
doTag in interface org.apache.commons.jelly.Tag
Throws:
org.apache.commons.jelly.JellyTagException

setNamespaceContext

public void setNamespaceContext(java.util.Map prefixToUriMap)
Specified by:
setNamespaceContext in interface org.apache.commons.jelly.NamespaceAwareTag

getRequest

protected javax.servlet.http.HttpServletRequest getRequest()

getResponse

protected javax.servlet.http.HttpServletResponse getResponse()

getServletContext

protected javax.servlet.ServletContext getServletContext()


Copyright © 2011. All Rights Reserved.