Package com.ibm.fhir.path
Interface FHIRPathTemporalValue
-
- All Superinterfaces:
Comparable<FHIRPathNode>,FHIRPathNode,FHIRPathSystemValue
- All Known Implementing Classes:
FHIRPathAbstractTemporalValue,FHIRPathDateTimeValue,FHIRPathDateValue,FHIRPathTimeValue
public interface FHIRPathTemporalValue extends FHIRPathSystemValue
AFHIRPathSystemValuethat wraps a temporal value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.fhir.path.FHIRPathNode
FHIRPathNode.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FHIRPathTemporalValueadd(FHIRPathQuantityValue quantityValue)Add a quantity value to this FHIRPathTemporalValuedefault FHIRPathDateTimeValueasDateTimeValue()Cast this FHIRPathTemporalValue to aFHIRPathDateTimeValuedefault FHIRPathDateValueasDateValue()Cast this FHIRPathTemporalValue to aFHIRPathDateValuedefault FHIRPathTimeValueasTimeValue()Cast this FHIRPathTemporalValue to aFHIRPathTimeValueStringgetText()The text that this FHIRPathTemporalValue was parsed from (if applicable)default booleanisDateTimeValue()Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathDateTimeValuedefault booleanisDateValue()Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathDateValuebooleanisPartial()Indicates whether the date/time value wrapped by this FHIRPathTemporalValue node is partialbooleanisSupported(ChronoField field)Indicates whether the specified field is supported by this FHIRPathTemporalValuedefault booleanisTemporalValue()Indicates whether this FHIRPathSystemValue is type compatible withFHIRPathTemporalValuedefault booleanisTimeValue()Indicates whether this FHIRPathTemporalValue is type compatible withFHIRPathTimeValueChronoFieldprecision()The precision of this FHIRPathTemporalValueFHIRPathTemporalValuesubtract(FHIRPathQuantityValue quantityValue)Subtract a quantity value from this FHIRPathTemporalValueTemporaltemporal()TheTemporalvalue wrapped by this FHIRPathTemporalValueTemporalAccessortemporalAccessor()TheTemporalAcessorvalue wrapped by this FHIRPathTemporalValue-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.ibm.fhir.path.FHIRPathNode
accept, as, asElementNode, asResourceNode, asSystemValue, asTermServiceNode, asTypeInfoNode, children, descendants, getValue, is, isComparableTo, isElementNode, isResourceNode, isTermServiceNode, isTypeInfoNode, name, path, stream, type
-
Methods inherited from interface com.ibm.fhir.path.FHIRPathSystemValue
asBooleanValue, asNumberValue, asQuantityValue, asStringValue, asTemporalValue, hasValue, isBooleanValue, isNumberValue, isQuantityValue, isStringValue, isSystemValue
-
-
-
-
Method Detail
-
isTemporalValue
default boolean isTemporalValue()
Description copied from interface:FHIRPathSystemValueIndicates whether this FHIRPathSystemValue is type compatible withFHIRPathTemporalValue- Specified by:
isTemporalValuein 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
TemporalAccessor temporalAccessor()
TheTemporalAcessorvalue wrapped by this FHIRPathTemporalValue- Returns:
- the
TemporalAccessorvalue wrapped by this FHIRPathTemporalValue
-
temporal
Temporal temporal()
TheTemporalvalue wrapped by this FHIRPathTemporalValue- Returns:
- the
Temporalvalue wrapped by this FHIRPathTemporalValue
-
precision
ChronoField precision()
The precision of this FHIRPathTemporalValue- Returns:
- the precision of this FHIRPathTemporalValue
-
getText
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(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
-
-