Package com.ibm.fhir.model.type
Class RelatedArtifact.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.RelatedArtifact.Builder
-
- Enclosing class:
- RelatedArtifact
public static class RelatedArtifact.Builder extends Element.Builder
-
-
Field Summary
-
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 RelatedArtifactbuild()Build theRelatedArtifactRelatedArtifact.Buildercitation(Markdown citation)A bibliographic citation for the related artifact.RelatedArtifact.Builderdisplay(String display)A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.RelatedArtifact.Builderdocument(Attachment document)The document being referenced, represented as an attachment.RelatedArtifact.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.RelatedArtifact.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected RelatedArtifact.Builderfrom(RelatedArtifact relatedArtifact)RelatedArtifact.Builderid(String id)Unique id for the element within a resource (for internal references).RelatedArtifact.Builderlabel(String label)A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.RelatedArtifact.Builderresource(Canonical resource)The related resource, such as a library, value set, profile, or other knowledge resource.RelatedArtifact.Buildertype(RelatedArtifactType type)The type of relationship to the related artifact.RelatedArtifact.Builderurl(Url url)A url for the artifact that can be followed to access the actual content.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public RelatedArtifact.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public RelatedArtifact.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. 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 classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public RelatedArtifact.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. 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 classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
type
public RelatedArtifact.Builder type(RelatedArtifactType type)
The type of relationship to the related artifact.This element is required.
- Parameters:
type- documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of- Returns:
- A reference to this Builder instance
-
label
public RelatedArtifact.Builder label(String label)
A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.- Parameters:
label- Short label- Returns:
- A reference to this Builder instance
-
display
public RelatedArtifact.Builder display(String display)
A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.- Parameters:
display- Brief description of the related artifact- Returns:
- A reference to this Builder instance
-
citation
public RelatedArtifact.Builder citation(Markdown citation)
A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format.- Parameters:
citation- Bibliographic citation for the artifact- Returns:
- A reference to this Builder instance
-
url
public RelatedArtifact.Builder url(Url url)
A url for the artifact that can be followed to access the actual content.- Parameters:
url- Where the artifact can be accessed- Returns:
- A reference to this Builder instance
-
document
public RelatedArtifact.Builder document(Attachment document)
The document being referenced, represented as an attachment. This is exclusive with the resource element.- Parameters:
document- What document is being referenced- Returns:
- A reference to this Builder instance
-
resource
public RelatedArtifact.Builder resource(Canonical resource)
The related resource, such as a library, value set, profile, or other knowledge resource.- Parameters:
resource- What resource is being referenced- Returns:
- A reference to this Builder instance
-
build
public RelatedArtifact build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
RelatedArtifact - Throws:
IllegalStateException- if the current state cannot be built into a valid RelatedArtifact per the base specification
-
from
protected RelatedArtifact.Builder from(RelatedArtifact relatedArtifact)
-
-