public class SwitchTag extends TagSupport
CaseTag
,
DefaultTag
body, context, parent
Constructor and Description |
---|
SwitchTag() |
Modifier and Type | Method and Description |
---|---|
protected void |
caseMatched() |
protected void |
defaultEncountered() |
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized.
|
protected Object |
getValue() |
protected boolean |
hasDefaultBeenEncountered() |
protected boolean |
hasSomeCaseMatched() |
protected boolean |
isFallingThru() |
protected void |
setFallingThru(boolean fallingThru) |
void |
setOn(Expression on)
Sets the value to switch on.
|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
public void setOn(Expression on)
Expression
is evaluated only once, when the
<switch> tag is evaluated.on
- the value to switch onpublic void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
Tag
protected boolean hasSomeCaseMatched()
protected void caseMatched()
protected boolean isFallingThru()
protected void setFallingThru(boolean fallingThru)
protected Object getValue()
protected boolean hasDefaultBeenEncountered()
protected void defaultEncountered()
Copyright © 2014 Apache Software Foundation. All rights reserved.