Package dk.gtz.graphedit.spi
Interface ISyntaxMigrater
- All Known Implementing Classes:
DemoSyntaxMigrater
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for syntax migraters.
This is useful for syntax plugins whenever they change the model format in a breaking manner.
Migraters can then migrate from an old version to a newer one.
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.core.TreeNode
migrate
(com.fasterxml.jackson.core.TreeNode input, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Perform a migration on a serialized tree node structure using the Jackson serialization library
-
Method Details
-
migrate
com.fasterxml.jackson.core.TreeNode migrate(com.fasterxml.jackson.core.TreeNode input, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Perform a migration on a serialized tree node structure using the Jackson serialization library- Parameters:
input
- The parsed tree node structure to migrateobjectMapper
- The associated jackson objectmapper- Returns:
- A new parse-tree that has been patched
-