Package org.linuxforhealth.fhir.path
Class FHIRPathAbstractNode.Builder
- java.lang.Object
-
- org.linuxforhealth.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>childrenprotected java.lang.Stringnameprotected java.lang.Stringpathprotected FHIRPathTypetypeprotected FHIRPathSystemValuevalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder(FHIRPathType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FHIRPathNodebuild()Build a FHIRPathNode using this builderFHIRPathAbstractNode.Builderchildren(java.util.Collection<FHIRPathNode> children)Child nodes of the FHIRPathNodeFHIRPathAbstractNode.Builderchildren(FHIRPathNode... children)Child nodes of the FHIRPathNodeFHIRPathAbstractNode.Buildername(java.lang.String name)The name of the FHIRPathNodeFHIRPathAbstractNode.Builderpath(java.lang.String path)The path of the FHIRPathNodeFHIRPathAbstractNode.Buildervalue(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.BuilderThe name of the FHIRPathNode- Specified by:
namein 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.BuilderThe path of the FHIRPathNode- Specified by:
pathin 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.BuilderThe child system value of the FHIRPathNode- Specified by:
valuein interfaceFHIRPathNode.Builder- Returns:
- A reference to this builder instance
-
children
public FHIRPathAbstractNode.Builder children(FHIRPathNode... children)
Description copied from interface:FHIRPathNode.BuilderChild nodes of the FHIRPathNode- Specified by:
childrenin interfaceFHIRPathNode.Builder- Returns:
- A reference to this builder instance
-
children
public FHIRPathAbstractNode.Builder children(java.util.Collection<FHIRPathNode> children)
Description copied from interface:FHIRPathNode.BuilderChild nodes of the FHIRPathNode- Specified by:
childrenin interfaceFHIRPathNode.Builder- Returns:
- A reference to this builder instance
-
build
public abstract FHIRPathNode build()
Description copied from interface:FHIRPathNode.BuilderBuild a FHIRPathNode using this builder- Specified by:
buildin interfaceFHIRPathNode.Builder- Returns:
- a new FHIRPathNode instance
-
-