org.apache.jackrabbit.taglib
Class IfPresentTag

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

public class IfPresentTag
extends javax.servlet.jsp.jstl.core.ConditionalTagSupport

Conditional tag that evaluates the existence of the given node.

Author:
Edgar Poce
See Also:
Serialized Form

Field Summary
static java.lang.String TAG_NAME
          Tag Name
 
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
IfPresentTag()
          Constructor
 
Method Summary
protected  boolean condition()
           
protected  void init()
           
 void release()
           
 void setItem(java.lang.String item)
          Sets the item
 void setProperty(java.lang.String property)
          Sets the property.
 void setSession(java.lang.String session)
          Sets the session
 void setValue(boolean value)
          Sets the value
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Field Detail

TAG_NAME

public static java.lang.String TAG_NAME
Tag Name

Constructor Detail

IfPresentTag

public IfPresentTag()
Constructor

Method Detail

condition

protected boolean condition()
                     throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

init

protected void init()

release

public void release()

setItem

public void setItem(java.lang.String item)
Sets the item

Parameters:
item -

setSession

public void setSession(java.lang.String session)
Sets the session

Parameters:
session -

setValue

public void setValue(boolean value)
Sets the value

Parameters:
value -

setProperty

public void setProperty(java.lang.String property)
Sets the property. This value can be set only when the item is a node.

Parameters:
property -


Copyright © 2005 . All Rights Reserved.