Package org.linuxforhealth.fhir.path
Interface FHIRPathTemporalValue
-
- All Superinterfaces:
java.lang.Comparable<FHIRPathNode>
,FHIRPathNode
,FHIRPathSystemValue
- All Known Implementing Classes:
FHIRPathAbstractTemporalValue
,FHIRPathDateTimeValue
,FHIRPathDateValue
,FHIRPathTimeValue
public interface FHIRPathTemporalValue extends FHIRPathSystemValue
AFHIRPathSystemValue
that wraps a temporal value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.linuxforhealth.fhir.path.FHIRPathNode
FHIRPathNode.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FHIRPathTemporalValue
add(FHIRPathQuantityValue quantityValue)
Add a quantity value to this FHIRPathTemporalValuedefault FHIRPathDateTimeValue
asDateTimeValue()
Cast this FHIRPathTemporalValue to aFHIRPathDateTimeValue
default FHIRPathDateValue
asDateValue()
Cast this FHIRPathTemporalValue to aFHIRPathDateValue
default FHIRPathTimeValue
asTimeValue()
Cast this FHIRPathTemporalValue to aFHIRPathTimeValue
java.lang.String
getText()
The text that this FHIRPathTemporalValue was parsed from (if applicable)default boolean
isDateTimeValue()
Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathDateTimeValue
default boolean
isDateValue()
Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathDateValue
boolean
isPartial()
Indicates whether the date/time value wrapped by this FHIRPathTemporalValue node is partialboolean
isSupported(java.time.temporal.ChronoField field)
Indicates whether the specified field is supported by this FHIRPathTemporalValuedefault boolean
isTemporalValue()
Indicates whether this FHIRPathSystemValue is type compatible withFHIRPathTemporalValue
default boolean
isTimeValue()
Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathTimeValue
java.time.temporal.ChronoField
precision()
The precision of this FHIRPathTemporalValueFHIRPathTemporalValue
subtract(FHIRPathQuantityValue quantityValue)
Subtract a quantity value from this FHIRPathTemporalValuejava.time.temporal.Temporal
temporal()
TheTemporal
value wrapped by this FHIRPathTemporalValuejava.time.temporal.TemporalAccessor
temporalAccessor()
TheTemporalAcessor
value wrapped by this FHIRPathTemporalValue-
Methods inherited from interface org.linuxforhealth.fhir.path.FHIRPathNode
accept, as, asElementNode, asResourceNode, asSystemValue, asTermServiceNode, asTypeInfoNode, children, descendants, is, isComparableTo, isElementNode, isResourceNode, isTermServiceNode, isTypeInfoNode, name, path, stream, type
-
Methods inherited from interface org.linuxforhealth.fhir.path.FHIRPathSystemValue
asBooleanValue, asNumberValue, asQuantityValue, asStringValue, asTemporalValue, getValue, hasValue, isBooleanValue, isNumberValue, isQuantityValue, isStringValue, isSystemValue
-
-
-
-
Method Detail
-
isTemporalValue
default boolean isTemporalValue()
Description copied from interface:FHIRPathSystemValue
Indicates whether this FHIRPathSystemValue is type compatible withFHIRPathTemporalValue
- Specified by:
isTemporalValue
in interfaceFHIRPathSystemValue
- Returns:
- true if this FHIRPathSystemValue is type compatible with
FHIRPathTemporalValue
, otherwise false
-
isDateValue
default boolean isDateValue()
Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathDateValue
- Returns:
- true if this FHIRPathTemporalValue is type compatible with
FHIRPathDateValue
, otherwise false
-
isDateTimeValue
default boolean isDateTimeValue()
Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathDateTimeValue
- Returns:
- true if this FHIRPathTemporalValue is type compatible with
FHIRPathDateTimeValue
, otherwise false
-
isTimeValue
default boolean isTimeValue()
Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathTimeValue
- Returns:
- true if this FHIRPathTemporalValue is type compatible with
FHIRPathDateValue
, otherwise false
-
temporalAccessor
java.time.temporal.TemporalAccessor temporalAccessor()
TheTemporalAcessor
value wrapped by this FHIRPathTemporalValue- Returns:
- the
TemporalAccessor
value wrapped by this FHIRPathTemporalValue
-
temporal
java.time.temporal.Temporal temporal()
TheTemporal
value wrapped by this FHIRPathTemporalValue- Returns:
- the
Temporal
value wrapped by this FHIRPathTemporalValue
-
precision
java.time.temporal.ChronoField precision()
The precision of this FHIRPathTemporalValue- Returns:
- the precision of this FHIRPathTemporalValue
-
getText
java.lang.String getText()
The text that this FHIRPathTemporalValue was parsed from (if applicable)- Returns:
- the text that this FHIRPathTemporvalValue was parsed from (if applicable), otherwise null
-
isSupported
boolean isSupported(java.time.temporal.ChronoField field)
Indicates whether the specified field is supported by this FHIRPathTemporalValue- Parameters:
field
- the field- Returns:
- true if the specified field is supported by this FHIRPathTemporalValue, otherwise false
-
isPartial
boolean isPartial()
Indicates whether the date/time value wrapped by this FHIRPathTemporalValue node is partial- Returns:
- true if the date/time value wrapped by this FHIRPathTemporalValue node is partial, otherwise false
-
asDateValue
default FHIRPathDateValue asDateValue()
Cast this FHIRPathTemporalValue to aFHIRPathDateValue
- Returns:
- this FHIRPathTemporalValue as a
FHIRPathDateValue
-
asDateTimeValue
default FHIRPathDateTimeValue asDateTimeValue()
Cast this FHIRPathTemporalValue to aFHIRPathDateTimeValue
- Returns:
- this FHIRPathTemporalValue as a
FHIRPathDateTimeValue
-
asTimeValue
default FHIRPathTimeValue asTimeValue()
Cast this FHIRPathTemporalValue to aFHIRPathTimeValue
- Returns:
- this FHIRPathTemporalValue as a
FHIRPathTimeValue
-
add
FHIRPathTemporalValue add(FHIRPathQuantityValue quantityValue)
Add a quantity value to this FHIRPathTemporalValue- Parameters:
quantityValue
- the quantity value to add- Returns:
- the result of adding a quantityValue to this FHIRPathTemporalValue
-
subtract
FHIRPathTemporalValue subtract(FHIRPathQuantityValue quantityValue)
Subtract a quantity value from this FHIRPathTemporalValue- Parameters:
quantityValue
- the quantity value to subtract- Returns:
- the result of subtracting a quantityValue from this FHIRPathTemporalValue
-
-