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.build()Builds an immutableKonceptDefinitionfrom this builder's state.definition(String definition) Sets the natural language definition text.identifier(String identifier) Sets the CamelCase identifier.Sets the OWL IRI for the concept.Sets the human-readable label.Sets the SNOMED CT concept identifier.
-
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
-
build
Builds an immutableKonceptDefinitionfrom this builder's state.- Returns:
- the constructed definition
- Throws:
IllegalStateException- if identifier is null or blank
-