public class YamlValidatorHelper extends Object
Constructor and Description |
---|
YamlValidatorHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ensureBoolean(Object o) |
static Boolean |
ensureBooleanOrNull(Object o) |
static <T extends Enum<T>> |
ensureConstantOfEnumOrNull(Class<T> enumClass,
Object o) |
static int |
ensureInteger(Object o) |
static Integer |
ensureIntegerOrNull(Object o) |
static List<Map<String,Object>> |
ensureListOfMapsOfStringToObjectOrNull(Object o) |
static List<?> |
ensureListOrNull(Object o) |
static Map<String,Object> |
ensureMapOfStringToObject(Object o) |
static Map<String,Object> |
ensureMapOfStringToObjectOrNull(Object o) |
static Map<String,String> |
ensureMapOfStringToStringOrNull(Object o) |
static Map<?,?> |
ensureMapOrNull(Object o) |
static String |
ensureString(Object o) |
static String |
ensureStringOrNull(Object o) |
public static int ensureInteger(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static Integer ensureIntegerOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
public static boolean ensureBoolean(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static Boolean ensureBooleanOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
@NotNull public static String ensureString(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static String ensureStringOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static Map<?,?> ensureMapOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static Map<String,Object> ensureMapOfStringToObjectOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
@NotNull public static Map<String,Object> ensureMapOfStringToObject(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static List<?> ensureListOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static List<Map<String,Object>> ensureListOfMapsOfStringToObjectOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static Map<String,String> ensureMapOfStringToStringOrNull(@Nullable Object o) throws YamlValidationException
YamlValidationException
@Nullable public static <T extends Enum<T>> T ensureConstantOfEnumOrNull(@NotNull Class<T> enumClass, @Nullable Object o) throws YamlValidationException
YamlValidationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.