Class CompositeKonceptDefinitionSource
java.lang.Object
network.ike.docs.koncept.CompositeKonceptDefinitionSource
- All Implemented Interfaces:
KonceptDefinitionSource
A definition source that chains multiple sources in priority order.
Lookup queries each source in order and returns the first match. Sources listed earlier take priority, so a project-local file listed first will override definitions from the pipeline classpath.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a composite source that queries the given sources in order. -
Method Summary
Modifier and TypeMethodDescriptionAll identifiers this source can enumerate, for a comprehensive glossary that lists every known koncept (not only those referenced in the document) and for inverting thebroadertaxonomy into children.Look up the definition for the given koncept identifier.
-
Constructor Details
-
CompositeKonceptDefinitionSource
Creates a composite source that queries the given sources in order.- Parameters:
sources- ordered list of definition sources (earlier entries take priority)
-
-
Method Details
-
lookup
Description copied from interface:KonceptDefinitionSourceLook up the definition for the given koncept identifier.- Specified by:
lookupin interfaceKonceptDefinitionSource- Parameters:
identifier- CamelCase koncept identifier (e.g., "HeartFailure")- Returns:
- the definition if found
-
identifiers
Description copied from interface:KonceptDefinitionSourceAll identifiers this source can enumerate, for a comprehensive glossary that lists every known koncept (not only those referenced in the document) and for inverting thebroadertaxonomy into children. Sources that cannot enumerate (for example a live terminology server queried on demand) return an empty collection, and the glossary falls back to referenced koncepts only.- Specified by:
identifiersin interfaceKonceptDefinitionSource- Returns:
- every known identifier, or an empty collection if enumeration is unsupported
-