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.Link
build()
Build theGraphDefinition.Link
GraphDefinition.Link.Builder
description(java.lang.String description)
Convenience method for settingdescription
.GraphDefinition.Link.Builder
description(String description)
Information about why this link is of interest in this graph definition.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.GraphDefinition.Link.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.protected GraphDefinition.Link.Builder
from(GraphDefinition.Link link)
GraphDefinition.Link.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).GraphDefinition.Link.Builder
max(java.lang.String max)
Convenience method for settingmax
.GraphDefinition.Link.Builder
max(String max)
Maximum occurrences for this link.GraphDefinition.Link.Builder
min(java.lang.Integer min)
Convenience method for settingmin
.GraphDefinition.Link.Builder
min(Integer min)
Minimum occurrences for this link.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.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.GraphDefinition.Link.Builder
path(java.lang.String path)
Convenience method for settingpath
.GraphDefinition.Link.Builder
path(String path)
A FHIR expression that identifies one of FHIR References to other resources.GraphDefinition.Link.Builder
sliceName(java.lang.String sliceName)
Convenience method for settingsliceName
.GraphDefinition.Link.Builder
sliceName(String sliceName)
Which slice (if profiled).GraphDefinition.Link.Builder
target(java.util.Collection<GraphDefinition.Link.Target> target)
Potential target for the link.GraphDefinition.Link.Builder
target(GraphDefinition.Link.Target... target)
Potential target for the link.protected void
validate(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:
id
in 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:
extension
in 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:
extension
in 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:
modifierExtension
in 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:
modifierExtension
in 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:
build
in interfaceBuilder<Element>
- Specified by:
build
in 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)
-
-