Class KonceptDefinition.Builder
java.lang.Object
network.ike.docs.koncept.KonceptDefinition.Builder
- Enclosing class:
KonceptDefinition
Builder for constructing KonceptDefinition instances from parsed YAML
or programmatic sources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the description logic axiom string.Sets the identifiers of this koncept's supertypes (is-a parents).build()Builds an immutableKonceptDefinitionfrom this builder's state.Sets the text of every currently active comment attached to this koncept.definition(String definition) Sets the natural language definition text.fields(List<KonceptDefinition.PatternField> fields) Sets akind: patternkoncept's own field definitions, in declared order.identifier(String identifier) Sets the CamelCase identifier.Sets the OWL IRI for the concept.Sets the component kind (concept,description,semantic,pattern,stamp,unknown);nullor absent means concept.Sets the human-readable label.Sets the curated, long-form AsciiDoc prose for this koncept.referencedComponentExample(String referencedComponentExample) Sets akind: patternkoncept's referenced-component example — the referenced component of a real semantic of this pattern already in the knowledge base.referencedComponentMeaning(String referencedComponentMeaning) Sets akind: patternkoncept's own referenced-component meaning concept identifier.referencedComponentPurpose(String referencedComponentPurpose) Sets akind: patternkoncept's own referenced-component purpose concept identifier.retiredComments(List<KonceptDefinition.RetiredComment> retiredComments) Sets the prior text and retirement time of comments superseded by an inactive version.Sets the SNOMED CT concept identifier.Sets the stable section-grouping key computed against the live knowledge base.Sets the identifiers of related koncepts (a javadoc-@seeanalog).Sets the earliest stamp time of this koncept's own version chain.Sets the lifecycle state of the koncept's latest version (inactiverenders the retired treatment);nullor absent means active.Sets the logical-definition status name (defined,primitive,root);nullor absent means no stated definition.Sets the explicit Tinkar PublicId UUIDs (in datastore order) used to compute the Komet identicon.
-
Constructor Details
-
Builder
public Builder()Creates a new empty builder.
-
-
Method Details
-
identifier
Sets the CamelCase identifier.- Parameters:
identifier- the identifier to set- Returns:
- this builder
-
label
Sets the human-readable label.- Parameters:
label- the label to set- Returns:
- this builder
-
definition
Sets the natural language definition text.- Parameters:
definition- the definition to set- Returns:
- this builder
-
axiom
Sets the description logic axiom string.- Parameters:
axiom- the axiom to set- Returns:
- this builder
-
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
-
uuids
Sets the explicit Tinkar PublicId UUIDs (in datastore order) used to compute the Komet identicon.- Parameters:
uuids- the UUID strings to set- Returns:
- this builder
-
kind
Sets the component kind (concept,description,semantic,pattern,stamp,unknown);nullor absent means concept.- Parameters:
kind- the kind name to set- Returns:
- this builder
-
broader
Sets the identifiers of this koncept's supertypes (is-a parents).- Parameters:
broader- the parent identifiers to set- Returns:
- this builder
-
status
Sets the logical-definition status name (defined,primitive,root);nullor absent means no stated definition.- Parameters:
status- the status name to set- Returns:
- this builder
-
state
Sets the lifecycle state of the koncept's latest version (inactiverenders the retired treatment);nullor absent means active.- Parameters:
state- the state name to set- Returns:
- this builder
-
section
Sets the stable section-grouping key computed against the live knowledge base.- Parameters:
section- the section key to set- Returns:
- this builder
-
since
Sets the earliest stamp time of this koncept's own version chain.- Parameters:
since- the formatted time to set- Returns:
- this builder
-
comments
Sets the text of every currently active comment attached to this koncept.- Parameters:
comments- the comment texts to set- Returns:
- this builder
-
retiredComments
public KonceptDefinition.Builder retiredComments(List<KonceptDefinition.RetiredComment> retiredComments) Sets the prior text and retirement time of comments superseded by an inactive version.- Parameters:
retiredComments- the retired comments to set- Returns:
- this builder
-
seeAlso
Sets the identifiers of related koncepts (a javadoc-@seeanalog).- Parameters:
seeAlso- the related identifiers to set- Returns:
- this builder
-
narrative
Sets the curated, long-form AsciiDoc prose for this koncept.- Parameters:
narrative- the AsciiDoc source to set- Returns:
- this builder
-
referencedComponentMeaning
Sets akind: patternkoncept's own referenced-component meaning concept identifier.- Parameters:
referencedComponentMeaning- the referenced-component meaning identifier to set- Returns:
- this builder
-
referencedComponentPurpose
Sets akind: patternkoncept's own referenced-component purpose concept identifier.- Parameters:
referencedComponentPurpose- the referenced-component purpose identifier to set- Returns:
- this builder
-
referencedComponentExample
Sets akind: patternkoncept's referenced-component example — the referenced component of a real semantic of this pattern already in the knowledge base.- Parameters:
referencedComponentExample- the referenced-component example to set- Returns:
- this builder
-
fields
Sets akind: patternkoncept's own field definitions, in declared order.- Parameters:
fields- the field definitions to set- Returns:
- this builder
-
build
Builds an immutableKonceptDefinitionfrom this builder's state.- Returns:
- the constructed definition
- Throws:
IllegalStateException- if identifier is null or blank
-