Package com.ibm.fhir.model.type
Class Contributor.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Contributor.Builder
-
- Enclosing class:
- Contributor
public static class Contributor.Builder extends Element.Builder
-
-
Field Summary
-
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 Contributorbuild()Build theContributorContributor.Buildercontact(ContactDetail... contact)Contact details to assist a user in finding and communicating with the contributor.Contributor.Buildercontact(Collection<ContactDetail> contact)Contact details to assist a user in finding and communicating with the contributor.Contributor.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.Contributor.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected Contributor.Builderfrom(Contributor contributor)Contributor.Builderid(String id)Unique id for the element within a resource (for internal references).Contributor.Buildername(String name)The name of the individual or organization responsible for the contribution.Contributor.Buildertype(ContributorType type)The type of contributor.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Contributor.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 classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public Contributor.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 classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Contributor.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 classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
type
public Contributor.Builder type(ContributorType type)
The type of contributor.This element is required.
- Parameters:
type- author | editor | reviewer | endorser- Returns:
- A reference to this Builder instance
-
name
public Contributor.Builder name(String name)
The name of the individual or organization responsible for the contribution.This element is required.
- Parameters:
name- Who contributed the content- Returns:
- A reference to this Builder instance
-
contact
public Contributor.Builder contact(ContactDetail... contact)
Contact details to assist a user in finding and communicating with the contributor.Adds new element(s) to the existing list
- Parameters:
contact- Contact details of the contributor- Returns:
- A reference to this Builder instance
-
contact
public Contributor.Builder contact(Collection<ContactDetail> contact)
Contact details to assist a user in finding and communicating with the contributor.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
contact- Contact details of the contributor- Returns:
- A reference to this Builder instance
-
build
public Contributor build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
Contributor - Throws:
IllegalStateException- if the current state cannot be built into a valid Contributor per the base specification
-
from
protected Contributor.Builder from(Contributor contributor)
-
-