Class Ek9QaFileLoader

java.lang.Object
org.ek9lang.assist.Ek9QaFileLoader

public class Ek9QaFileLoader extends Object
Loads Q&A content from .ek9 resource files listed in qa-manifest.txt. Each main .ek9 file contains a JSON header (between <?- and -?>) with all QA metadata, and the code body after the header serves as the ek9Example. Companion files (same QA ID prefix, no JSON header) are attached as CompanionSource entries. This makes the .ek9 files the single source of truth — compile-verified by JUnit tests.
  • Constructor Details

    • Ek9QaFileLoader

      public Ek9QaFileLoader()
  • Method Details

    • loadAll

      public List<QuestionAndAnswer> loadAll()
      Load all QA entries from manifest-listed .ek9 resource files. Groups manifest paths by QA ID prefix, constructs companions for multi-file entries.
    • loadFromResource

      QuestionAndAnswer loadFromResource(String resourcePath)
    • loadResourceContent

      String loadResourceContent(String resourcePath)