Enum Class OpenapiStatus

java.lang.Object
java.lang.Enum<OpenapiStatus>
io.github.xezzon.zeroweb.openapi.enumeration.OpenapiStatus
All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.IDict, Serializable, Comparable<OpenapiStatus>, Constable

public enum OpenapiStatus extends Enum<OpenapiStatus> implements io.github.xezzon.zeroweb.core.trait.IDict

对外接口状态枚举

定义了对外接口的生命周期状态,包括草稿和已发布两个状态。 该枚举实现了 IDict 接口, 提供了统一的数据字典功能。

Author:
xezzon
  • Enum Constant Details

    • DRAFT

      public static final OpenapiStatus DRAFT
      草稿状态
    • PUBLISHED

      public static final OpenapiStatus PUBLISHED
      已发布状态
  • Method Details

    • values

      public static OpenapiStatus[] 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 OpenapiStatus 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
    • getTag

      public String getTag()
      Specified by:
      getTag in interface io.github.xezzon.zeroweb.core.trait.IDict
    • getCode

      public String getCode()
      Specified by:
      getCode in interface io.github.xezzon.zeroweb.core.trait.IDict
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface io.github.xezzon.zeroweb.core.trait.IDict
    • getOrdinal

      public int getOrdinal()
      Specified by:
      getOrdinal in interface io.github.xezzon.zeroweb.core.trait.IDict