Record Class SchemaTransformation
java.lang.Object
java.lang.Record
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.processes.SchemaTransformation
public record SchemaTransformation(LogicSchema original, LogicSchema transformed, SchemaTraceabilityMap schemaTraceabilityMap)
extends Record
Class that remembers the transformation applied from an original LogicSchema to a transformedLogicSchema.
Currently, it remembers which logic constraintID comes from what constraintID.
-
Constructor Summary
ConstructorDescriptionSchemaTransformation
(LogicSchema original, LogicSchema transformed, SchemaTraceabilityMap schemaTraceabilityMap) Creates an instance of aSchemaTransformation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getOriginalConstraintID
(ConstraintID transformedConstraintID) final int
hashCode()
Returns a hash code value for this object.original()
Returns the value of theoriginal
record component.Returns the value of theschemaTraceabilityMap
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransformed
record component.
-
Constructor Details
-
SchemaTransformation
public SchemaTransformation(LogicSchema original, LogicSchema transformed, SchemaTraceabilityMap schemaTraceabilityMap) Creates an instance of aSchemaTransformation
record class.- Parameters:
original
- the value for theoriginal
record componenttransformed
- the value for thetransformed
record componentschemaTraceabilityMap
- the value for theschemaTraceabilityMap
record component
-
-
Method Details
-
getOriginalConstraintID
- Parameters:
transformedConstraintID
- not null- Returns:
- the original constraintID of the transformedConstraintID
-
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)
. -
original
Returns the value of theoriginal
record component.- Returns:
- the value of the
original
record component
-
transformed
Returns the value of thetransformed
record component.- Returns:
- the value of the
transformed
record component
-
schemaTraceabilityMap
Returns the value of theschemaTraceabilityMap
record component.- Returns:
- the value of the
schemaTraceabilityMap
record component
-