Class SubmitRequirement

    • Constructor Detail

      • SubmitRequirement

        public SubmitRequirement()
    • Method Detail

      • name

        public abstract String name()
        Requirement name.
      • description

        public abstract Optional<String> description()
        Description of what this requirement means.
      • submittabilityExpression

        public abstract SubmitRequirementExpression submittabilityExpression()
        Expression of the condition that allows the submission of a change. The expression should be evaluated for a specific Change and if it returns true, the requirement becomes fulfilled for the change.
      • overrideExpression

        public abstract Optional<SubmitRequirementExpression> overrideExpression()
        Expression that, if evaluated to true, causes the submit requirement to be fulfilled, regardless of the submittability expression. This expression should be evaluated for a specific Change.

        An empty Optional indicates that the requirement is not overridable.

      • allowOverrideInChildProjects

        public abstract boolean allowOverrideInChildProjects()
        Boolean value indicating if the SubmitRequirement definition can be overridden in child projects.

        For globally bound SubmitRequirement, indicates if can be overridden by SubmitRequirement in project.config.

        Default is false.

      • typeAdapter

        public static com.google.gson.TypeAdapter<SubmitRequirement> typeAdapter​(com.google.gson.Gson gson)