Hello, guys. I am currently making a simple tornadofx GUI to generate a XML configuration. I believer that in order to do so, the simplest way is to make my model classes seializable and use @pdvrieze's xmlutil and make my model classes seializable. In order to do so, I need to create custom serializators for javafx Properties. Like this:
I have two questions:1. The property is nullable, how can I create a descriptor for nullable value. In
@pdvrieze's code there is a delegate wrapper that copies descriptor functionality and switches the
flag. Is i the best way to do so. Do I even need the flag
2. Serialized xml seems to have class names for tag names instead of names of the peoperties. Is it something in serializaition, or a feature of
3. How can I tell enums to be serializaed into their names. Do I need custom serialized for that?
3 years ago
do some look-ahead for the next token type when reading something?
• if next token is string then decode as A
• if next token is object then decode as B
3 years ago
isn't compatible with Kotlin 1.3.40-eap 😕
w: skipping /Users/marc/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-serialization-runtime-native_debug_ios_x64/0.11.0/c80bda43e7d80430654f2ef709df51a073ed0f0e/kotlinx-serialization-runtime-native.klib. The abi versions don't match. Expected '', found '8'
w: The compiler versions don't match either. Expected '[1.3]', found '1.2-release-9411'