Package com.ibm.fhir.path
Class FHIRPathAbstractTemporalValue.Builder
- java.lang.Object
-
- com.ibm.fhir.path.FHIRPathAbstractNode.Builder
-
- com.ibm.fhir.path.FHIRPathAbstractTemporalValue.Builder
-
- All Implemented Interfaces:
FHIRPathNode.Builder
- Direct Known Subclasses:
FHIRPathDateTimeValue.Builder
,FHIRPathDateValue.Builder
,FHIRPathTimeValue.Builder
- Enclosing class:
- FHIRPathAbstractTemporalValue
public abstract static class FHIRPathAbstractTemporalValue.Builder extends FHIRPathAbstractNode.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected ChronoField
precision
protected TemporalAccessor
temporalAccessor
protected String
text
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(FHIRPathType type, TemporalAccessor temporalAccessor, ChronoField precision)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FHIRPathTemporalValue
build()
Build a FHIRPathNode using this builderFHIRPathAbstractTemporalValue.Builder
children(FHIRPathNode... children)
Child nodes of the FHIRPathNodeFHIRPathAbstractTemporalValue.Builder
children(Collection<FHIRPathNode> children)
Child nodes of the FHIRPathNodeFHIRPathAbstractTemporalValue.Builder
name(String name)
The name of the FHIRPathNodeFHIRPathAbstractTemporalValue.Builder
path(String path)
The path of the FHIRPathNodeFHIRPathAbstractTemporalValue.Builder
text(String text)
FHIRPathAbstractTemporalValue.Builder
value(FHIRPathSystemValue value)
The primitive value of the FHIRPathNode
-
-
-
Field Detail
-
temporalAccessor
protected final TemporalAccessor temporalAccessor
-
precision
protected final ChronoField precision
-
text
protected String text
-
-
Constructor Detail
-
Builder
protected Builder(FHIRPathType type, TemporalAccessor temporalAccessor, ChronoField precision)
-
-
Method Detail
-
name
public FHIRPathAbstractTemporalValue.Builder name(String name)
Description copied from interface:FHIRPathNode.Builder
The name of the FHIRPathNode- Specified by:
name
in interfaceFHIRPathNode.Builder
- Overrides:
name
in classFHIRPathAbstractNode.Builder
- Parameters:
name
- the name of the FHIRPathNode- Returns:
- A reference to this builder instance
-
path
public FHIRPathAbstractTemporalValue.Builder path(String path)
Description copied from interface:FHIRPathNode.Builder
The path of the FHIRPathNode- Specified by:
path
in interfaceFHIRPathNode.Builder
- Overrides:
path
in classFHIRPathAbstractNode.Builder
- Parameters:
path
- the path of the FHIRPathNode- Returns:
- A reference to this builder instance
-
value
public FHIRPathAbstractTemporalValue.Builder value(FHIRPathSystemValue value)
Description copied from interface:FHIRPathNode.Builder
The primitive value of the FHIRPathNode- Specified by:
value
in interfaceFHIRPathNode.Builder
- Overrides:
value
in classFHIRPathAbstractNode.Builder
- Returns:
- A reference to this builder instance
-
children
public FHIRPathAbstractTemporalValue.Builder children(FHIRPathNode... children)
Description copied from interface:FHIRPathNode.Builder
Child nodes of the FHIRPathNode- Specified by:
children
in interfaceFHIRPathNode.Builder
- Overrides:
children
in classFHIRPathAbstractNode.Builder
- Returns:
- A reference to this builder instance
-
children
public FHIRPathAbstractTemporalValue.Builder children(Collection<FHIRPathNode> children)
Description copied from interface:FHIRPathNode.Builder
Child nodes of the FHIRPathNode- Specified by:
children
in interfaceFHIRPathNode.Builder
- Overrides:
children
in classFHIRPathAbstractNode.Builder
- Returns:
- A reference to this builder instance
-
text
public FHIRPathAbstractTemporalValue.Builder text(String text)
-
build
public abstract FHIRPathTemporalValue build()
Description copied from interface:FHIRPathNode.Builder
Build a FHIRPathNode using this builder- Specified by:
build
in interfaceFHIRPathNode.Builder
- Specified by:
build
in classFHIRPathAbstractNode.Builder
- Returns:
- a new FHIRPathNode instance
-
-