Package org.openapitools.codegen.utils
Enum JsonAnnotationPolicyUtils.JsonSetterNullsMode
- java.lang.Object
-
- java.lang.Enum<JsonAnnotationPolicyUtils.JsonSetterNullsMode>
-
- org.openapitools.codegen.utils.JsonAnnotationPolicyUtils.JsonSetterNullsMode
-
- All Implemented Interfaces:
Serializable,Comparable<JsonAnnotationPolicyUtils.JsonSetterNullsMode>
- Enclosing class:
- JsonAnnotationPolicyUtils
public static enum JsonAnnotationPolicyUtils.JsonSetterNullsMode extends Enum<JsonAnnotationPolicyUtils.JsonSetterNullsMode>
Resolved@JsonSetter(nulls = ...)annotation to emit for a property, if any.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonAnnotationPolicyUtils.JsonSetterNullsModevalueOf(String name)Returns the enum constant of this type with the specified name.static JsonAnnotationPolicyUtils.JsonSetterNullsMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final JsonAnnotationPolicyUtils.JsonSetterNullsMode NONE
No@JsonSetter(nulls = ...)annotation should be emitted.
-
SKIP
public static final JsonAnnotationPolicyUtils.JsonSetterNullsMode SKIP
Emit@JsonSetter(nulls = Nulls.SKIP): silently ignore an explicit JSON null.
-
FAIL
public static final JsonAnnotationPolicyUtils.JsonSetterNullsMode FAIL
Emit@JsonSetter(nulls = Nulls.FAIL): reject an explicit JSON null.
-
-
Method Detail
-
values
public static JsonAnnotationPolicyUtils.JsonSetterNullsMode[] 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 (JsonAnnotationPolicyUtils.JsonSetterNullsMode c : JsonAnnotationPolicyUtils.JsonSetterNullsMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonAnnotationPolicyUtils.JsonSetterNullsMode 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 nameNullPointerException- if the argument is null
-
-