Package ch.so.agi.mcp.constraint
Record Class CompiledConstraintContext
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.CompiledConstraintContext
public record CompiledConstraintContext(String modelText, @Nullable String modelRepositories, IliCompilerService.CompilationResult compilation, ch.interlis.ili2c.metamodel.TransferDescription transferDescription, ch.interlis.ili2c.metamodel.Constraint constraint, SemanticConstraint semantics)
extends Record
One successfully compiled model plus one resolved constraint and its typed semantic IR.
The context is deliberately immutable so review, proof planning, XTF synthesis and validator verification can share the same ili2c metamodel without recompiling the unchanged model.
-
Constructor Summary
ConstructorsConstructorDescriptionCompiledConstraintContext(String modelText, @Nullable String modelRepositories, IliCompilerService.CompilationResult compilation, ch.interlis.ili2c.metamodel.TransferDescription transferDescription, ch.interlis.ili2c.metamodel.Constraint constraint, SemanticConstraint semantics) Creates an instance of aCompiledConstraintContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilationrecord component.ch.interlis.ili2c.metamodel.ConstraintReturns the value of theconstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of themodelRepositoriesrecord component.Returns the value of themodelTextrecord component.Returns the value of thesemanticsrecord component.final StringtoString()Returns a string representation of this record class.ch.interlis.ili2c.metamodel.TransferDescriptionReturns the value of thetransferDescriptionrecord component.
-
Constructor Details
-
CompiledConstraintContext
public CompiledConstraintContext(String modelText, @Nullable String modelRepositories, IliCompilerService.CompilationResult compilation, ch.interlis.ili2c.metamodel.TransferDescription transferDescription, ch.interlis.ili2c.metamodel.Constraint constraint, SemanticConstraint semantics) Creates an instance of aCompiledConstraintContextrecord class.- Parameters:
modelText- the value for themodelTextrecord componentmodelRepositories- the value for themodelRepositoriesrecord componentcompilation- the value for thecompilationrecord componenttransferDescription- the value for thetransferDescriptionrecord componentconstraint- the value for theconstraintrecord componentsemantics- the value for thesemanticsrecord component
-
-
Method Details
-
contextFqn
-
constraintFqn
-
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). -
modelText
Returns the value of themodelTextrecord component.- Returns:
- the value of the
modelTextrecord component
-
modelRepositories
Returns the value of themodelRepositoriesrecord component.- Returns:
- the value of the
modelRepositoriesrecord component
-
compilation
Returns the value of thecompilationrecord component.- Returns:
- the value of the
compilationrecord component
-
transferDescription
public ch.interlis.ili2c.metamodel.TransferDescription transferDescription()Returns the value of thetransferDescriptionrecord component.- Returns:
- the value of the
transferDescriptionrecord component
-
constraint
public ch.interlis.ili2c.metamodel.Constraint constraint()Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
semantics
Returns the value of thesemanticsrecord component.- Returns:
- the value of the
semanticsrecord component
-