org.apache.jackrabbit.taglib
Class CdTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.jackrabbit.taglib.SetTag
          extended byorg.apache.jackrabbit.taglib.CdTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class CdTag
extends SetTag

Changes the current directory. Nested tags must read the paths relative to this node.

Author:
Edgar Poce
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jackrabbit.taglib.SetTag
item, scope, session, TAG_NAME, var
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
CdTag()
          Constructor
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
protected  javax.jcr.Item getItem()
          Retrieve and validate the Item.
 void release()
           
 void setNode(java.lang.String node)
          Sets the node
 
Methods inherited from class org.apache.jackrabbit.taglib.SetTag
setItem, setProperty, setScope, setSession, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CdTag

public CdTag()
Constructor

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class SetTag
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class SetTag
Throws:
javax.servlet.jsp.JspException

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class SetTag

setNode

public void setNode(java.lang.String node)
Sets the node

Parameters:
node -

getItem

protected javax.jcr.Item getItem()
                          throws javax.servlet.jsp.JspException,
                                 javax.jcr.RepositoryException
Retrieve and validate the Item. It must be a Node instance.

Overrides:
getItem in class SetTag
Returns:
curren working node
Throws:
javax.servlet.jsp.JspException
javax.jcr.RepositoryException


Copyright © 2005 . All Rights Reserved.