Record Class KonceptDefinition

java.lang.Object
java.lang.Record
network.ike.docs.koncept.KonceptDefinition
Record Components:
identifier - CamelCase identifier used in markup (e.g., "HeartFailure")
label - Human-readable label (e.g., "Heart Failure")
definition - Natural language definition text
axiom - Description logic axiom string using Unicode DL symbols
sctid - Optional SNOMED CT concept identifier
iri - Optional OWL IRI for the concept

public record KonceptDefinition(String identifier, String label, String definition, String axiom, String sctid, String iri) extends Record
Immutable definition of a Koncept, including natural language definition, description logic axiom, and optional terminology identifiers.
  • Constructor Details

    • KonceptDefinition

      public KonceptDefinition(String identifier, String label, String definition, String axiom, String sctid, String iri)
      Creates an instance of a KonceptDefinition record class.
      Parameters:
      identifier - the value for the identifier record component
      label - the value for the label record component
      definition - the value for the definition record component
      axiom - the value for the axiom record component
      sctid - the value for the sctid record component
      iri - the value for the iri record component
  • Method Details

    • builder

      public static KonceptDefinition.Builder builder()
      Creates a new builder for constructing KonceptDefinition instances.
      Returns:
      a new builder
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • identifier

      public String identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • definition

      public String definition()
      Returns the value of the definition record component.
      Returns:
      the value of the definition record component
    • axiom

      public String axiom()
      Returns the value of the axiom record component.
      Returns:
      the value of the axiom record component
    • sctid

      public String sctid()
      Returns the value of the sctid record component.
      Returns:
      the value of the sctid record component
    • iri

      public String iri()
      Returns the value of the iri record component.
      Returns:
      the value of the iri record component