Class ExpressionBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.ExpressionBuilder.Impl
-
- All Implemented Interfaces:
ElementBuilder,ExpressionBuilder
- Enclosing interface:
- ExpressionBuilder
public static class ExpressionBuilder.Impl extends java.lang.Object implements ExpressionBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.ExpressionBuilder
ExpressionBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.core.EXPRESSION_LANGUAGE language)Required fields forExpression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.Expressionbuild()ExpressionBuilder.ImplwithDescription(@NonNull java.lang.String description)ExpressionBuilder.ImplwithExpression(@NonNull java.lang.String expression)ExpressionBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)ExpressionBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)ExpressionBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)ExpressionBuilder.ImplwithId(@NonNull java.lang.String id)ExpressionBuilder.ImplwithName(@NonNull java.lang.String name)ExpressionBuilder.ImplwithReference(@NonNull java.lang.String reference)
-
-
-
Method Detail
-
withId
public ExpressionBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
-
withName
public ExpressionBuilder.Impl withName(@NonNull @NonNull java.lang.String name)
- Parameters:
name- - A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.
-
withExtension
public ExpressionBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public ExpressionBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public ExpressionBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... extension)
-
withReference
public ExpressionBuilder.Impl withReference(@NonNull @NonNull java.lang.String reference)
- Parameters:
reference- - A URI that defines where the expression is found.
-
withExpression
public ExpressionBuilder.Impl withExpression(@NonNull @NonNull java.lang.String expression)
- Parameters:
expression- - An expression in the specified language that returns a value.
-
withDescription
public ExpressionBuilder.Impl withDescription(@NonNull @NonNull java.lang.String description)
- Parameters:
description- - A brief, natural language description of the condition that effectively communicates the intended semantics.
-
build
public com.babylonhealth.lit.core.model.Expression build()
- Specified by:
buildin interfaceElementBuilder- Specified by:
buildin interfaceExpressionBuilder
-
-