Package com.ibm.fhir.model.type
Class Integer.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Integer.Builder
-
- Direct Known Subclasses:
PositiveInt.Builder,UnsignedInt.Builder
- Enclosing class:
- Integer
public static class Integer.Builder extends Element.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected Integervalue-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerbuild()Build theIntegerInteger.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the resource.Integer.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the resource.protected Integer.Builderfrom(Integer integer)Integer.Builderid(String id)unique id for the element within a resource (for internal references)Integer.Buildervalue(Integer value)The actual valueInteger.Buildervalue(String value)-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Field Detail
-
value
protected Integer value
-
-
Method Detail
-
id
public Integer.Builder id(String id)
unique id for the element within a resource (for internal references)- Overrides:
idin classElement.Builder- Parameters:
id- xml:id (or equivalent in JSON)- Returns:
- A reference to this Builder instance
-
extension
public Integer.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 classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Integer.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 classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
value
public Integer.Builder value(Integer value)
The actual value- Parameters:
value- Primitive value for integer- Returns:
- A reference to this Builder instance
-
value
public Integer.Builder value(String value)
-
build
public Integer build()
Build theInteger- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
Integer - Throws:
IllegalStateException- if the current state cannot be built into a valid Integer per the base specification
-
from
protected Integer.Builder from(Integer integer)
-
-