Package org.linuxforhealth.fhir.path
Class FHIRPathResourceNode
- java.lang.Object
-
- org.linuxforhealth.fhir.path.FHIRPathAbstractNode
-
- org.linuxforhealth.fhir.path.FHIRPathResourceNode
-
- All Implemented Interfaces:
java.lang.Comparable<FHIRPathNode>
,FHIRPathNode
public class FHIRPathResourceNode extends FHIRPathAbstractNode
AFHIRPathNode
that wraps aResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FHIRPathResourceNode.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(FHIRPathNodeVisitor visitor)
A method for accepting aFHIRPathNodeVisitor
static FHIRPathResourceNode.Builder
builder(Resource resource)
Static factory method for creating builder instances from aResource
int
compareTo(FHIRPathNode node)
This method is not supported for this FHIRPathResourceNodeboolean
equals(java.lang.Object obj)
Indicates whether this FHIRPathResourceNode is equal to the parameterFHIRPathTree
getTree()
TheFHIRPathTree
that contains this FHIRPathResourceNodeint
hashCode()
boolean
isResourceNode()
Indicates whether this FHIRPathNode is type compatible withFHIRPathResourceNode
Resource
resource()
TheResource
wrapped by this FHIRPathResourceNodestatic FHIRPathResourceNode
resourceNode(java.lang.String name, Resource resource)
Static factory method for creating named FHIRPathResourceNode instances from aResource
static FHIRPathResourceNode
resourceNode(Resource resource)
Static factory method for creating FHIRPathResourceNode instances from aResource
static FHIRPathResourceNode
resourceNode(FHIRPathType type)
Static factory method for creating FHIRPathResourceNode instances from aFHIRPathType
FHIRPathResourceNode.Builder
toBuilder()
Convert thisFHIRPathNode
instance into aFHIRPathNode.Builder
instance-
Methods inherited from class org.linuxforhealth.fhir.path.FHIRPathAbstractNode
as, children, descendants, getValue, hasValue, is, name, path, stream, type
-
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.linuxforhealth.fhir.path.FHIRPathNode
asElementNode, asResourceNode, asSystemValue, asTermServiceNode, asTypeInfoNode, isComparableTo, isElementNode, isSystemValue, isTermServiceNode, isTypeInfoNode
-
-
-
-
Method Detail
-
isResourceNode
public boolean isResourceNode()
Description copied from interface:FHIRPathNode
Indicates whether this FHIRPathNode is type compatible withFHIRPathResourceNode
- Returns:
- true if this FHIRPathNode is type compatible with
FHIRPathResourceNode
, otherwise false
-
resource
public Resource resource()
TheResource
wrapped by this FHIRPathResourceNode- Returns:
- the
Resource
wrapped by this FHIRPathResourceNode
-
getTree
public FHIRPathTree getTree()
TheFHIRPathTree
that contains this FHIRPathResourceNode- Returns:
- the
FHIRPathTree
that contains this FHIRPathResourceNode, otherwise null
-
resourceNode
public static FHIRPathResourceNode resourceNode(Resource resource)
Static factory method for creating FHIRPathResourceNode instances from aResource
- Parameters:
resource
- the resource- Returns:
- a new FHIRPathResource instance
-
resourceNode
public static FHIRPathResourceNode resourceNode(java.lang.String name, Resource resource)
Static factory method for creating named FHIRPathResourceNode instances from aResource
- Parameters:
name
- the nameresource
- the resource- Returns:
- a new FHIRPathResourceNode instance
-
resourceNode
public static FHIRPathResourceNode resourceNode(FHIRPathType type)
Static factory method for creating FHIRPathResourceNode instances from aFHIRPathType
- Parameters:
type
- the type- Returns:
- a new FHIRPathResourceNode instance
-
toBuilder
public FHIRPathResourceNode.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
-
builder
public static FHIRPathResourceNode.Builder builder(Resource resource)
Static factory method for creating builder instances from aResource
- Parameters:
resource
- the resource- Returns:
- a new builder for building FHIRPathResource instances
-
compareTo
public int compareTo(FHIRPathNode node)
This method is not supported for this FHIRPathResourceNode
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether this FHIRPathResourceNode is equal to the parameter
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
accept
public void accept(FHIRPathNodeVisitor visitor)
Description copied from interface:FHIRPathNode
A method for accepting aFHIRPathNodeVisitor
- Parameters:
visitor
- theFHIRPathNodeVisitor
that this FHIRPathNode is accepting
-
-