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
ConstructorsConstructorDescriptionSchemaTransformation(LogicSchema original, LogicSchema transformed, SchemaTraceabilityMap schemaTraceabilityMap) Creates an instance of aSchemaTransformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getOriginalConstraintID(ConstraintID transformedConstraintID) final inthashCode()Returns a hash code value for this object.original()Returns the value of theoriginalrecord component.Returns the value of theschemaTraceabilityMaprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformedrecord component.
-
Constructor Details
-
SchemaTransformation
public SchemaTransformation(LogicSchema original, LogicSchema transformed, SchemaTraceabilityMap schemaTraceabilityMap) Creates an instance of aSchemaTransformationrecord class.- Parameters:
original- the value for theoriginalrecord componenttransformed- the value for thetransformedrecord componentschemaTraceabilityMap- the value for theschemaTraceabilityMaprecord 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 theoriginalrecord component.- Returns:
- the value of the
originalrecord component
-
transformed
Returns the value of thetransformedrecord component.- Returns:
- the value of the
transformedrecord component
-
schemaTraceabilityMap
Returns the value of theschemaTraceabilityMaprecord component.- Returns:
- the value of the
schemaTraceabilityMaprecord component
-