Package com.ibm.fhir.model.type
Class Markdown.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.String.Builder
-
- com.ibm.fhir.model.type.Markdown.Builder
-
- Enclosing class:
- Markdown
public static class Markdown.Builder extends String.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.String.Builder
value
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Markdownbuild()Build theMarkdownMarkdown.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the resource.Markdown.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the resource.protected Markdown.Builderfrom(Markdown markdown)Markdown.Builderid(String id)unique id for the element within a resource (for internal references)Markdown.Buildervalue(String value)Primitive value for markdown-
Methods inherited from class com.ibm.fhir.model.type.String.Builder
from
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Markdown.Builder id(String id)
unique id for the element within a resource (for internal references)- Overrides:
idin classString.Builder- Parameters:
id- xml:id (or equivalent in JSON)- Returns:
- A reference to this Builder instance
-
extension
public Markdown.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list
- Overrides:
extensionin classString.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Markdown.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extensionin classString.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
value
public Markdown.Builder value(String value)
Primitive value for markdown- Overrides:
valuein classString.Builder- Parameters:
value- Primitive value for markdown- Returns:
- A reference to this Builder instance
-
build
public Markdown build()
Build theMarkdown- Specified by:
buildin interfaceBuilder<Element>- Overrides:
buildin classString.Builder- Returns:
- An immutable object of type
Markdown - Throws:
IllegalStateException- if the current state cannot be built into a valid Markdown per the base specification
-
from
protected Markdown.Builder from(Markdown markdown)
-
-