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 java.lang.Object implements FHIRPathNode.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<FHIRPathNode>
children
protected java.lang.String
name
protected java.lang.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(java.util.Collection<FHIRPathNode> children)
Child nodes of the FHIRPathNodeFHIRPathAbstractNode.Builder
name(java.lang.String name)
The name of the FHIRPathNodeFHIRPathAbstractNode.Builder
path(java.lang.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 java.lang.String name
-
path
protected java.lang.String path
-
value
protected FHIRPathSystemValue value
-
children
protected java.util.Collection<FHIRPathNode> children
-
-
Constructor Detail
-
Builder
protected Builder(FHIRPathType type)
-
-
Method Detail
-
name
public FHIRPathAbstractNode.Builder name(java.lang.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(java.lang.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(java.util.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
-
-