Class IfErrorValueTagHelper

    • Constructor Detail

      • IfErrorValueTagHelper

        public IfErrorValueTagHelper()
    • Method Detail

      • cleanState

        public void cleanState()
        Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.
        Overrides:
        cleanState in class MstrPageTagHelper
      • setHasExceptionRoot

        public void setHasExceptionRoot​(boolean value)
        Sets if the exception found in the page has root information that can be identified.
        Parameters:
        value - boolean indicating if the exception has root information or not.
      • checkCondition

        public boolean checkCondition()
                               throws MSTRCheckedException
        Evaluates the condition as specified by the tag's definition.
        Specified by:
        checkCondition in class AbstractIfTagHelper
        Returns:
        the boolean value corresponding to the result of the condition checked
        Throws:
        MSTRCheckedException - if an exception happens while evaluating the condition.
      • setProperty

        public void setProperty​(java.lang.String value)
        Sets the value assigned to the property attribute of the custom tag instance that uses this helper
        Parameters:
        value - String with the name of the property to check for.
      • setValue

        public void setValue​(java.lang.String value)
        Sets the value assigned to the value attribute of the custom tag instance that uses this helper
        Parameters:
        value - String value with the code of the exception to compare it against the original exception found in the page.