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