Class CompositeKonceptDefinitionSource

java.lang.Object
network.ike.docs.koncept.CompositeKonceptDefinitionSource
All Implemented Interfaces:
KonceptDefinitionSource

public class CompositeKonceptDefinitionSource extends Object implements 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 Details

    • CompositeKonceptDefinitionSource

      public CompositeKonceptDefinitionSource(List<KonceptDefinitionSource> sources)
      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

      public Optional<KonceptDefinition> lookup(String identifier)
      Description copied from interface: KonceptDefinitionSource
      Look up the definition for the given koncept identifier.
      Specified by:
      lookup in interface KonceptDefinitionSource
      Parameters:
      identifier - CamelCase koncept identifier (e.g., "HeartFailure")
      Returns:
      the definition if found
    • identifiers

      public Collection<String> identifiers()
      Description copied from interface: KonceptDefinitionSource
      All identifiers this source can enumerate, for a comprehensive glossary that lists every known koncept (not only those referenced in the document) and for inverting the broader taxonomy 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:
      identifiers in interface KonceptDefinitionSource
      Returns:
      every known identifier, or an empty collection if enumeration is unsupported