Class Ek9QaFileLoader
java.lang.Object
org.ek9lang.assist.Ek9QaFileLoader
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadAll()Load all QA entries from manifest-listed .ek9 resource files.(package private) QuestionAndAnswerloadFromResource(String resourcePath) (package private) StringloadResourceContent(String resourcePath)
-
Constructor Details
-
Ek9QaFileLoader
public Ek9QaFileLoader()
-
-
Method Details
-
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
-
loadResourceContent
-