se.kmr.scam.web.taglib.common
Class BaseEntityTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byse.kmr.scam.web.taglib.common.BodyTagSupport
              extended byse.kmr.scam.web.taglib.common.BaseEntityTag
All Implemented Interfaces:
BodyTag, IterationTag, Serializable, Tag
Direct Known Subclasses:
SubjectTag, VCardTag

public abstract class BaseEntityTag
extends BodyTagSupport

Provides access to an (abstract) entity. Implementing classes provides access to different entities.
Following attributes must be defined, in the TLD, by implementing tags:

Version:
$Revision: 1.7 $
Author:
Jöran
See Also:
Serialized Form
Created:
den 22 april 2003

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
BaseEntityTag()
           
 
Method Summary
 int doAfterBoy()
          Recives notification for after body evaluation
 int doStartTag()
          Recives notification of the start of a tag.
abstract  Resource getEntity()
          Gets the resource representing the entity
 
Methods inherited from class se.kmr.scam.web.taglib.common.BodyTagSupport
escape, exposeObject, exposeTag, getSubjectAsResource, getVar, printObject, release, removeObject, removeTag, setSubject, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

BaseEntityTag

public BaseEntityTag()
Method Detail

getEntity

public abstract Resource getEntity()
                            throws JspException
Gets the resource representing the entity

Returns:
The entity
Throws:
JspException - in case of exception extracting the entity

doStartTag

public int doStartTag()
               throws JspException
Recives notification of the start of a tag. Value(s) of the tag is written to the page if a delimiter is defined. If a variable is defined, then each value is exposed in that variable in each iteration.

Returns:
the value of EVAL_BODY_INCLUDE.
Throws:
JspException - thrown in case of exception writing to the page or extracting property value.

doAfterBoy

public int doAfterBoy()
Recives notification for after body evaluation

Returns:
the valur of EVAL_PAGE.


Copyright © 2003 SCAM. All Rights Reserved.