Class OtherwiseTag

  • All Implemented Interfaces:
    ITextTag

    public class OtherwiseTag
    extends WhenTag
    • Constructor Detail

      • OtherwiseTag

        public OtherwiseTag​(String text)
        Parses the given OGNL expression that can be used by Ognl static methods.
        Parameters:
        text - the OGNL expression to be parsed
        Throws:
        MalformedExpression - if the expression is malformed or if there is a pathological environmental problem.
    • Method Detail

      • eval

        public boolean eval​(Object rootObjects)
        This node always return true.
        Specified by:
        eval in interface ITextTag
        Overrides:
        eval in class ConditionalTag
        Parameters:
        rootObjects - the root object for the OGNL expression.
        Returns:
        return true always.
        See Also:
        Ognl