-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Serializable? #18
Comments
No considerations so far because I am using CityGML or CityJSON for de-/serialization. I like your idea and it shouldn't be too hard to implement it. Btw, your are talking about the classes in |
Correct! I think it is just a matter of adding the interface and potentially adding |
Yes, a PR would be great. I think, the root interface of all model classes is I am not sure about the |
I am not an expert in this space, but my sense is that any class which contains fields that you intend to be restored after deserialization need to be marked as |
I did a quick test. It seems to be sufficient to let the interface Afterwards, I added a |
You should read https://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it
this conforms to the spec; because you now have a different version of the object so it is assumed incompatible. |
@kainoa21 Sorry for not being very active on this lately. I pushed the implementation of the Serializable interface to the @mprins Thanks for your input. |
merged |
This is great @clausnagel and I have verified that is working for my use case. Thank you for enabling this! |
Has there been previous consideration given to making these classes serializable? I was attempting to use this library in a distributed system and being able to serialize and deserialize the citygml classes would greatly improve the usability.
The text was updated successfully, but these errors were encountered: