Class RelatedArtifactBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.RelatedArtifactBuilder.Impl
-
- All Implemented Interfaces:
ElementBuilder,RelatedArtifactBuilder
- Enclosing interface:
- RelatedArtifactBuilder
public static class RelatedArtifactBuilder.Impl extends java.lang.Object implements RelatedArtifactBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.RelatedArtifactBuilder
RelatedArtifactBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.core.RELATED_ARTIFACT_TYPE _type)Required fields forRelatedArtifact
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.RelatedArtifactbuild()RelatedArtifactBuilder.ImplwithCitation(@NonNull java.lang.String citation)RelatedArtifactBuilder.ImplwithDisplay(@NonNull java.lang.String display)RelatedArtifactBuilder.ImplwithDocument(@NonNull AttachmentBuilder document)RelatedArtifactBuilder.ImplwithDocument(@NonNull com.babylonhealth.lit.core.model.Attachment document)RelatedArtifactBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)RelatedArtifactBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)RelatedArtifactBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)RelatedArtifactBuilder.ImplwithId(@NonNull java.lang.String id)RelatedArtifactBuilder.ImplwithLabel(@NonNull java.lang.String label)RelatedArtifactBuilder.ImplwithResource(@NonNull java.lang.String resource)RelatedArtifactBuilder.ImplwithUrl(@NonNull java.lang.String url)
-
-
-
Method Detail
-
withId
public RelatedArtifactBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
-
withUrl
public RelatedArtifactBuilder.Impl withUrl(@NonNull @NonNull java.lang.String url)
- Parameters:
url- - A url for the artifact that can be followed to access the actual content.
-
withLabel
public RelatedArtifactBuilder.Impl withLabel(@NonNull @NonNull java.lang.String label)
- Parameters:
label- - A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.
-
withDisplay
public RelatedArtifactBuilder.Impl withDisplay(@NonNull @NonNull java.lang.String display)
- Parameters:
display- - A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.
-
withCitation
public RelatedArtifactBuilder.Impl withCitation(@NonNull @NonNull java.lang.String citation)
- Parameters:
citation- - A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format.
-
withDocument
public RelatedArtifactBuilder.Impl withDocument(@NonNull @NonNull com.babylonhealth.lit.core.model.Attachment document)
- Parameters:
document- - The document being referenced, represented as an attachment. This is exclusive with the resource element.
-
withDocument
public RelatedArtifactBuilder.Impl withDocument(@NonNull @NonNull AttachmentBuilder document)
-
withResource
public RelatedArtifactBuilder.Impl withResource(@NonNull @NonNull java.lang.String resource)
- Parameters:
resource- - The related resource, such as a library, value set, profile, or other knowledge resource.
-
withExtension
public RelatedArtifactBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
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.
-
withExtension
public RelatedArtifactBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
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.
-
withExtension
public RelatedArtifactBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... extension)
-
build
public com.babylonhealth.lit.core.model.RelatedArtifact build()
- Specified by:
buildin interfaceElementBuilder- Specified by:
buildin interfaceRelatedArtifactBuilder
-
-