Class Resource.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Resource>
-
- org.linuxforhealth.fhir.model.resource.Resource.Builder
-
- Direct Known Subclasses:
Binary.Builder
,Bundle.Builder
,DomainResource.Builder
,Parameters.Builder
- Enclosing class:
- Resource
public abstract static class Resource.Builder extends AbstractBuilder<Resource>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
id
protected Uri
implicitRules
protected Code
language
protected Meta
meta
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Resource
build()
protected Resource.Builder
from(Resource resource)
Resource.Builder
id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource.Resource.Builder
implicitRules(Uri implicitRules)
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.Resource.Builder
language(Code language)
The base language in which the resource is written.Resource.Builder
meta(Meta meta)
The metadata about the resource.protected void
validate(Resource resource)
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public Resource.Builder id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.- Parameters:
id
- Logical id of this artifact- Returns:
- A reference to this Builder instance
-
meta
public Resource.Builder meta(Meta meta)
The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.- Parameters:
meta
- Metadata about the resource- Returns:
- A reference to this Builder instance
-
implicitRules
public Resource.Builder implicitRules(Uri implicitRules)
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.- Parameters:
implicitRules
- A set of rules under which this content was created- Returns:
- A reference to this Builder instance
-
language
public Resource.Builder language(Code language)
The base language in which the resource is written.- Parameters:
language
- Language of the resource content- Returns:
- A reference to this Builder instance
-
build
public abstract Resource build()
-
validate
protected void validate(Resource resource)
-
from
protected Resource.Builder from(Resource resource)
-
-