Package io.zerocopy.json.schema
Enum SchemaProblem
- java.lang.Object
-
- java.lang.Enum<SchemaProblem>
-
- io.zerocopy.json.schema.SchemaProblem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SchemaProblem>
public enum SchemaProblem extends java.lang.Enum<SchemaProblem>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DUPLICATE_IDIMMEDIATE_RECURSIONINVALID_REFRECURSIONTYPE_ERRORUNSUPPORTED_ENCODINGUNSUPPORTED_FORMATUNSUPPORTED_MEDIATYPEUNSUPPORTED_SCHEMA_VERSIONVALIDATION_ALWAYS_FAILS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaProblemvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SchemaProblem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_ERROR
public static final SchemaProblem TYPE_ERROR
-
UNSUPPORTED_ENCODING
public static final SchemaProblem UNSUPPORTED_ENCODING
-
UNSUPPORTED_MEDIATYPE
public static final SchemaProblem UNSUPPORTED_MEDIATYPE
-
UNSUPPORTED_FORMAT
public static final SchemaProblem UNSUPPORTED_FORMAT
-
UNSUPPORTED_SCHEMA_VERSION
public static final SchemaProblem UNSUPPORTED_SCHEMA_VERSION
-
IMMEDIATE_RECURSION
public static final SchemaProblem IMMEDIATE_RECURSION
-
RECURSION
public static final SchemaProblem RECURSION
-
INVALID_REF
public static final SchemaProblem INVALID_REF
-
DUPLICATE_ID
public static final SchemaProblem DUPLICATE_ID
-
VALIDATION_ALWAYS_FAILS
public static final SchemaProblem VALIDATION_ALWAYS_FAILS
-
-
Method Detail
-
values
public static SchemaProblem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SchemaProblem c : SchemaProblem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaProblem valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-