Enum Class SourceType

java.lang.Object
java.lang.Enum<SourceType>
org.jsonschema2pojo.SourceType
All Implemented Interfaces:
Serializable, Comparable<SourceType>, Constable

public enum SourceType extends Enum<SourceType>
The type of input/source documents given to jsonschema2pojo.
  • Enum Constant Details

    • JSONSCHEMA

      public static final SourceType JSONSCHEMA
      JSON-schema documents, that contain formal rules about the kind of JSON data that the generated Java types will be mapped to (http://json-schema.org/)).
    • JSON

      public static final SourceType JSON
      JSON documents, that represent an example of the kind of JSON data that the generated Java types will be mapped to.
    • YAMLSCHEMA

      public static final SourceType YAMLSCHEMA
      JSON-schema documents, represented as YAML
    • YAML

      public static final SourceType YAML
      YAML documents, that represent an example of the kind of YAML (or JSON) data that the generated Java types will be mapped to.
  • Method Details

    • values

      public static SourceType[] 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 SourceType 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