Package org.linuxforhealth.fhir.path
Class FHIRPathElementNode.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.path.FHIRPathAbstractNode.Builder
-
- org.linuxforhealth.fhir.path.FHIRPathElementNode.Builder
-
- All Implemented Interfaces:
FHIRPathNode.Builder
- Direct Known Subclasses:
FHIRPathQuantityNode.Builder
- Enclosing class:
- FHIRPathElementNode
public static class FHIRPathElementNode.Builder extends FHIRPathAbstractNode.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected Element
element
protected FHIRPathTree
tree
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(FHIRPathType type, Element element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPathElementNode
build()
Build a FHIRPathElementNode using this builderFHIRPathElementNode.Builder
children(java.util.Collection<FHIRPathNode> children)
Child nodes of the FHIRPathNodeFHIRPathElementNode.Builder
children(FHIRPathNode... children)
Child nodes of the FHIRPathNodeFHIRPathElementNode.Builder
name(java.lang.String name)
The name of the FHIRPathNodeFHIRPathElementNode.Builder
path(java.lang.String path)
The path of the FHIRPathNodeFHIRPathElementNode.Builder
tree(FHIRPathTree tree)
FHIRPathElementNode.Builder
value(FHIRPathSystemValue value)
The child system value of the FHIRPathNode
-
-
-
Field Detail
-
element
protected final Element element
-
tree
protected FHIRPathTree tree
-
-
Constructor Detail
-
Builder
protected Builder(FHIRPathType type, Element element)
-
-
Method Detail
-
tree
public FHIRPathElementNode.Builder tree(FHIRPathTree tree)
-
name
public FHIRPathElementNode.Builder name(java.lang.String name)
Description copied from interface:FHIRPathNode.Builder
The name of the FHIRPathNode- Specified by:
name
in interfaceFHIRPathNode.Builder
- Overrides:
name
in classFHIRPathAbstractNode.Builder
- Parameters:
name
- the name of the FHIRPathNode- Returns:
- A reference to this builder instance
-
path
public FHIRPathElementNode.Builder path(java.lang.String path)
Description copied from interface:FHIRPathNode.Builder
The path of the FHIRPathNode- Specified by:
path
in interfaceFHIRPathNode.Builder
- Overrides:
path
in classFHIRPathAbstractNode.Builder
- Parameters:
path
- the path of the FHIRPathNode- Returns:
- A reference to this builder instance
-
value
public FHIRPathElementNode.Builder value(FHIRPathSystemValue value)
Description copied from interface:FHIRPathNode.Builder
The child system value of the FHIRPathNode- Specified by:
value
in interfaceFHIRPathNode.Builder
- Overrides:
value
in classFHIRPathAbstractNode.Builder
- Returns:
- A reference to this builder instance
-
children
public FHIRPathElementNode.Builder children(FHIRPathNode... children)
Description copied from interface:FHIRPathNode.Builder
Child nodes of the FHIRPathNode- Specified by:
children
in interfaceFHIRPathNode.Builder
- Overrides:
children
in classFHIRPathAbstractNode.Builder
- Returns:
- A reference to this builder instance
-
children
public FHIRPathElementNode.Builder children(java.util.Collection<FHIRPathNode> children)
Description copied from interface:FHIRPathNode.Builder
Child nodes of the FHIRPathNode- Specified by:
children
in interfaceFHIRPathNode.Builder
- Overrides:
children
in classFHIRPathAbstractNode.Builder
- Returns:
- A reference to this builder instance
-
build
public FHIRPathElementNode build()
Build a FHIRPathElementNode using this builder- Specified by:
build
in interfaceFHIRPathNode.Builder
- Specified by:
build
in classFHIRPathAbstractNode.Builder
- Returns:
- a new FHIRPathElementNode instance
-
-