Package guru.interlis.convconf.plan
Record Class ConversionPlan
java.lang.Object
java.lang.Record
guru.interlis.convconf.plan.ConversionPlan
- Record Components:
kmModel- KM model identifier used to build the plansourceLm- source LM nametargetLm- target LM namesourceModel- parsed source LM modeltargetModel- parsed target LM modelsteps- 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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSingle execution step in the generated plan. -
Constructor Summary
ConstructorsConstructorDescriptionConversionPlan(String kmModel, String sourceLm, String targetLm, LmModel sourceModel, LmModel targetModel, List<ConversionPlan.PlanStep> steps) Creates an instance of aConversionPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kmModel()Returns the value of thekmModelrecord component.sourceLm()Returns the value of thesourceLmrecord component.Returns the value of thesourceModelrecord component.steps()Returns the value of thestepsrecord component.targetLm()Returns the value of thetargetLmrecord component.Returns the value of thetargetModelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConversionPlan
public ConversionPlan(String kmModel, String sourceLm, String targetLm, LmModel sourceModel, LmModel targetModel, List<ConversionPlan.PlanStep> steps) Creates an instance of aConversionPlanrecord class.- Parameters:
kmModel- the value for thekmModelrecord componentsourceLm- the value for thesourceLmrecord componenttargetLm- the value for thetargetLmrecord componentsourceModel- the value for thesourceModelrecord componenttargetModel- the value for thetargetModelrecord componentsteps- the value for thestepsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
kmModel
Returns the value of thekmModelrecord component.- Returns:
- the value of the
kmModelrecord component
-
sourceLm
Returns the value of thesourceLmrecord component.- Returns:
- the value of the
sourceLmrecord component
-
targetLm
Returns the value of thetargetLmrecord component.- Returns:
- the value of the
targetLmrecord component
-
sourceModel
Returns the value of thesourceModelrecord component.- Returns:
- the value of the
sourceModelrecord component
-
targetModel
Returns the value of thetargetModelrecord component.- Returns:
- the value of the
targetModelrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-