Package io.jmix.flowui.view.navigation
Class UrlParamSerializer
java.lang.Object
io.jmix.flowui.view.navigation.UrlParamSerializer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
deserialize
(Class<T> type, String serializedValue) Deserializes the givenserializedValue
as a value with giventype
.protected Integer
parseInteger
(String decoded) protected Long
protected String
parseString
(String decoded) protected UUID
Serializes the givenvalue
to string representation.protected String
serializePrimitive
(Object value) protected String
serializeUuid
(UUID value)
-
Field Details
-
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
-
serializePrimitive
-
serializeUuid
-
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
-
parseString
-
parseInteger
-
parseLong
-
parseUuid
-