Package org.jsonschema2pojo
Enum Class SourceType
- All Implemented Interfaces:
Serializable,Comparable<SourceType>,Constable
The type of input/source documents given to jsonschema2pojo.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJSON documents, that represent an example of the kind of JSON data that the generated Java types will be mapped to.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/)).YAML documents, that represent an example of the kind of YAML (or JSON) data that the generated Java types will be mapped to.JSON-schema documents, represented as YAML -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceTypeReturns the enum constant of this class with the specified name.static SourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
JSON documents, that represent an example of the kind of JSON data that the generated Java types will be mapped to. -
YAMLSCHEMA
JSON-schema documents, represented as YAML -
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
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
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 nameNullPointerException- if the argument is null
-