Enum RequirementType

    • Method Detail

      • values

        public static RequirementType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RequirementType c : RequirementType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RequirementType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getDisplayName

        public String getDisplayName()
      • getName

        public final String getName()
      • readFrom

        @Nullable
        public Requirement readFrom​(org.jdom.Element xmlElement)
      • writeTo

        public void writeTo​(org.jdom.Element xmlElement,
                            Requirement requirementParameter)
      • isParameterRequired

        public boolean isParameterRequired()
        Return true if the requirement has an additional parameter. I.e. when UI should show extra field with extra value and such value should be stored. Cases when you want to return false here: exists/non-exists requirements
        Returns:
        see above
      • isParameterCanBeEmpty

        public boolean isParameterCanBeEmpty()
        Return true if not empty value is required for requirement parameter. I.e. when editing in UI/DSL, some non-empty value for the parameter should be set.
        Returns:
        if not empty value required.
      • isActualValueRequired

        public boolean isActualValueRequired()
        Deprecated.
        Should not be exposed, implementation detail, since 2022.10
        Return true if actual property value is required, should be used during the actual matching with the value
        Returns:
        see above
      • isActualValueCanBeEmpty

        public boolean isActualValueCanBeEmpty()
        Deprecated.
        Should not be exposed, implementation detail, since 2022.10
        Return true if not empty value of actual property value is required, should be used during the actual matching with the value
        Returns:
        see above
      • matchValues

        public boolean matchValues​(String requirementParameter,
                                   @Nullable
                                   String actualValue)
      • matchValues

        public boolean matchValues​(@NotNull
                                   jetbrains.buildServer.requirements.RequirementType.ValueMatcher valueMatcher,
                                   @Nullable
                                   String actualValue)
      • createMatcher

        @NotNull
        protected abstract jetbrains.buildServer.requirements.RequirementType.ValueMatcher createMatcher​(String requirementParameter)
      • match

        public boolean match​(@NotNull
                             Requirement requirement,
                             @NotNull
                             Map<String,​String> properties,
                             boolean ignoreCaseForEnv)