se.kmr.scam.web.taglib.imscp
Class IsFolderTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
se.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??
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 |
IsFolderTag
public IsFolderTag()
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.