Class SubmitRequirementExpressionInfo

java.lang.Object
com.google.gerrit.extensions.common.SubmitRequirementExpressionInfo

public class SubmitRequirementExpressionInfo extends Object
Result of evaluating a single submit requirement expression. This API entity is populated from
invalid reference
com.google.gerrit.entities.SubmitRequirementExpressionResult
.
  • Field Details

    • expression

      public String expression
      Submit requirement expression as a String.
    • fulfilled

      public boolean fulfilled
      A boolean indicating if the expression is fulfilled on a change.
    • status

      A status indicating if the expression is fulfilled, non-fulfilled or not evaluated.
    • passingAtoms

      public List<String> passingAtoms
      A list of all atoms that are passing, for example query "branch:refs/heads/foo and project:bar" has two atoms: ["branch:refs/heads/foo", "project:bar"].
    • failingAtoms

      public List<String> failingAtoms
      A list of all atoms that are failing, for example query "branch:refs/heads/foo and project:bar" has two atoms: ["branch:refs/heads/foo", "project:bar"].
    • atomExplanations

      public Map<String,String> atomExplanations
      Map of leaf predicates to their explanations.

      This is used to provide more information about complex atoms, which may otherwise be opaque and hard to debug.

      This will only be populated/implemented for some atoms.

    • errorMessage

      public String errorMessage
      Optional error message. Contains an explanation of why the submit requirement expression failed during its evaluation.
  • Constructor Details

    • SubmitRequirementExpressionInfo

      public SubmitRequirementExpressionInfo()
  • Method Details