Class Xhtml.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Element>
-
- org.linuxforhealth.fhir.model.type.Element.Builder
-
- org.linuxforhealth.fhir.model.type.Xhtml.Builder
-
- Enclosing class:
- Xhtml
public static class Xhtml.Builder extends Element.Builder
-
-
Field Summary
-
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 Xhtml
build()
Build theXhtml
Xhtml.Builder
extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource.Xhtml.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource.protected Xhtml.Builder
from(Xhtml xhtml)
Xhtml.Builder
id(java.lang.String id)
unique id for the element within a resource (for internal references)protected void
validate(Xhtml xhtml)
Xhtml.Builder
value(java.lang.String value)
Actual xhtml-
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 Xhtml.Builder id(java.lang.String id)
unique id for the element within a resource (for internal references)- Overrides:
id
in classElement.Builder
- Parameters:
id
- xml:id (or equivalent in JSON)- Returns:
- A reference to this Builder instance
-
extension
public Xhtml.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource. 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.This element is prohibited.
- Overrides:
extension
in classElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Xhtml.Builder extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource. 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.This element is prohibited.
- Overrides:
extension
in classElement.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
-
value
public Xhtml.Builder value(java.lang.String value)
Actual xhtmlThis element is required.
- Parameters:
value
- Actual xhtml- Returns:
- A reference to this Builder instance
-
build
public Xhtml build()
-
validate
protected void validate(Xhtml xhtml)
-
from
protected Xhtml.Builder from(Xhtml xhtml)
-
-