Class SwitchTag

  • All Implemented Interfaces:
    Tag

    public class SwitchTag
    extends TagSupport
    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:
    CaseTag, DefaultTag
    • Constructor Detail

      • SwitchTag

        public SwitchTag()
    • Method Detail

      • setOn

        public void setOn​(Expression on)
        Sets the value to switch on. Note that the Expression is evaluated only once, when the <switch> tag is evaluated.
        Parameters:
        on - the value to switch on
      • hasSomeCaseMatched

        protected boolean hasSomeCaseMatched()
      • caseMatched

        protected void caseMatched()
      • isFallingThru

        protected boolean isFallingThru()
      • setFallingThru

        protected void setFallingThru​(boolean fallingThru)
      • getValue

        protected Object getValue()
      • hasDefaultBeenEncountered

        protected boolean hasDefaultBeenEncountered()
      • defaultEncountered

        protected void defaultEncountered()