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 textaxiom- Description logic axiom string using Unicode DL symbolssctid- Optional SNOMED CT concept identifieriri- Optional OWL IRI for the conceptuuids- Optional explicit Tinkar PublicId UUIDs, in datastore order, used to compute the Komet identicon; when absent the identicon is derived fromsctidkind- Optional component kind (concept,description,semantic,pattern,stamp,unknown);nullor absent meansconcept(the bare default)
public record KonceptDefinition(String identifier, String label, String definition, String axiom, String sctid, String iri, List<String> uuids, String kind)
extends Record
Immutable definition of a Koncept, including natural language definition,
description logic axiom, and optional terminology identifiers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing KonceptDefinition instances from parsed YAML or programmatic sources. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaxiom()Returns the value of theaxiomrecord component.static KonceptDefinition.Builderbuilder()Creates a new builder for constructingKonceptDefinitioninstances.Returns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.iri()Returns the value of theirirecord component.kind()Returns the value of thekindrecord component.label()Returns the value of thelabelrecord component.sctid()Returns the value of thesctidrecord component.final StringtoString()Returns a string representation of this record class.uuids()Returns the value of theuuidsrecord component.
-
Constructor Details
-
KonceptDefinition
public KonceptDefinition(String identifier, String label, String definition, String axiom, String sctid, String iri, List<String> uuids, String kind) Creates an instance of aKonceptDefinitionrecord class.- Parameters:
identifier- the value for theidentifierrecord componentlabel- the value for thelabelrecord componentdefinition- the value for thedefinitionrecord componentaxiom- the value for theaxiomrecord componentsctid- the value for thesctidrecord componentiri- the value for theirirecord componentuuids- the value for theuuidsrecord componentkind- the value for thekindrecord component
-
-
Method Details
-
builder
Creates a new builder for constructingKonceptDefinitioninstances.- Returns:
- a new builder
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
label
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
axiom
-
sctid
-
iri
-
uuids
-
kind
-