Package com.ibm.fhir.path
Class FHIRPathAbstractSystemValue
- java.lang.Object
-
- com.ibm.fhir.path.FHIRPathAbstractNode
-
- com.ibm.fhir.path.FHIRPathAbstractSystemValue
-
- All Implemented Interfaces:
FHIRPathNode
,FHIRPathSystemValue
,java.lang.Comparable<FHIRPathNode>
- Direct Known Subclasses:
FHIRPathAbstractTemporalValue
,FHIRPathBooleanValue
,FHIRPathDecimalValue
,FHIRPathIntegerValue
,FHIRPathQuantityValue
,FHIRPathStringValue
public abstract class FHIRPathAbstractSystemValue extends FHIRPathAbstractNode implements FHIRPathSystemValue
Abstract base class for allFHIRPathSystemValue
implementationsFHIRPathSystemValue
is a terminalFHIRPathNode
and implementations will never have a child system value, children, or descendants.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FHIRPathAbstractSystemValue.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
FHIRPathAbstractSystemValue(FHIRPathAbstractSystemValue.Builder builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Collection<FHIRPathNode>
children()
This method always returns an emptyCollection
java.util.Collection<FHIRPathNode>
descendants()
This method always returns an emptyCollection
FHIRPathSystemValue
getValue()
This method always returns nullboolean
hasValue()
This method always returns falsejava.util.stream.Stream<FHIRPathNode>
stream()
This method always returns an emptyStream
abstract FHIRPathAbstractSystemValue.Builder
toBuilder()
Convert thisFHIRPathNode
instance into aFHIRPathNode.Builder
instance-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.path.FHIRPathNode
accept, as, asElementNode, asResourceNode, asSystemValue, asTermServiceNode, asTypeInfoNode, is, isComparableTo, isElementNode, isResourceNode, isTermServiceNode, isTypeInfoNode, name, path, type
-
Methods inherited from interface com.ibm.fhir.path.FHIRPathSystemValue
asBooleanValue, asNumberValue, asQuantityValue, asStringValue, asTemporalValue, isBooleanValue, isNumberValue, isQuantityValue, isStringValue, isSystemValue, isTemporalValue
-
-
-
-
Constructor Detail
-
FHIRPathAbstractSystemValue
protected FHIRPathAbstractSystemValue(FHIRPathAbstractSystemValue.Builder builder)
-
-
Method Detail
-
hasValue
public final boolean hasValue()
This method always returns false- Specified by:
hasValue
in interfaceFHIRPathNode
- Specified by:
hasValue
in interfaceFHIRPathSystemValue
- Overrides:
hasValue
in classFHIRPathAbstractNode
- Returns:
- false
-
getValue
public final FHIRPathSystemValue getValue()
This method always returns null- Specified by:
getValue
in interfaceFHIRPathNode
- Overrides:
getValue
in classFHIRPathAbstractNode
- Returns:
- null
-
children
public final java.util.Collection<FHIRPathNode> children()
This method always returns an emptyCollection
- Specified by:
children
in interfaceFHIRPathNode
- Overrides:
children
in classFHIRPathAbstractNode
- Returns:
- an empty
Collection
-
stream
public final java.util.stream.Stream<FHIRPathNode> stream()
This method always returns an emptyStream
- Specified by:
stream
in interfaceFHIRPathNode
- Overrides:
stream
in classFHIRPathAbstractNode
- Returns:
- an empty
Stream
-
descendants
public final java.util.Collection<FHIRPathNode> descendants()
This method always returns an emptyCollection
- Specified by:
descendants
in interfaceFHIRPathNode
- Overrides:
descendants
in classFHIRPathAbstractNode
- Returns:
- an empty
Stream
-
toBuilder
public abstract FHIRPathAbstractSystemValue.Builder toBuilder()
Description copied from class:FHIRPathAbstractNode
Convert thisFHIRPathNode
instance into aFHIRPathNode.Builder
instance- Specified by:
toBuilder
in classFHIRPathAbstractNode
- Returns:
- a new
FHIRPathNode.Builder
instance containing the fields from thisFHIRPathNode
instance
-
-