Class ProdCharacteristic.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.fhir.model.type.ProdCharacteristic.Builder
-
- Enclosing class:
- ProdCharacteristic
public static class ProdCharacteristic.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
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 ProdCharacteristicbuild()Build theProdCharacteristicProdCharacteristic.Buildercolor(String... color)Where applicable, the color can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.ProdCharacteristic.Buildercolor(Collection<String> color)Where applicable, the color can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.ProdCharacteristic.Builderdepth(Quantity depth)Where applicable, the depth can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.ProdCharacteristic.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.ProdCharacteristic.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.ProdCharacteristic.BuilderexternalDiameter(Quantity externalDiameter)Where applicable, the external diameter can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.protected ProdCharacteristic.Builderfrom(ProdCharacteristic prodCharacteristic)ProdCharacteristic.Builderheight(Quantity height)Where applicable, the height can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.ProdCharacteristic.Builderid(String id)Unique id for the element within a resource (for internal references).ProdCharacteristic.Builderimage(Attachment... image)Where applicable, the image can be provided The format of the image attachment shall be specified by regional implementations.ProdCharacteristic.Builderimage(Collection<Attachment> image)Where applicable, the image can be provided The format of the image attachment shall be specified by regional implementations.ProdCharacteristic.Builderimprint(String... imprint)Where applicable, the imprint can be specified as text.ProdCharacteristic.Builderimprint(Collection<String> imprint)Where applicable, the imprint can be specified as text.ProdCharacteristic.BuildermodifierExtension(Extension... modifierExtension)May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ProdCharacteristic.BuildermodifierExtension(Collection<Extension> modifierExtension)May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.ProdCharacteristic.BuildernominalVolume(Quantity nominalVolume)Where applicable, the nominal volume can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.ProdCharacteristic.Builderscoring(CodeableConcept scoring)Where applicable, the scoring can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.ProdCharacteristic.Buildershape(String shape)Where applicable, the shape can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.ProdCharacteristic.Builderweight(Quantity weight)Where applicable, the weight can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.ProdCharacteristic.Builderwidth(Quantity width)Where applicable, the width can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public ProdCharacteristic.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.- Overrides:
idin classBackboneElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public ProdCharacteristic.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
- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public ProdCharacteristic.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
- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
modifierExtension
public ProdCharacteristic.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Adds new element(s) to the existing list
- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public ProdCharacteristic.Builder modifierExtension(Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Replaces the existing list with a new one containing elements from the Collection
- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
height
public ProdCharacteristic.Builder height(Quantity height)
Where applicable, the height can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.- Parameters:
height- Where applicable, the height can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used- Returns:
- A reference to this Builder instance
-
width
public ProdCharacteristic.Builder width(Quantity width)
Where applicable, the width can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.- Parameters:
width- Where applicable, the width can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used- Returns:
- A reference to this Builder instance
-
depth
public ProdCharacteristic.Builder depth(Quantity depth)
Where applicable, the depth can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.- Parameters:
depth- Where applicable, the depth can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used- Returns:
- A reference to this Builder instance
-
weight
public ProdCharacteristic.Builder weight(Quantity weight)
Where applicable, the weight can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.- Parameters:
weight- Where applicable, the weight can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used- Returns:
- A reference to this Builder instance
-
nominalVolume
public ProdCharacteristic.Builder nominalVolume(Quantity nominalVolume)
Where applicable, the nominal volume can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.- Parameters:
nominalVolume- Where applicable, the nominal volume can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used- Returns:
- A reference to this Builder instance
-
externalDiameter
public ProdCharacteristic.Builder externalDiameter(Quantity externalDiameter)
Where applicable, the external diameter can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.- Parameters:
externalDiameter- Where applicable, the external diameter can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used- Returns:
- A reference to this Builder instance
-
shape
public ProdCharacteristic.Builder shape(String shape)
Where applicable, the shape can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.- Parameters:
shape- Where applicable, the shape can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used- Returns:
- A reference to this Builder instance
-
color
public ProdCharacteristic.Builder color(String... color)
Where applicable, the color can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.Adds new element(s) to the existing list
- Parameters:
color- Where applicable, the color can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used- Returns:
- A reference to this Builder instance
-
color
public ProdCharacteristic.Builder color(Collection<String> color)
Where applicable, the color can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
color- Where applicable, the color can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used- Returns:
- A reference to this Builder instance
-
imprint
public ProdCharacteristic.Builder imprint(String... imprint)
Where applicable, the imprint can be specified as text.Adds new element(s) to the existing list
- Parameters:
imprint- Where applicable, the imprint can be specified as text- Returns:
- A reference to this Builder instance
-
imprint
public ProdCharacteristic.Builder imprint(Collection<String> imprint)
Where applicable, the imprint can be specified as text.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
imprint- Where applicable, the imprint can be specified as text- Returns:
- A reference to this Builder instance
-
image
public ProdCharacteristic.Builder image(Attachment... image)
Where applicable, the image can be provided The format of the image attachment shall be specified by regional implementations.Adds new element(s) to the existing list
- Parameters:
image- Where applicable, the image can be provided The format of the image attachment shall be specified by regional implementations- Returns:
- A reference to this Builder instance
-
image
public ProdCharacteristic.Builder image(Collection<Attachment> image)
Where applicable, the image can be provided The format of the image attachment shall be specified by regional implementations.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
image- Where applicable, the image can be provided The format of the image attachment shall be specified by regional implementations- Returns:
- A reference to this Builder instance
-
scoring
public ProdCharacteristic.Builder scoring(CodeableConcept scoring)
Where applicable, the scoring can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used.- Parameters:
scoring- Where applicable, the scoring can be specified An appropriate controlled vocabulary shall be used The term and the term identifier shall be used- Returns:
- A reference to this Builder instance
-
build
public ProdCharacteristic build()
Build theProdCharacteristic- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
ProdCharacteristic - Throws:
IllegalStateException- if the current state cannot be built into a valid ProdCharacteristic per the base specification
-
from
protected ProdCharacteristic.Builder from(ProdCharacteristic prodCharacteristic)
-
-