Package io.jmix.flowui.view.navigation
Class UrlParamSerializer
java.lang.Object
io.jmix.flowui.view.navigation.UrlParamSerializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Metadataprotected MetadataToolsprotected FlowuiNavigationPropertiesprotected static final DateTimeFormatterprotected static final DateTimeFormatterprotected static final DateTimeFormatterprotected static final DateTimeFormatterprotected static final DateTimeFormatter -
Constructor Summary
ConstructorsConstructorDescriptionUrlParamSerializer(FlowuiNavigationProperties navigationProperties, MetadataTools metadataTools, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescription<T> Tdeserialize(Class<T> type, String serializedValue) Deserializes the givenserializedValueas a value with giventype.protected BigDecimalparseBigDecimal(String stringValue) protected BigIntegerparseBigInteger(String stringValue) protected BooleanparseBoolean(String stringValue) protected CharacterparseCharacter(String stringValue) protected <T> TparseComposite(Class<T> type, String serializedValue) protected Dateprotected DateparseDateTime(String stringValue) protected DoubleparseDouble(String stringValue) protected <T> Tprotected FloatparseFloat(String stringValue) protected IntegerparseInteger(String stringValue) protected LocalDateparseLocalDate(String stringValue) protected LocalDateTimeparseLocalDateTime(String stringValue) protected LocalTimeparseLocalTime(String stringValue) protected Longprotected OffsetDateTimeparseOffsetDateTime(String stringValue) protected OffsetTimeparseOffsetTime(String stringValue) protected ShortparseShort(String stringValue) protected StringparseString(String stringValue) protected Timeprotected UUIDprotected StringpropertyNameMapper(String property) protected StringpropertyValueMapper(String property) Serializes the givenvalueto string representation.protected StringserializeComposite(Object value) protected StringserializeDate(Date value) protected StringserializeDateTime(Date value) protected StringserializeEnum(Enum<?> value) protected StringserializeLocalDate(LocalDate value) protected Stringprotected StringserializeLocalTime(LocalTime value) protected Stringprotected StringserializeOffsetTime(OffsetTime value) protected StringserializePrimitive(Object value) protected StringserializeTime(Time value) protected StringserializeUuid(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 givenvalueto 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 givenserializedValueas 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
-