Enum LicenseResolver.LicenseEncoding

java.lang.Object
java.lang.Enum<LicenseResolver.LicenseEncoding>
org.cyclonedx.util.LicenseResolver.LicenseEncoding
All Implemented Interfaces:
Serializable, Comparable<LicenseResolver.LicenseEncoding>, java.lang.constant.Constable
Enclosing class:
LicenseResolver

public static enum LicenseResolver.LicenseEncoding extends Enum<LicenseResolver.LicenseEncoding>
Lists possible choices for license text encoding
  • Enum Constant Details

  • Field Details

    • encodingName

      private final String encodingName
  • Constructor Details

    • LicenseEncoding

      private LicenseEncoding(String encodingName)
      Constructor with a string representation of the enum value
      Parameters:
      encodingName - The string representation of the enum value
  • Method Details

    • values

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

      public static LicenseResolver.LicenseEncoding 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LicenseResolver.LicenseEncoding>