Package com.ibm.fhir.model.type
Class Element.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- Direct Known Subclasses:
Address.Builder,Annotation.Builder,Attachment.Builder,BackboneElement.Builder,Base64Binary.Builder,Boolean.Builder,CodeableConcept.Builder,Coding.Builder,ContactDetail.Builder,ContactPoint.Builder,Contributor.Builder,DataRequirement.Builder,Date.Builder,DateTime.Builder,Decimal.Builder,Expression.Builder,Extension.Builder,HumanName.Builder,Identifier.Builder,Instant.Builder,Integer.Builder,Meta.Builder,Money.Builder,Narrative.Builder,ParameterDefinition.Builder,Period.Builder,Quantity.Builder,Range.Builder,Ratio.Builder,Reference.Builder,RelatedArtifact.Builder,SampledData.Builder,Signature.Builder,String.Builder,Time.Builder,TriggerDefinition.Builder,Uri.Builder,UsageContext.Builder,Xhtml.Builder
- Enclosing class:
- Element
public abstract static class Element.Builder extends AbstractBuilder<Element>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Elementbuild()Element.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.Element.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected Element.Builderfrom(Element element)Element.Builderid(String id)Unique id for the element within a resource (for internal references).
-
-
-
Method Detail
-
id
public Element.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.- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public Element.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
- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Element.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
- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
build
public abstract Element build()
-
from
protected Element.Builder from(Element element)
-
-