public.javadoc.org.spincast.core.exceptions.class-use.CantConvertException.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
Uses of Class org.spincast.core.exceptions.CantConvertException (org.spincast:spincast-framework 1.0.0 API)
Uses of Class
org.spincast.core.exceptions.CantConvertException
-
Packages that use CantConvertException
Package
Description
org.spincast.core.json
org.spincast.core.utils
-
-
Uses of CantConvertException in org.spincast.core.json
Methods in org.spincast.core.json that throw CantConvertException
Modifier and Type
Method and Description
BigDecimal
JsonArray.getArrayFirstBigDecimal(int index)
Gets the first element (as BigDecimal) of a JsonArray
element.
BigDecimal
JsonArray.getArrayFirstBigDecimal(int index,
BigDecimal defaultValue)
Gets the first element (as BigDecimal) of a JsonArray
element.
BigDecimal
JsonObjectOrArray.getArrayFirstBigDecimal(String jsonPath)
Gets the first value (as BigDecimal) of a JsonArray
property
of the object, using the JsonPath
to find the array.
BigDecimal
JsonObjectOrArray.getArrayFirstBigDecimal(String jsonPath,
BigDecimal defaultElement)
Gets the first value (as BigDecimal) of a JsonArray
property
of the object, using the JsonPath
to find the array.
BigDecimal
JsonObject.getArrayFirstBigDecimalNoKeyParsing(String key)
Gets the first value (as BigDecimal) of a JsonArray
element
.
BigDecimal
JsonObject.getArrayFirstBigDecimalNoKeyParsing(String key,
BigDecimal defaultElement)
Gets the first value (as BigDecimal) of a JsonArray
element
.
Boolean
JsonArray.getArrayFirstBoolean(int index)
Gets the first element (as Boolean) of a JsonArray
element.
Boolean
JsonArray.getArrayFirstBoolean(int index,
Boolean defaultValue)
Gets the first element (as Boolean) of a JsonArray
element.
Boolean
JsonObjectOrArray.getArrayFirstBoolean(String jsonPath)
Gets the first value (as Boolean) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Boolean
JsonObjectOrArray.getArrayFirstBoolean(String jsonPath,
Boolean defaultElement)
Gets the first value (as Boolean) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Boolean
JsonObject.getArrayFirstBooleanNoKeyParsing(String key)
Gets the first value (as Boolean) of a JsonArray
element
.
Boolean
JsonObject.getArrayFirstBooleanNoKeyParsing(String key,
Boolean defaultElement)
Gets the first value (as Boolean) of a JsonArray
element
.
byte[]
JsonArray.getArrayFirstBytesFromBase64String(int index)
Gets the first element (as byte[]) of a JsonArray
element.
byte[]
JsonArray.getArrayFirstBytesFromBase64String(int index,
byte[] defaultValue)
Gets the first element (as byte[]) of a JsonArray
element.
byte[]
JsonObjectOrArray.getArrayFirstBytesFromBase64String(String jsonPath)
Gets the first value (as byte[]) of a JsonArray
property
of the object, using the JsonPath
to find the array.
byte[]
JsonObjectOrArray.getArrayFirstBytesFromBase64String(String jsonPath,
byte[] defaultElement)
Gets the first value (as byte[]) of a JsonArray
property
of the object, using the JsonPath
to find the array.
byte[]
JsonObject.getArrayFirstBytesFromBase64StringNoKeyParsing(String key)
Gets the first value (as byte[]) of a JsonArray
element
.
byte[]
JsonObject.getArrayFirstBytesFromBase64StringNoKeyParsing(String key,
byte[] defaultElement)
Gets the first value (as byte[]) of a JsonArray
element
.
Date
JsonArray.getArrayFirstDate(int index)
Gets the first element (as Date) of a JsonArray
element.
Date
JsonArray.getArrayFirstDate(int index,
Date defaultValue)
Gets the first element (as Date) of a JsonArray
element.
Date
JsonObjectOrArray.getArrayFirstDate(String jsonPath)
Gets the first value (as Date) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Date
JsonObjectOrArray.getArrayFirstDate(String jsonPath,
Date defaultElement)
Gets the first value (as Date) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Date
JsonObject.getArrayFirstDateNoKeyParsing(String key)
Gets the first value (as Date) of a JsonArray
element
.
Date
JsonObject.getArrayFirstDateNoKeyParsing(String key,
Date defaultElement)
Gets the first value (as Date) of a JsonArray
element.
Double
JsonArray.getArrayFirstDouble(int index)
Gets the first element (as Double) of a JsonArray
element.
Double
JsonArray.getArrayFirstDouble(int index,
Double defaultValue)
Gets the first element (as Double) of a JsonArray
element.
Double
JsonObjectOrArray.getArrayFirstDouble(String jsonPath)
Gets the first value (as Double) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Double
JsonObjectOrArray.getArrayFirstDouble(String jsonPath,
Double defaultElement)
Gets the first value (as Double) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Double
JsonObject.getArrayFirstDoubleNoKeyParsing(String key)
Gets the first value (as Double) of a JsonArray
element
.
Double
JsonObject.getArrayFirstDoubleNoKeyParsing(String key,
Double defaultElement)
Gets the first value (as Double) of a JsonArray
element
.
Float
JsonArray.getArrayFirstFloat(int index)
Gets the first element (as Float) of a JsonArray
element.
Float
JsonArray.getArrayFirstFloat(int index,
Float defaultValue)
Gets the first element (as Float) of a JsonArray
element.
Float
JsonObjectOrArray.getArrayFirstFloat(String jsonPath)
Gets the first value (as Float) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Float
JsonObjectOrArray.getArrayFirstFloat(String jsonPath,
Float defaultElement)
Gets the first value (as Float) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Float
JsonObject.getArrayFirstFloatNoKeyParsing(String key)
Gets the first value (as Float) of a JsonArray
element
.
Float
JsonObject.getArrayFirstFloatNoKeyParsing(String key,
Float defaultElement)
Gets the first value (as Float) of a JsonArray
element
.
Instant
JsonArray.getArrayFirstInstant(int index)
Gets the first element (as Instant) of a JsonArray
element.
Instant
JsonArray.getArrayFirstInstant(int index,
Instant defaultValue)
Gets the first element (as Instant) of a JsonArray
element.
Instant
JsonObjectOrArray.getArrayFirstInstant(String jsonPath)
Gets the first value (as Instant) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Instant
JsonObjectOrArray.getArrayFirstInstant(String jsonPath,
Instant defaultElement)
Gets the first value (as Instant) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Integer
JsonArray.getArrayFirstInteger(int index)
Gets the first element (as Integer) of a JsonArray
element.
Integer
JsonArray.getArrayFirstInteger(int index,
Integer defaultValue)
Gets the first element (as Integer) of a JsonArray
element.
Integer
JsonObjectOrArray.getArrayFirstInteger(String jsonPath)
Gets the first value (as Integer) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Integer
JsonObjectOrArray.getArrayFirstInteger(String jsonPath,
Integer defaultElement)
Gets the first value (as Integer) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Integer
JsonObject.getArrayFirstIntegerNoKeyParsing(String key)
Gets the first value (as Integer) of a JsonArray
element
.
Integer
JsonObject.getArrayFirstIntegerNoKeyParsing(String key,
Integer defaultElement)
Gets the first value (as Integer) of a JsonArray
element
.
JsonArray
JsonArray.getArrayFirstJsonArray(int index)
Gets the first element (as JsonArray) of a JsonArray
element.
JsonArray
JsonArray.getArrayFirstJsonArray(int index,
JsonArray defaultValue)
Gets the first element (as JsonArray) of a JsonArray
element.
JsonArray
JsonObjectOrArray.getArrayFirstJsonArray(String jsonPath)
Gets the first value (as JsonArray) of a JsonArray
property
of the object, using the JsonPath
to find the array.
JsonArray
JsonObjectOrArray.getArrayFirstJsonArray(String jsonPath,
JsonArray defaultElement)
Gets the first value (as JsonArray) of a JsonArray
property
of the object, using the JsonPath
to find the array.
JsonArray
JsonObject.getArrayFirstJsonArrayNoKeyParsing(String key)
Gets the first value (as JsonArray) of a JsonArray
element
.
JsonArray
JsonObject.getArrayFirstJsonArrayNoKeyParsing(String key,
JsonArray defaultElement)
Gets the first value (as JsonArray) of a JsonArray
element
.
JsonObject
JsonArray.getArrayFirstJsonObject(int index)
Gets the first element (as JsonObject) of a JsonArray
element.
JsonObject
JsonArray.getArrayFirstJsonObject(int index,
JsonObject defaultValue)
Gets the first element (as JsonObject) of a JsonArray
element.
JsonObject
JsonObjectOrArray.getArrayFirstJsonObject(String jsonPath)
Gets the first value (as JsonObject) of a JsonArray
property
of the object, using the JsonPath
to find the array.
JsonObject
JsonObjectOrArray.getArrayFirstJsonObject(String jsonPath,
JsonObject defaultElement)
Gets the first value (as JsonObject) of a JsonArray
property
of the object, using the JsonPath
to find the array.
JsonObject
JsonObject.getArrayFirstJsonObjectNoKeyParsing(String key)
Gets the first value (as JsonObject) of a JsonArray
element
.
JsonObject
JsonObject.getArrayFirstJsonObjectNoKeyParsing(String key,
JsonObject defaultElement)
Gets the first value (as JsonObject) of a JsonArray
element
.
Long
JsonArray.getArrayFirstLong(int index)
Gets the first element (as Long) of a JsonArray
element.
Long
JsonArray.getArrayFirstLong(int index,
Long defaultValue)
Gets the first element (as Long) of a JsonArray
element.
Long
JsonObjectOrArray.getArrayFirstLong(String jsonPath)
Gets the first value (as Long) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Long
JsonObjectOrArray.getArrayFirstLong(String jsonPath,
Long defaultElement)
Gets the first value (as Long) of a JsonArray
property
of the object, using the JsonPath
to find the array.
Long
JsonObject.getArrayFirstLongNoKeyParsing(String key)
Gets the first value (as Long) of a JsonArray
element
.
Long
JsonObject.getArrayFirstLongNoKeyParsing(String key,
Long defaultElement)
Gets the first value (as Long) of a JsonArray
element
.
String
JsonArray.getArrayFirstString(int index)
Gets the first element (as String) of a JsonArray
element.
String
JsonArray.getArrayFirstString(int index,
String defaultValue)
Gets the first element (as String) of a JsonArray
element.
BigDecimal
JsonArray.getBigDecimal(int index)
Gets an element as BigDecimal
.
BigDecimal
JsonArray.getBigDecimal(int index,
BigDecimal defaultValue)
Gets an element as BigDecimal
.
BigDecimal
JsonObjectOrArray.getBigDecimal(String jsonPath)
Gets an element as BigDecimal
using the
specified JsonPath
.
BigDecimal
JsonObjectOrArray.getBigDecimal(String jsonPath,
BigDecimal defaultElement)
Gets an element as BigDecimal
using the
specified JsonPath
.
BigDecimal
JsonObject.getBigDecimalNoKeyParsing(String key)
Gets an element as BigDecimal
.
BigDecimal
JsonObject.getBigDecimalNoKeyParsing(String key,
BigDecimal defaultElement)
Gets an element as BigDecimal
.
Boolean
JsonArray.getBoolean(int index)
Gets an element as Boolean
.
Boolean
JsonArray.getBoolean(int index,
Boolean defaultValue)
Gets an element as Boolean
.
Boolean
JsonObjectOrArray.getBoolean(String jsonPath)
Gets an element as Boolean
using the
specified JsonPath
.
Boolean
JsonObjectOrArray.getBoolean(String jsonPath,
Boolean defaultElement)
Gets an element as Boolean
using the
specified JsonPath
.
Boolean
JsonObject.getBooleanNoKeyParsing(String key)
Gets an element as Boolean
.
Boolean
JsonObject.getBooleanNoKeyParsing(String key,
Boolean defaultElement)
Gets an element as Boolean
.
byte[]
JsonArray.getBytesFromBase64String(int index)
Gets a byte array, from a base 64 encoded element.
byte[]
JsonArray.getBytesFromBase64String(int index,
byte[] defaultValue)
Gets a byte array, from a base 64 encoded element.
byte[]
JsonObjectOrArray.getBytesFromBase64String(String jsonPath)
Gets a byte array, from a base 64 encoded element using the
specified JsonPath
.
byte[]
JsonObjectOrArray.getBytesFromBase64String(String jsonPath,
byte[] defaultElement)
Gets a byte array, from a base 64 encoded element using the
specified JsonPath
.
byte[]
JsonObject.getBytesFromBase64StringNoKeyParsing(String key)
Gets a byte array, from a base 64 encoded element.
byte[]
JsonObject.getBytesFromBase64StringNoKeyParsing(String key,
byte[] defaultElement)
Gets a byte array, from a base 64 encoded element.
Date
JsonArray.getDate(int index)
Gets a UTC timezoned date from a ISO 8601
date element.
Date
JsonArray.getDate(int index,
Date defaultValue)
Gets a UTC timezoned date from a ISO 8601
date element.
Date
JsonObjectOrArray.getDate(String jsonPath)
Gets a UTC timezoned date from a ISO 8601
date string element using the
specified JsonPath
.
Date
JsonObjectOrArray.getDate(String jsonPath,
Date defaultElement)
Gets a UTC timezoned date from a ISO 8601
date string element using the
specified JsonPath
.
Date
JsonObject.getDateNoKeyParsing(String key)
Gets a UTC timezoned date from a ISO 8601
date element.
Date
JsonObject.getDateNoKeyParsing(String key,
Date defaultElement)
Gets a UTC timezoned date from a ISO 8601
date element.
Double
JsonArray.getDouble(int index)
Gets an element as Double
.
Double
JsonArray.getDouble(int index,
Double defaultValue)
Gets an element as Double
.
Double
JsonObjectOrArray.getDouble(String jsonPath)
Gets an element as Double
using the
specified JsonPath
.
Double
JsonObjectOrArray.getDouble(String jsonPath,
Double defaultElement)
Gets an element as Double
using the
specified JsonPath
.
Double
JsonObject.getDoubleNoKeyParsing(String jsonPath)
Gets an element as Double
.
Double
JsonObject.getDoubleNoKeyParsing(String jsonPath,
Double defaultElement)
Gets an element as Double
.
Float
JsonArray.getFloat(int index)
Gets an element as Float
.
Float
JsonArray.getFloat(int index,
Float defaultValue)
Gets an element as Float
.
Float
JsonObjectOrArray.getFloat(String jsonPath)
Gets an element as Float
using the
specified JsonPath
.
Float
JsonObjectOrArray.getFloat(String jsonPath,
Float defaultElement)
Gets an element as Float
using the
specified JsonPath
.
Float
JsonObject.getFloatNoKeyParsing(String jsonPath)
Gets an element as Float
.
Float
JsonObject.getFloatNoKeyParsing(String jsonPath,
Float defaultElement)
Gets an element as Float
.
Instant
JsonArray.getInstant(int index)
Gets an Instant from a ISO 8601
date element.
Instant
JsonArray.getInstant(int index,
Instant defaultValue)
Gets an Instant from a ISO 8601
date element.
Instant
JsonObjectOrArray.getInstant(String jsonPath)
Gets an Instant from a ISO 8601
date string element using the
specified JsonPath
.
Instant
JsonObjectArrayBase.getInstant(String jsonPath)
Instant
JsonObjectOrArray.getInstant(String jsonPath,
Instant defaultElement)
Gets an Instant from a ISO 8601
date string element using the
specified JsonPath
.
Instant
JsonObjectArrayBase.getInstant(String jsonPath,
Instant defaultElement)
Instant
JsonObject.getInstantNoKeyParsing(String key)
Gets an Instant from a ISO 8601
date element.
Instant
JsonObject.getInstantNoKeyParsing(String key,
Instant defaultElement)
Gets an Instant from a ISO 8601
date element.
Integer
JsonArray.getInteger(int index)
Gets an element as Integer
.
Integer
JsonArray.getInteger(int index,
Integer defaultValue)
Gets an element as Integer
.
Integer
JsonObjectOrArray.getInteger(String jsonPath)
Gets an element as Integer
using the
specified JsonPath
.
Integer
JsonObjectOrArray.getInteger(String jsonPath,
Integer defaultElement)
Gets an element as Integer
using the
specified JsonPath
.
Integer
JsonObject.getIntegerNoKeyParsing(String jsonPath)
Gets an element as Integer
.
Integer
JsonObject.getIntegerNoKeyParsing(String jsonPath,
Integer defaultElement)
Gets an element as Integer
.
JsonArray
JsonArray.getJsonArray(int index)
Gets an element as JsonArray
.
JsonArray
JsonArray.getJsonArray(int index,
JsonArray defaultValue)
Gets an element as JsonArray
.
JsonArray
JsonObjectOrArray.getJsonArray(String jsonPath)
Gets an element as JsonArray
using the
specified JsonPath
.
JsonArray
JsonObjectOrArray.getJsonArray(String jsonPath,
JsonArray defaultElement)
Gets an element as JsonArray
using the
specified JsonPath
.
JsonArray
JsonObject.getJsonArrayNoKeyParsing(String jsonPath)
Gets an element as JsonArray
.
JsonArray
JsonObject.getJsonArrayNoKeyParsing(String jsonPath,
JsonArray defaultElement)
Gets an element as JsonArray
.
JsonArray
JsonArray.getJsonArrayOrEmpty(int index)
Gets an element as JsonArray
.
JsonArray
JsonObjectOrArray.getJsonArrayOrEmpty(String jsonPath)
Gets an element as JsonArray
using the
specified JsonPath
.
JsonArray
JsonObjectOrArray.getJsonArrayOrEmpty(String jsonPath,
boolean addIfDoesntExist)
Gets an element as JsonArray
using the
specified JsonPath
.
JsonArray
JsonObject.getJsonArrayOrEmptyNoKeyParsing(String jsonPath)
Gets an element as JsonArray
.
JsonObject
JsonArray.getJsonObject(int index)
Gets an element as JsonObject
.
JsonObject
JsonArray.getJsonObject(int index,
JsonObject defaultValue)
Gets an element as JsonObject
.
JsonObject
JsonObjectOrArray.getJsonObject(String jsonPath)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObjectOrArray.getJsonObject(String jsonPath,
JsonObject defaultElement)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObject.getJsonObjectNoKeyParsing(String jsonPath)
Gets an element as JsonObject
.
JsonObject
JsonObject.getJsonObjectNoKeyParsing(String jsonPath,
JsonObject defaultElement)
Gets an element as JsonObject
.
JsonObject
JsonArray.getJsonObjectOrEmpty(int index)
Gets an element as JsonObject
.
JsonObject
JsonObjectOrArray.getJsonObjectOrEmpty(String jsonPath)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObjectOrArray.getJsonObjectOrEmpty(String jsonPath,
boolean addIfDoesntExist)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObject.getJsonObjectOrEmptyNoKeyParsing(String jsonPath)
Gets an element as JsonObject
.
Long
JsonArray.getLong(int index)
Gets an element as Long
.
Long
JsonArray.getLong(int index,
Long defaultValue)
Gets an element as Long
.
Long
JsonObjectOrArray.getLong(String jsonPath)
Gets an element as Long
using the
specified JsonPath
.
Long
JsonObjectOrArray.getLong(String jsonPath,
Long defaultElement)
Gets an element as Long
using the
specified JsonPath
.
Long
JsonObject.getLongNoKeyParsing(String jsonPath)
Gets an element as Long
.
Long
JsonObject.getLongNoKeyParsing(String jsonPath,
Long defaultElement)
Gets an element as Long
.
-
Uses of CantConvertException in org.spincast.core.utils
Methods in org.spincast.core.utils that throw CantConvertException
Modifier and Type
Method and Description
byte[]
ObjectConverterDefault.convertBase64StringToByteArray(Object object)
byte[]
ObjectConverter.convertBase64StringToByteArray(Object element)
Converts the element to a BigDecimal
.
<T> T
ObjectConverterDefault.convertTo(Object object,
Class<T> targetType)
<T> T
ObjectConverter.convertTo(Object element,
Class<T> targetType)
Tries to convert the element to the specified targetType
.
BigDecimal
ObjectConverterDefault.convertToBigDecimal(Object object)
BigDecimal
ObjectConverter.convertToBigDecimal(Object element)
Converts the element to a BigDecimal
.
Boolean
ObjectConverterDefault.convertToBoolean(Object object)
Boolean
ObjectConverter.convertToBoolean(Object element)
Converts the element to a JsonArray
.
Date
ObjectConverterDefault.convertToDateFromJsonDateFormat(Object object)
Date
ObjectConverter.convertToDateFromJsonDateFormat(Object element)
Converts the element to a Date
.
Double
ObjectConverterDefault.convertToDouble(Object object)
Double
ObjectConverter.convertToDouble(Object element)
Converts the element to a Double
.
Float
ObjectConverterDefault.convertToFloat(Object object)
Float
ObjectConverter.convertToFloat(Object element)
Converts the element to a Float
.
Instant
ObjectConverterDefault.convertToInstantFromJsonDateFormat(Object object)
Instant
ObjectConverter.convertToInstantFromJsonDateFormat(Object element)
Converts the element to a Instant
.
Integer
ObjectConverterDefault.convertToInteger(Object object)
Integer
ObjectConverter.convertToInteger(Object element)
Converts the element to a Integer
.
JsonArray
ObjectConverter.convertToJsonArray(Object element)
Converts the element to a JsonArray
.
JsonObject
ObjectConverter.convertToJsonObject(Object element)
Converts the element to a JsonObject
.
Long
ObjectConverterDefault.convertToLong(Object object)
Long
ObjectConverter.convertToLong(Object element)
Converts the element to a Long
.
Copyright © 2019. All rights reserved.