se.kmr.scam.web.taglib.imscp
Class IsFolderTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byse.kmr.scam.web.taglib.imscp.IsFolderTag
All Implemented Interfaces:
IterationTag, Serializable, Tag

public class IsFolderTag
extends TagSupport

Evaluates if the defined item is a folder, the result is exposed in the defined variable.

Version:
$Revision: 1.5 $
Author:
Jöran
See Also:
Serialized Form
Created:
den 25 oktober 2002
To do:
The item is a "folder" if it contains sub-items, right??

Field Summary
 
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
IsFolderTag()
           
 
Method Summary
 int doStartTag()
          Handle start tag.
 Resource getItem()
          Gets the item attribute of the IsFolderTag object
 String getVar()
          Gets the var attribute of the IsFolderTag object
 void setItemObject(String itemRef)
          Sets the item attribute of the IsFolderTag object
 void setVar(String var)
          Sets the var attribute of the IsFolderTag object
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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

IsFolderTag

public IsFolderTag()
Method Detail

doStartTag

public int doStartTag()
               throws JspException
Handle start tag.

Returns:
SKIP_BODY
Throws:
JspException - thrown in case of exception evaluating or exposing the result.

setItemObject

public void setItemObject(String itemRef)
Sets the item attribute of the IsFolderTag object

Parameters:
itemRef - The new item value

getItem

public Resource getItem()
                 throws JspException
Gets the item attribute of the IsFolderTag object

Returns:
The value from evaluating the item attribute value.
Throws:
JspException - thrown in case of exception evaluating the item value

setVar

public void setVar(String var)
Sets the var attribute of the IsFolderTag object

Parameters:
var - The new var value

getVar

public String getVar()
Gets the var attribute of the IsFolderTag object

Returns:
The var value


Copyright © 2003 SCAM. All Rights Reserved.