Enum Class LPVSPullRequestStatus

java.lang.Object
java.lang.Enum<LPVSPullRequestStatus>
com.lpvs.entity.enums.LPVSPullRequestStatus
All Implemented Interfaces:
Serializable, Comparable<LPVSPullRequestStatus>, Constable

public enum LPVSPullRequestStatus extends Enum<LPVSPullRequestStatus>
Represents the status of a pull request scan in the LPVS system. Each status corresponds to a specific state or outcome of the scanning process.
  • Enum Constant Details

    • NO_ACCESS

      public static final LPVSPullRequestStatus NO_ACCESS
      Indicates that access to the pull request is not possible.
    • ISSUES_DETECTED

      public static final LPVSPullRequestStatus ISSUES_DETECTED
      Indicates that license issues have been detected in the pull request.
    • INTERNAL_ERROR

      public static final LPVSPullRequestStatus INTERNAL_ERROR
      Indicates an internal error occurred while posting scan results.
    • COMPLETED

      public static final LPVSPullRequestStatus COMPLETED
      Indicates that the scan of the pull request has been completed.
    • SCANNING

      public static final LPVSPullRequestStatus SCANNING
      Indicates that the scan of the pull request is scheduled and in progress.
  • Method Details

    • values

      public static LPVSPullRequestStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LPVSPullRequestStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPullRequestStatus

      public String getPullRequestStatus()
      Gets the string representation of the pull request status.
      Returns:
      The string representation of the pull request status.
    • toString

      public String toString()
      Returns a string representation of the pull request status.
      Overrides:
      toString in class Enum<LPVSPullRequestStatus>
      Returns:
      The string representation of the pull request status.