Package com.ibm.fhir.model.type
Class ElementDefinition.Slicing.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.ElementDefinition.Slicing.Builder
-
- Enclosing class:
- ElementDefinition.Slicing
public static class ElementDefinition.Slicing.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 ElementDefinition.Slicingbuild()Build theElementDefinition.SlicingElementDefinition.Slicing.Builderdescription(String description)A human-readable text description of how the slicing works.ElementDefinition.Slicing.Builderdiscriminator(ElementDefinition.Slicing.Discriminator... discriminator)Designates which child elements are used to discriminate between the slices when processing an instance.ElementDefinition.Slicing.Builderdiscriminator(Collection<ElementDefinition.Slicing.Discriminator> discriminator)Designates which child elements are used to discriminate between the slices when processing an instance.ElementDefinition.Slicing.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.ElementDefinition.Slicing.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected ElementDefinition.Slicing.Builderfrom(ElementDefinition.Slicing slicing)ElementDefinition.Slicing.Builderid(String id)Unique id for the element within a resource (for internal references).ElementDefinition.Slicing.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.ElementDefinition.Slicing.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.ElementDefinition.Slicing.Builderordered(Boolean ordered)If the matching elements have to occur in the same order as defined in the profile.ElementDefinition.Slicing.Builderrules(SlicingRules rules)Whether additional slices are allowed or not.-
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 ElementDefinition.Slicing.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 ElementDefinition.Slicing.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 ElementDefinition.Slicing.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 ElementDefinition.Slicing.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.\n\nModifier 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 ElementDefinition.Slicing.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.\n\nModifier 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
-
discriminator
public ElementDefinition.Slicing.Builder discriminator(ElementDefinition.Slicing.Discriminator... discriminator)
Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.Adds new element(s) to the existing list
- Parameters:
discriminator- Element values that are used to distinguish the slices- Returns:
- A reference to this Builder instance
-
discriminator
public ElementDefinition.Slicing.Builder discriminator(Collection<ElementDefinition.Slicing.Discriminator> discriminator)
Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
discriminator- Element values that are used to distinguish the slices- Returns:
- A reference to this Builder instance
-
description
public ElementDefinition.Slicing.Builder description(String description)
A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated.- Parameters:
description- Text description of how slicing works (or not)- Returns:
- A reference to this Builder instance
-
ordered
public ElementDefinition.Slicing.Builder ordered(Boolean ordered)
If the matching elements have to occur in the same order as defined in the profile.- Parameters:
ordered- If elements must be in same order as slices- Returns:
- A reference to this Builder instance
-
rules
public ElementDefinition.Slicing.Builder rules(SlicingRules rules)
Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.This element is required.
- Parameters:
rules- closed | open | openAtEnd- Returns:
- A reference to this Builder instance
-
build
public ElementDefinition.Slicing build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
ElementDefinition.Slicing - Throws:
IllegalStateException- if the current state cannot be built into a valid Slicing per the base specification
-
from
protected ElementDefinition.Slicing.Builder from(ElementDefinition.Slicing slicing)
-
-