Class KonceptDefinition.Builder

java.lang.Object
network.ike.docs.koncept.KonceptDefinition.Builder
Enclosing class:
KonceptDefinition

public static class KonceptDefinition.Builder extends Object
Builder for constructing KonceptDefinition instances from parsed YAML or programmatic sources.
  • Constructor Details

    • Builder

      public Builder()
      Creates a new empty builder.
  • Method Details

    • identifier

      public KonceptDefinition.Builder identifier(String identifier)
      Sets the CamelCase identifier.
      Parameters:
      identifier - the identifier to set
      Returns:
      this builder
    • label

      public KonceptDefinition.Builder label(String label)
      Sets the human-readable label.
      Parameters:
      label - the label to set
      Returns:
      this builder
    • definition

      public KonceptDefinition.Builder definition(String definition)
      Sets the natural language definition text.
      Parameters:
      definition - the definition to set
      Returns:
      this builder
    • axiom

      public KonceptDefinition.Builder axiom(String axiom)
      Sets the description logic axiom string.
      Parameters:
      axiom - the axiom to set
      Returns:
      this builder
    • sctid

      public KonceptDefinition.Builder sctid(String sctid)
      Sets the SNOMED CT concept identifier.
      Parameters:
      sctid - the SNOMED CT identifier to set
      Returns:
      this builder
    • iri

      Sets the OWL IRI for the concept.
      Parameters:
      iri - the IRI to set
      Returns:
      this builder
    • build

      public KonceptDefinition build()
      Builds an immutable KonceptDefinition from this builder's state.
      Returns:
      the constructed definition
      Throws:
      IllegalStateException - if identifier is null or blank