Class ModelAnalysisTools

java.lang.Object
ch.so.agi.mcp.analysis.ModelAnalysisTools

@Component public class ModelAnalysisTools extends Object
  • Constructor Details

  • Method Details

    • analyzeIliModel

      @McpTool(name="analyzeIliModel", description="Low-Level-Tool fuer gezielte strukturelle und semantische Inspektion eines vollstaendigen INTERLIS-Modells, z. B. Vererbung, Topic-Abhaengigkeiten, Association-Rollen, Constraints, Units, Metaattribute oder Typdetails. Nicht als allgemeines Qualitaetsgate oder Standardreview verwenden; dafuer reviewIliModel.", annotations=) public Map<String,Object> analyzeIliModel(@McpToolParam(description="INTERLIS-2 Modelltext",required=true) String modelText, @McpToolParam(description="Modellzweck: CAPTURE, PUBLICATION, VALIDATION oder UNKNOWN",required=false) @Nullable ModelPurpose modelPurpose, @McpToolParam(description="Optionaler exakter FQN einer Klasse, Struktur, Association oder View; liefert gezielten Authoring-Kontext",required=false) @Nullable String contextFqn)
    • analyzeIliModel

      public Map<String,Object> analyzeIliModel(String modelText, @Nullable ModelPurpose modelPurpose)
    • analyzeCompiled

      public ModelAnalysisTools.AnalysisData analyzeCompiled(@Nullable ch.interlis.ili2c.metamodel.TransferDescription td, String modelText)
    • toResponse

      public Map<String,Object> toResponse(boolean valid, List<Map<String,Object>> messages, ModelAnalysisTools.AnalysisData data, ModelPurpose modelPurpose)
    • lexicalTerms

      public Set<String> lexicalTerms(Map<String,Object> analysisResponse)