org.ujac.web.tag
Class SwitchTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.ujac.web.tag.BaseTag
              extended by org.ujac.web.tag.SwitchTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, Tag, TemplateContextHolder

public class SwitchTag
extends BaseTag

Name: SwitchTag
Description: A custom tag class implementing the tag <ujac:switch>.
.

Author:
lauerc
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ujac.web.tag.BaseTag
log
 
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
SwitchTag()
           
 
Method Summary
 int doStartTag()
           
 boolean isCaseMatched()
          Tells whether or not a case has already matched the value so far.
 boolean matches(String value)
          Tells whether the given value matches the defined value.
 void setValue(String value)
          Setter method for the the property value.
 
Methods inherited from class org.ujac.web.tag.BaseTag
clearTagAttributes, getParent, getTagAttribute, getTagAttributes, getTemplateContext, release, removeTagAttribute, setAttribute, setTagAttribute, writeAttributes
 
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

SwitchTag

public SwitchTag()
Method Detail

setValue

public void setValue(String value)
Setter method for the the property value.

Parameters:
value - The value to set for the property value.

matches

public boolean matches(String value)
Tells whether the given value matches the defined value.

Parameters:
value - The value to check.
Returns:
true if the given value matches the defined value else false.

isCaseMatched

public boolean isCaseMatched()
Tells whether or not a case has already matched the value so far.

Returns:
true if a case has been successfuly checked so far, else false.

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BaseTag
Throws:
JspException
See Also:
Tag.doStartTag()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.