Package com.ibm.fhir.path
Class FHIRPathResourceNode
- java.lang.Object
-
- com.ibm.fhir.path.FHIRPathAbstractNode
-
- com.ibm.fhir.path.FHIRPathResourceNode
-
- All Implemented Interfaces:
FHIRPathNode,java.lang.Comparable<FHIRPathNode>
public class FHIRPathResourceNode extends FHIRPathAbstractNode
AFHIRPathNodethat wraps aResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFHIRPathResourceNode.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(FHIRPathNodeVisitor visitor)A method for accepting aFHIRPathNodeVisitorstatic FHIRPathResourceNode.Builderbuilder(Resource resource)Static factory method for creating builder instances from aResourceintcompareTo(FHIRPathNode node)This method is not supported for this FHIRPathResourceNodebooleanequals(java.lang.Object obj)Indicates whether this FHIRPathResourceNode is equal to the parameterFHIRPathTreegetTree()TheFHIRPathTreethat contains this FHIRPathResourceNodeinthashCode()booleanisResourceNode()Indicates whether this FHIRPathNode is type compatible withFHIRPathResourceNodeResourceresource()TheResourcewrapped by this FHIRPathResourceNodestatic FHIRPathResourceNoderesourceNode(Resource resource)Static factory method for creating FHIRPathResourceNode instances from aResourcestatic FHIRPathResourceNoderesourceNode(FHIRPathType type)Static factory method for creating FHIRPathResourceNode instances from aFHIRPathTypestatic FHIRPathResourceNoderesourceNode(java.lang.String name, Resource resource)Static factory method for creating named FHIRPathResourceNode instances from aResourceFHIRPathResourceNode.BuildertoBuilder()Convert thisFHIRPathNodeinstance into aFHIRPathNode.Builderinstance-
Methods inherited from class com.ibm.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 com.ibm.fhir.path.FHIRPathNode
asElementNode, asResourceNode, asSystemValue, asTermServiceNode, asTypeInfoNode, isComparableTo, isElementNode, isSystemValue, isTermServiceNode, isTypeInfoNode
-
-
-
-
Method Detail
-
isResourceNode
public boolean isResourceNode()
Description copied from interface:FHIRPathNodeIndicates whether this FHIRPathNode is type compatible withFHIRPathResourceNode- Returns:
- true if this FHIRPathNode is type compatible with
FHIRPathResourceNode, otherwise false
-
resource
public Resource resource()
TheResourcewrapped by this FHIRPathResourceNode- Returns:
- the
Resourcewrapped by this FHIRPathResourceNode
-
getTree
public FHIRPathTree getTree()
TheFHIRPathTreethat contains this FHIRPathResourceNode- Returns:
- the
FHIRPathTreethat 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:FHIRPathAbstractNodeConvert thisFHIRPathNodeinstance into aFHIRPathNode.Builderinstance- Specified by:
toBuilderin classFHIRPathAbstractNode- Returns:
- a new
FHIRPathNode.Builderinstance containing the fields from thisFHIRPathNodeinstance
-
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:
hashCodein classjava.lang.Object
-
accept
public void accept(FHIRPathNodeVisitor visitor)
Description copied from interface:FHIRPathNodeA method for accepting aFHIRPathNodeVisitor- Parameters:
visitor- theFHIRPathNodeVisitorthat this FHIRPathNode is accepting
-
-