Record Class ConversionPlan

java.lang.Object
java.lang.Record
guru.interlis.convconf.plan.ConversionPlan
Record Components:
kmModel - KM model identifier used to build the plan
sourceLm - source LM name
targetLm - target LM name
sourceModel - parsed source LM model
targetModel - parsed target LM model
steps - linearized read/write steps generated by the planner

public record ConversionPlan(String kmModel, String sourceLm, String targetLm, LmModel sourceModel, LmModel targetModel, List<ConversionPlan.PlanStep> steps) extends Record
Serializable conversion plan derived from KM + source LM + target LM.
  • Constructor Details

    • ConversionPlan

      public ConversionPlan(String kmModel, String sourceLm, String targetLm, LmModel sourceModel, LmModel targetModel, List<ConversionPlan.PlanStep> steps)
      Creates an instance of a ConversionPlan record class.
      Parameters:
      kmModel - the value for the kmModel record component
      sourceLm - the value for the sourceLm record component
      targetLm - the value for the targetLm record component
      sourceModel - the value for the sourceModel record component
      targetModel - the value for the targetModel record component
      steps - the value for the steps record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kmModel

      public String kmModel()
      Returns the value of the kmModel record component.
      Returns:
      the value of the kmModel record component
    • sourceLm

      public String sourceLm()
      Returns the value of the sourceLm record component.
      Returns:
      the value of the sourceLm record component
    • targetLm

      public String targetLm()
      Returns the value of the targetLm record component.
      Returns:
      the value of the targetLm record component
    • sourceModel

      public LmModel sourceModel()
      Returns the value of the sourceModel record component.
      Returns:
      the value of the sourceModel record component
    • targetModel

      public LmModel targetModel()
      Returns the value of the targetModel record component.
      Returns:
      the value of the targetModel record component
    • steps

      public List<ConversionPlan.PlanStep> steps()
      Returns the value of the steps record component.
      Returns:
      the value of the steps record component