Interface MigrationStrategy

  • All Known Implementing Classes:
    InMemoryMigrationStrategy

    public interface MigrationStrategy
    Interface to define the migration strategy for scesim files
    • Method Detail

      • start

        default ThrowingConsumer<org.w3c.dom.Document> start()
        Method to initialize migration strategy composition
        Returns:
      • from1_0to1_1

        ThrowingConsumer<org.w3c.dom.Document> from1_0to1_1()
        Method to obtain the migration function from 1.0 to 1.1
        Returns:
      • from1_1to1_2

        ThrowingConsumer<org.w3c.dom.Document> from1_1to1_2()
        Method to obtain the migration function from 1.1 to 1.2
        Returns:
      • from1_2to1_3

        ThrowingConsumer<org.w3c.dom.Document> from1_2to1_3()
        Method to obtain the migration function from 1.2 to 1.3
        Returns:
      • from1_3to1_4

        ThrowingConsumer<org.w3c.dom.Document> from1_3to1_4()
        Method to obtain the migration function from 1.3 to 1.4
        Returns:
      • from1_4to1_5

        ThrowingConsumer<org.w3c.dom.Document> from1_4to1_5()
        Method to obtain the migration function from 1.4 to 1.5
        Returns:
      • from1_5to1_6

        ThrowingConsumer<org.w3c.dom.Document> from1_5to1_6()
        Method to obtain the migration function from 1.5 to 1.6
        Returns:
      • from1_6to1_7

        ThrowingConsumer<org.w3c.dom.Document> from1_6to1_7()
        Method to obtain the migration function from 1.6 to 1.7
        Returns:
      • from1_7to1_8

        ThrowingConsumer<org.w3c.dom.Document> from1_7to1_8()
        Method to obtain the migration function from 1.7 to 1.8
        Returns:
      • end

        default ThrowingConsumer<org.w3c.dom.Document> end()
        Method to complete the migration. For instance it can be used to store the new value
        Returns:
      • updateVersion

        default void updateVersion​(org.w3c.dom.Document document,
                                   java.lang.String newVersion)