Interface FHIRPathNode

    • Method Detail

      • name

        java.lang.String name()
        The name (label) of this FHIRPathNode
        Returns:
        the name of this FHIRPathNode if exists, otherwise null
      • path

        java.lang.String path()
        The path of this FHIRPathNode
        Returns:
        the path of this FHIRPathNode if exists, otherwise null
      • type

        FHIRPathType type()
        The type of this FHIRPathNode
        Returns:
        the type of this FHIRPathNode
      • hasValue

        boolean hasValue()
        Indicates whether this FHIRPathNode has a child system value
        Returns:
        true if this FHIRPathNode has a child system value, otherwise false
      • getValue

        FHIRPathSystemValue getValue()
        The child system value of this FHIRPathNode
        Returns:
        the child system value of this FHIRPathNode, otherwise null
      • children

        java.util.Collection<FHIRPathNode> children()
        The child nodes of this FHIRPathNode
        Returns:
        a collection of child nodes for this FHIRPathNode if exists, otherwise empty collection
      • stream

        java.util.stream.Stream<FHIRPathNode> stream()
        A stream-based view of this FHIRPathNode and all of its descendants
        Returns:
        A stream containing this FHIRPathNode and all of its descendants
      • descendants

        java.util.Collection<FHIRPathNode> descendants()
        A collection of descendant nodes of this FHIRPathNode
        Returns:
        a collection of descendant nodes of this FHIRPathNode if exists, otherwise empty collection
      • isComparableTo

        default boolean isComparableTo​(FHIRPathNode other)
        Indicates whether this FHIRPathNode is comparable to the parameter
        Parameters:
        other - the other FHIRPathNode
        Returns:
        true if this FHIRPathNode is comparable to the parameter, otherwise false
      • is

        <T extends FHIRPathNode> boolean is​(java.lang.Class<T> nodeType)
        Indicates whether this FHIRPathNode is type compatible with the parameter
        Type Parameters:
        T - FHIRPathNode or one of its implementations
        Parameters:
        nodeType - the nodeType we are checking against
        Returns:
        true if this FHIRPathNode is type compatible with nodeType, otherwise false
      • as

        <T extends FHIRPathNode> T as​(java.lang.Class<T> nodeType)
        Cast this FHIRPathNode to the type specified in the parameter
        Type Parameters:
        T - FHIRPathNode or one of its implementations
        Parameters:
        nodeType - the nodeType we are casting to
        Returns:
        this FHIRPathNode cast to the type specified in the parameter
      • isElementNode

        default boolean isElementNode()
        Indicates whether this FHIRPathNode is type compatible with FHIRPathElementNode
        Returns:
        true if this FHIRPathNode is type compatible with FHIRPathElementNode, otherwise false
      • isResourceNode

        default boolean isResourceNode()
        Indicates whether this FHIRPathNode is type compatible with FHIRPathResourceNode
        Returns:
        true if this FHIRPathNode is type compatible with FHIRPathResourceNode, otherwise false
      • isSystemValue

        default boolean isSystemValue()
        Indicates whether this FHIRPathNode is type compatible with FHIRPathSystemValue
        Returns:
        true if this FHIRPathNode is type compatible with FHIRPathSystemValue, otherwise false
      • isTypeInfoNode

        default boolean isTypeInfoNode()
        Indicates whether this FHIRPathNode is type compatible with FHIRPathTypeInfoNode
        Returns:
        true if this FHIRPathNode is type compatible with FHIRPathTypeInfoNode, otherwise false
      • isTermServiceNode

        default boolean isTermServiceNode()
        Indicates whether this FHIRPathNode is type compatible with FHIRPathTermServiceNode
        Returns:
        true if this FHIRPathNode is type compatible with FHIRPathTermServiceNode, otherwise false