Package io.jmix.flowui.view.navigation
Class UrlParamSerializer
java.lang.Object
io.jmix.flowui.view.navigation.UrlParamSerializer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
protected Metadata
protected MetadataTools
protected FlowuiNavigationProperties
protected static final DateTimeFormatter
protected static final DateTimeFormatter
protected static final DateTimeFormatter
protected static final DateTimeFormatter
protected static final DateTimeFormatter
-
Constructor Summary
ConstructorDescriptionUrlParamSerializer
(FlowuiNavigationProperties navigationProperties, MetadataTools metadataTools, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> T
deserialize
(Class<T> type, String serializedValue) Deserializes the givenserializedValue
as a value with giventype
.protected BigDecimal
parseBigDecimal
(String stringValue) protected BigInteger
parseBigInteger
(String stringValue) protected Boolean
parseBoolean
(String stringValue) protected Character
parseCharacter
(String stringValue) protected <T> T
parseComposite
(Class<T> type, String serializedValue) protected Date
protected Date
parseDateTime
(String stringValue) protected Double
parseDouble
(String stringValue) protected <T> T
protected Float
parseFloat
(String stringValue) protected Integer
parseInteger
(String stringValue) protected LocalDate
parseLocalDate
(String stringValue) protected LocalDateTime
parseLocalDateTime
(String stringValue) protected LocalTime
parseLocalTime
(String stringValue) protected Long
protected OffsetDateTime
parseOffsetDateTime
(String stringValue) protected OffsetTime
parseOffsetTime
(String stringValue) protected Short
parseShort
(String stringValue) protected String
parseString
(String stringValue) protected Time
protected UUID
protected String
propertyNameMapper
(String property) protected String
propertyValueMapper
(String property) Serializes the givenvalue
to string representation.protected String
serializeComposite
(Object value) protected String
serializeDate
(Date value) protected String
serializeDateTime
(Date value) protected String
serializeEnum
(Enum<?> value) protected String
serializeLocalDate
(LocalDate value) protected String
protected String
serializeLocalTime
(LocalTime value) protected String
protected String
serializeOffsetTime
(OffsetTime value) protected String
serializePrimitive
(Object value) protected String
serializeTime
(Time value) protected String
serializeUuid
(UUID value)
-
Field Details
-
DEFAULT_DATE_FORMAT
- See Also:
-
DEFAULT_TIME_FORMAT
- See Also:
-
DEFAULT_OFFSET_FORMAT
- See Also:
-
DEFAULT_DATE_TIME_FORMAT
- See Also:
-
DEFAULT_OFFSET_DATE_TIME_FORMAT
- See Also:
-
DEFAULT_OFFSET_TIME_FORMAT
- See Also:
-
TEMPORAL_DATE_FORMATTER
-
TEMPORAL_TIME_FORMATTER
-
TEMPORAL_DATE_TIME_FORMATTER
-
TEMPORAL_OFFSET_DATE_TIME_FORMATTER
-
TEMPORAL_OFFSET_TIME_FORMATTER
-
metadataTools
-
metadata
-
-
Constructor Details
-
Method Details
-
serialize
Serializes the givenvalue
to string representation.String, Integer, Long and UUID values are only supported.
- Parameters:
value
- value to serialize- Returns:
- serialized string representation of given value
- Throws:
IllegalArgumentException
- if null value is passed or it has an unsupported type
-
serializeDateTime
-
serializeLocalDate
-
serializeLocalDateTime
-
serializeDate
-
serializeOffsetDateTime
-
serializeLocalTime
-
serializeOffsetTime
-
serializeTime
-
serializeEnum
-
serializePrimitive
-
serializeUuid
-
serializeComposite
-
deserialize
Deserializes the givenserializedValue
as a value with giventype
.String, Integer, Long and UUID ids are only supported.
- Parameters:
type
- value typeserializedValue
- serialized value- Returns:
- deserialized value
- Throws:
IllegalArgumentException
- if null value and/or type are passed or the given value type is not supported
-
parseOffsetDateTime
-
parseOffsetTime
-
parseBigDecimal
-
parseBigInteger
-
parseCharacter
-
parseDate
-
parseDateTime
-
parseDouble
-
parseEnum
-
parseFloat
-
parseLocalDate
-
parseLocalDateTime
-
parseLocalTime
-
parseShort
-
parseTime
-
parseBoolean
-
parseString
-
parseInteger
-
parseLong
-
parseUuid
-
parseComposite
-
propertyNameMapper
-
propertyValueMapper
-