Package com.ibm.fhir.model.type
Class Oid.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Uri.Builder
-
- com.ibm.fhir.model.type.Oid.Builder
-
- Enclosing class:
- Oid
public static class Oid.Builder extends Uri.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Uri.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 Oidbuild()Build theOidOid.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the resource.Oid.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the resource.protected Oid.Builderfrom(Oid oid)Oid.Builderid(String id)unique id for the element within a resource (for internal references)Oid.Buildervalue(String value)Primitive value for oid-
Methods inherited from class com.ibm.fhir.model.type.Uri.Builder
from
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Oid.Builder id(String id)
unique id for the element within a resource (for internal references)- Overrides:
idin classUri.Builder- Parameters:
id- xml:id (or equivalent in JSON)- Returns:
- A reference to this Builder instance
-
extension
public Oid.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 classUri.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Oid.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 classUri.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
value
public Oid.Builder value(String value)
Primitive value for oid- Overrides:
valuein classUri.Builder- Parameters:
value- Primitive value for oid- Returns:
- A reference to this Builder instance
-
build
public Oid build()
Build theOid- Specified by:
buildin interfaceBuilder<Element>- Overrides:
buildin classUri.Builder- Returns:
- An immutable object of type
Oid - Throws:
IllegalStateException- if the current state cannot be built into a valid Oid per the base specification
-
from
protected Oid.Builder from(Oid oid)
-
-