Class OptionalTextType

    • Method Detail

      • setIf

        public void setIf​(String ifP)
        Sets the "if" condition to test on execution. If the named property is set, the OptionalTextType should be included.
        Parameters:
        ifP - The property condition to test on execution. If the value is null no "if" test will not be performed.
      • setUnless

        public void setUnless​(String unlessP)
        Sets the "unless" condition to test on execution. If the named property is set, the OptionalTextType should not be included.
        Parameters:
        unlessP - The property condition to test on execution. If the value is null no "unlessP" test will not be performed.
      • isActive

        public boolean isActive​(Project project)
        Method to determine if the "if" and "unless" tests have been satisfied.
        Parameters:
        project - The Project.
        Returns:
        true if the "if" and "unless" tests have been satisfied; false otherwise.