Class FHIRPathAbstractNode

    • Field Detail

      • name

        protected final java.lang.String name
      • path

        protected final java.lang.String path
      • children

        protected final java.util.Collection<FHIRPathNode> children
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: FHIRPathNode
        The name (label) of this FHIRPathNode
        Specified by:
        name in interface FHIRPathNode
        Returns:
        the name of this FHIRPathNode if exists, otherwise null
      • path

        public java.lang.String path()
        Description copied from interface: FHIRPathNode
        The path of this FHIRPathNode
        Specified by:
        path in interface FHIRPathNode
        Returns:
        the path of this FHIRPathNode if exists, otherwise null
      • type

        public FHIRPathType type()
        Description copied from interface: FHIRPathNode
        The type of this FHIRPathNode
        Specified by:
        type in interface FHIRPathNode
        Returns:
        the type of this FHIRPathNode
      • hasValue

        public boolean hasValue()
        Description copied from interface: FHIRPathNode
        Indicates whether this FHIRPathNode has a child system value
        Specified by:
        hasValue in interface FHIRPathNode
        Returns:
        true if this FHIRPathNode has a child system value, otherwise false
      • getValue

        public FHIRPathSystemValue getValue()
        Description copied from interface: FHIRPathNode
        The child system value of this FHIRPathNode
        Specified by:
        getValue in interface FHIRPathNode
        Returns:
        the child system value of this FHIRPathNode, otherwise null
      • children

        public java.util.Collection<FHIRPathNode> children()
        Description copied from interface: FHIRPathNode
        The child nodes of this FHIRPathNode
        Specified by:
        children in interface FHIRPathNode
        Returns:
        a collection of child nodes for this FHIRPathNode if exists, otherwise empty collection
      • descendants

        public java.util.Collection<FHIRPathNode> descendants()
        Description copied from interface: FHIRPathNode
        A collection of descendant nodes of this FHIRPathNode
        Specified by:
        descendants in interface FHIRPathNode
        Returns:
        a collection of descendant nodes of this FHIRPathNode if exists, otherwise empty collection
      • stream

        public java.util.stream.Stream<FHIRPathNode> stream()
        Description copied from interface: FHIRPathNode
        A stream-based view of this FHIRPathNode and all of its descendants
        Specified by:
        stream in interface FHIRPathNode
        Returns:
        A stream containing this FHIRPathNode and all of its descendants
      • is

        public final <T extends FHIRPathNode> boolean is​(java.lang.Class<T> nodeType)
        Description copied from interface: FHIRPathNode
        Indicates whether this FHIRPathNode is type compatible with the parameter
        Specified by:
        is in interface FHIRPathNode
        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

        public final <T extends FHIRPathNode> T as​(java.lang.Class<T> nodeType)
        Description copied from interface: FHIRPathNode
        Cast this FHIRPathNode to the type specified in the parameter
        Specified by:
        as in interface FHIRPathNode
        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