Enum JsonbUtils
- java.lang.Object
-
- java.lang.Enum<JsonbUtils>
-
- com.evolveum.midpoint.repo.sqale.jsonb.JsonbUtils
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonbUtils>
public enum JsonbUtils extends Enum<JsonbUtils>
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSONB_POLY_NORM_KEY
static String
JSONB_POLY_ORIG_KEY
static String
JSONB_REF_RELATION_KEY
static String
JSONB_REF_TARGET_OID_KEY
static String
JSONB_REF_TARGET_TYPE_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Jsonb
polyStringsToJsonb(Collection<PolyString> polys)
static @NotNull Map<String,String>
polyStringToMap(@NotNull PolyString poly)
static @NotNull Map<String,String>
polyStringToMap(@NotNull PolyStringType poly)
static Jsonb
polyStringTypesToJsonb(Collection<PolyStringType> polys)
static JsonbUtils
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonbUtils[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
JSONB_POLY_ORIG_KEY
public static final String JSONB_POLY_ORIG_KEY
- See Also:
- Constant Field Values
-
JSONB_POLY_NORM_KEY
public static final String JSONB_POLY_NORM_KEY
- See Also:
- Constant Field Values
-
JSONB_REF_TARGET_OID_KEY
public static final String JSONB_REF_TARGET_OID_KEY
- See Also:
- Constant Field Values
-
JSONB_REF_TARGET_TYPE_KEY
public static final String JSONB_REF_TARGET_TYPE_KEY
- See Also:
- Constant Field Values
-
JSONB_REF_RELATION_KEY
public static final String JSONB_REF_RELATION_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static JsonbUtils[] 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 (JsonbUtils c : JsonbUtils.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonbUtils 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
-
polyStringTypesToJsonb
public static Jsonb polyStringTypesToJsonb(Collection<PolyStringType> polys)
-
polyStringsToJsonb
public static Jsonb polyStringsToJsonb(Collection<PolyString> polys)
-
polyStringToMap
@NotNull public static @NotNull Map<String,String> polyStringToMap(@NotNull @NotNull PolyString poly)
-
polyStringToMap
@NotNull public static @NotNull Map<String,String> polyStringToMap(@NotNull @NotNull PolyStringType poly)
-
-