Class SwitchTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.core.SwitchTag
- All Implemented Interfaces:
Tag
Executes the child <case> tag whose value equals my on attribute.
Executes a child <default> tag when present and no <case> tag has
yet matched.
- Version:
- $Revision: 155420 $ $Date: 2005-02-26 05:06:03 -0800 $
- Author:
- Rodney Waldhoff
- See Also:
-
Field Summary
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
Evaluates this tag after all the tags properties have been initialized.protected Object
getValue()
protected boolean
protected boolean
protected boolean
protected void
setFallingThru
(boolean fallingThru) void
setOn
(Expression on) Sets the value to switch on.Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
-
Constructor Details
-
SwitchTag
public SwitchTag()
-
-
Method Details
-
setOn
Sets the value to switch on. Note that theExpression
is evaluated only once, when the <switch> tag is evaluated.- Parameters:
on
- the value to switch on
-
doTag
Description copied from interface:Tag
Evaluates this tag after all the tags properties have been initialized. -
hasSomeCaseMatched
protected boolean hasSomeCaseMatched() -
caseMatched
protected void caseMatched() -
isFallingThru
protected boolean isFallingThru() -
setFallingThru
protected void setFallingThru(boolean fallingThru) -
getValue
-
hasDefaultBeenEncountered
protected boolean hasDefaultBeenEncountered() -
defaultEncountered
protected void defaultEncountered()
-