org.ujac.web.tag
Class SwitchTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.ujac.web.tag.BaseTag
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
Fields inherited from class org.ujac.web.tag.BaseTag |
log |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwitchTag
public SwitchTag()
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.