Package com.ibm.fhir.path
Class FHIRPathAbstractNode.Builder
- java.lang.Object
-
- com.ibm.fhir.path.FHIRPathAbstractNode.Builder
-
- All Implemented Interfaces:
FHIRPathNode.Builder
- Direct Known Subclasses:
FHIRPathAbstractSystemValue.Builder
,FHIRPathElementNode.Builder
,FHIRPathResourceNode.Builder
- Enclosing class:
- FHIRPathAbstractNode
public abstract static class FHIRPathAbstractNode.Builder extends Object implements FHIRPathNode.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<FHIRPathNode>
children
protected String
name
protected String
path
protected FHIRPathType
type
protected FHIRPathSystemValue
value
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(FHIRPathType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FHIRPathNode
build()
Build a FHIRPathNode using this builderFHIRPathAbstractNode.Builder
children(FHIRPathNode... children)
Child nodes of the FHIRPathNodeFHIRPathAbstractNode.Builder
children(Collection<FHIRPathNode> children)
Child nodes of the FHIRPathNodeFHIRPathAbstractNode.Builder
name(String name)
The name of the FHIRPathNodeFHIRPathAbstractNode.Builder
path(String path)
The path of the FHIRPathNodeFHIRPathAbstractNode.Builder
value(FHIRPathSystemValue value)
The child system value of the FHIRPathNode
-
-
-
Field Detail
-
type
protected final FHIRPathType type
-
name
protected String name
-
path
protected String path
-
value
protected FHIRPathSystemValue value
-
children
protected Collection<FHIRPathNode> children
-
-
Constructor Detail
-
Builder
protected Builder(FHIRPathType type)
-
-
Method Detail
-
name
public FHIRPathAbstractNode.Builder name(String name)
Description copied from interface:FHIRPathNode.Builder
The name of the FHIRPathNode- Specified by:
name
in interfaceFHIRPathNode.Builder
- Parameters:
name
- the name of the FHIRPathNode- Returns:
- A reference to this builder instance
-
path
public FHIRPathAbstractNode.Builder path(String path)
Description copied from interface:FHIRPathNode.Builder
The path of the FHIRPathNode- Specified by:
path
in interfaceFHIRPathNode.Builder
- Parameters:
path
- the path of the FHIRPathNode- Returns:
- A reference to this builder instance
-
value
public FHIRPathAbstractNode.Builder value(FHIRPathSystemValue value)
Description copied from interface:FHIRPathNode.Builder
The child system value of the FHIRPathNode- Specified by:
value
in interfaceFHIRPathNode.Builder
- Returns:
- A reference to this builder instance
-
children
public FHIRPathAbstractNode.Builder children(FHIRPathNode... children)
Description copied from interface:FHIRPathNode.Builder
Child nodes of the FHIRPathNode- Specified by:
children
in interfaceFHIRPathNode.Builder
- Returns:
- A reference to this builder instance
-
children
public FHIRPathAbstractNode.Builder children(Collection<FHIRPathNode> children)
Description copied from interface:FHIRPathNode.Builder
Child nodes of the FHIRPathNode- Specified by:
children
in interfaceFHIRPathNode.Builder
- Returns:
- A reference to this builder instance
-
build
public abstract FHIRPathNode build()
Description copied from interface:FHIRPathNode.Builder
Build a FHIRPathNode using this builder- Specified by:
build
in interfaceFHIRPathNode.Builder
- Returns:
- a new FHIRPathNode instance
-
-