... | ... | @@ -5,7 +5,7 @@ The migration assistant is encapsulated as Java package `org.vadere.simulator.pr |
|
|
## Steps to Set Up a New Migration
|
|
|
|
|
|
1. Add new version number to enum `Version`.
|
|
|
2. Create new Java File `JsonTransformVxToVy.java` (or copy existing one) under `VadereSimulator/src/org/vadere/simulator/projects/migration/jsontranformation/json`.
|
|
|
2. Create new Java File `TargetVersionVX_Y.java` (or copy existing one) under `VadereSimulator/src/org/vadere/simulator/projects/migration/jsontranformation/json`.
|
|
|
3. The created file from (2) must extend `SimpleJsonTransformation`.
|
|
|
4. Apply the annotation `@MigrationTransformation` with correct `targetVersionLabel` to the created file from (2). **Note:** This is required to auto-generate factory methods properly.
|
|
|
5. Implement the required transformation functions by obeying the functional interface `JsonTransformationHook`. **Tip:** Use the helper class `JsonNodeExplorer` to parse the given JSON tree.
|
... | ... | |