Enum JsonGroupAsBehavior
- java.lang.Object
-
- java.lang.Enum<JsonGroupAsBehavior>
-
- gov.nist.secauto.metaschema.core.model.JsonGroupAsBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonGroupAsBehavior>
public enum JsonGroupAsBehavior extends Enum<JsonGroupAsBehavior>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEYED
In JSON, the group of instances will be represented as a JSON object, with each instance's JSON key used as the property and the remaining data represented as a child object of that property.LIST
In JSON, the group of instances will be represented as an array of JSON objects if there is more than one.NONE
In JSON, the group of instances will be represented as a single JSON object.SINGLETON_OR_LIST
In JSON, the group of instances will be represented as a single JSON object if there is one, or as an array of JSON objects if there is more than one.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonGroupAsBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonGroupAsBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEYED
public static final JsonGroupAsBehavior KEYED
In JSON, the group of instances will be represented as a JSON object, with each instance's JSON key used as the property and the remaining data represented as a child object of that property.
-
SINGLETON_OR_LIST
public static final JsonGroupAsBehavior SINGLETON_OR_LIST
In JSON, the group of instances will be represented as a single JSON object if there is one, or as an array of JSON objects if there is more than one. An empty array will be used when no items exist in the group.
-
LIST
public static final JsonGroupAsBehavior LIST
In JSON, the group of instances will be represented as an array of JSON objects if there is more than one. An empty array will be used when no items exist in the group.
-
NONE
public static final JsonGroupAsBehavior NONE
In JSON, the group of instances will be represented as a single JSON object.
-
-
Method Detail
-
values
public static JsonGroupAsBehavior[] 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 (JsonGroupAsBehavior c : JsonGroupAsBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonGroupAsBehavior 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
-
-