se.kmr.scam.web.taglib.annotation
Class HasAnnotationTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
se.kmr.scam.web.taglib.annotation.HasAnnotationTag
- All Implemented Interfaces:
- BodyTag, IterationTag, Serializable, Tag
- public class HasAnnotationTag
- extends BodyTagSupport
The body is evaluated if the subject is associated with an
annotation.
Example:
If annotations exists for the given subject,then the number of annotations
associated to that subject will be printed (if none exists then nothing will
be prionted)
- Version:
- $Revision: 1.6 $
- Author:
- Jöran
- See Also:
- Serialized Form
- Created:
- den 23 april 2003
Method Summary |
int |
doStartTag()
Recives notification of the start of a tag. |
void |
setSubject(String subjectRef)
Sets the resource attribute of the BaseTag object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HasAnnotationTag
public HasAnnotationTag()
setSubject
public void setSubject(String subjectRef)
- Sets the resource attribute of the BaseTag object
- Parameters:
subjectRef
- The new subject value
doStartTag
public int doStartTag()
throws JspException
- Recives notification of the start of a tag.
- Returns:
- the value EVAL_BODY_INCLUDE if the subject has annotations,
otherwise SKIP_BODY .
- Throws:
JspException
Copyright © 2003 SCAM. All Rights Reserved.