Class IfFeatureTagHelper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkCondition()
      Evaluates the condition as specified by the tag's definition.
      void cleanState()
      Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.
      void setEnum​(boolean value)
      Sets the value assigned to the enum attribute of the custom tag instance that uses this helper
      void setName​(java.lang.String value)
      Sets the value assigned to the name attribute of the custom tag instance that uses this helper
      void setType​(java.lang.String value)
      Sets the value assigned to the type attribute of the custom tag instance that uses this helper
      void setValue​(java.lang.String value)
      Sets the value assigned to the value attribute of the custom tag instance that uses this helper
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IfFeatureTagHelper

        public IfFeatureTagHelper()
    • 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
      • 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.
      • setName

        public void setName​(java.lang.String value)
        Sets the value assigned to the name attribute of the custom tag instance that uses this helper
        Parameters:
        value - String indicating the name of the feature to check for.
      • setType

        public void setType​(java.lang.String value)
        Sets the value assigned to the type attribute of the custom tag instance that uses this helper
        Parameters:
        value - String indicating the place where the feature will be checked 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 indicating the value to use for comparing it against the value of the feature found.
      • setEnum

        public void setEnum​(boolean value)
        Sets the value assigned to the enum attribute of the custom tag instance that uses this helper
        Parameters:
        value - boolean indicating if the value specified to use for the comparison comes from an enumeration definition.