Class GraphDefinition.Link.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Element>
-
- org.linuxforhealth.fhir.model.type.Element.Builder
-
- org.linuxforhealth.fhir.model.type.BackboneElement.Builder
-
- org.linuxforhealth.fhir.model.resource.GraphDefinition.Link.Builder
-
- Enclosing class:
- GraphDefinition.Link
public static class GraphDefinition.Link.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphDefinition.Linkbuild()Build theGraphDefinition.LinkGraphDefinition.Link.Builderdescription(java.lang.String description)Convenience method for settingdescription.GraphDefinition.Link.Builderdescription(String description)Information about why this link is of interest in this graph definition.GraphDefinition.Link.Builderextension(java.util.Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.GraphDefinition.Link.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.protected GraphDefinition.Link.Builderfrom(GraphDefinition.Link link)GraphDefinition.Link.Builderid(java.lang.String id)Unique id for the element within a resource (for internal references).GraphDefinition.Link.Buildermax(java.lang.String max)Convenience method for settingmax.GraphDefinition.Link.Buildermax(String max)Maximum occurrences for this link.GraphDefinition.Link.Buildermin(java.lang.Integer min)Convenience method for settingmin.GraphDefinition.Link.Buildermin(Integer min)Minimum occurrences for this link.GraphDefinition.Link.BuildermodifierExtension(java.util.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.GraphDefinition.Link.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.GraphDefinition.Link.Builderpath(java.lang.String path)Convenience method for settingpath.GraphDefinition.Link.Builderpath(String path)A FHIR expression that identifies one of FHIR References to other resources.GraphDefinition.Link.BuildersliceName(java.lang.String sliceName)Convenience method for settingsliceName.GraphDefinition.Link.BuildersliceName(String sliceName)Which slice (if profiled).GraphDefinition.Link.Buildertarget(java.util.Collection<GraphDefinition.Link.Target> target)Potential target for the link.GraphDefinition.Link.Buildertarget(GraphDefinition.Link.Target... target)Potential target for the link.protected voidvalidate(GraphDefinition.Link link)-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public GraphDefinition.Link.Builder id(java.lang.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 GraphDefinition.Link.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. If any of the elements are null, calling
build()will fail.- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public GraphDefinition.Link.Builder extension(java.util.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. If any of the elements are null, calling
build()will fail.- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
modifierExtension
public GraphDefinition.Link.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. If any of the elements are null, calling
build()will fail.- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public GraphDefinition.Link.Builder modifierExtension(java.util.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. If any of the elements are null, calling
build()will fail.- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
path
public GraphDefinition.Link.Builder path(java.lang.String path)
Convenience method for settingpath.- Parameters:
path- Path in the resource that contains the link- Returns:
- A reference to this Builder instance
- See Also:
path(org.linuxforhealth.fhir.model.type.String)
-
path
public GraphDefinition.Link.Builder path(String path)
A FHIR expression that identifies one of FHIR References to other resources.- Parameters:
path- Path in the resource that contains the link- Returns:
- A reference to this Builder instance
-
sliceName
public GraphDefinition.Link.Builder sliceName(java.lang.String sliceName)
Convenience method for settingsliceName.- Parameters:
sliceName- Which slice (if profiled)- Returns:
- A reference to this Builder instance
- See Also:
sliceName(org.linuxforhealth.fhir.model.type.String)
-
sliceName
public GraphDefinition.Link.Builder sliceName(String sliceName)
Which slice (if profiled).- Parameters:
sliceName- Which slice (if profiled)- Returns:
- A reference to this Builder instance
-
min
public GraphDefinition.Link.Builder min(java.lang.Integer min)
Convenience method for settingmin.- Parameters:
min- Minimum occurrences for this link- Returns:
- A reference to this Builder instance
- See Also:
min(org.linuxforhealth.fhir.model.type.Integer)
-
min
public GraphDefinition.Link.Builder min(Integer min)
Minimum occurrences for this link.- Parameters:
min- Minimum occurrences for this link- Returns:
- A reference to this Builder instance
-
max
public GraphDefinition.Link.Builder max(java.lang.String max)
Convenience method for settingmax.- Parameters:
max- Maximum occurrences for this link- Returns:
- A reference to this Builder instance
- See Also:
max(org.linuxforhealth.fhir.model.type.String)
-
max
public GraphDefinition.Link.Builder max(String max)
Maximum occurrences for this link.- Parameters:
max- Maximum occurrences for this link- Returns:
- A reference to this Builder instance
-
description
public GraphDefinition.Link.Builder description(java.lang.String description)
Convenience method for settingdescription.- Parameters:
description- Why this link is specified- Returns:
- A reference to this Builder instance
- See Also:
description(org.linuxforhealth.fhir.model.type.String)
-
description
public GraphDefinition.Link.Builder description(String description)
Information about why this link is of interest in this graph definition.- Parameters:
description- Why this link is specified- Returns:
- A reference to this Builder instance
-
target
public GraphDefinition.Link.Builder target(GraphDefinition.Link.Target... target)
Potential target for the link.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
target- Potential target for the link- Returns:
- A reference to this Builder instance
-
target
public GraphDefinition.Link.Builder target(java.util.Collection<GraphDefinition.Link.Target> target)
Potential target for the link.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()will fail.- Parameters:
target- Potential target for the link- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
build
public GraphDefinition.Link build()
Build theGraphDefinition.Link- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
GraphDefinition.Link - Throws:
java.lang.IllegalStateException- if the current state cannot be built into a valid Link per the base specification
-
validate
protected void validate(GraphDefinition.Link link)
-
from
protected GraphDefinition.Link.Builder from(GraphDefinition.Link link)
-
-