Class FunctionDef
java.lang.Object
org.opencds.cqf.cql.engine.elm.execution.Executable
org.cqframework.cql.elm.execution.Element
org.cqframework.cql.elm.execution.ExpressionDef
org.cqframework.cql.elm.execution.FunctionDef
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class FunctionDef
extends ExpressionDef
implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The FunctionDef type defines a named function that can be invoked by any expression in the artifact. Function names must be unique within the artifact. Functions may take any number of operands.
Java class for FunctionDef complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="FunctionDef">
<complexContent>
<extension base="{urn:hl7-org:elm:r1}ExpressionDef">
<sequence>
<element name="operand" type="{urn:hl7-org:elm:r1}OperandDef" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="external" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="fluent" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsFields inherited from class org.cqframework.cql.elm.execution.ExpressionDef
accessLevel, context, expression, nameFields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) Gets the value of the operand property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) Gets the value of the external property.isFluent()Gets the value of the fluent property.voidsetExternal(Boolean value) Sets the value of the external property.voidSets the value of the fluent property.toString()withAccessLevel(AccessModifier value) withAnnotation(Collection<CqlToElmBase> values) withAnnotation(CqlToElmBase... values) withContext(String value) withExpression(Expression value) withExternal(Boolean value) withFluent(Boolean value) withLocalId(String value) withLocator(String value) withOperand(Collection<OperandDef> values) withOperand(OperandDef... values) withResultTypeName(QName value) Methods inherited from class org.cqframework.cql.elm.execution.ExpressionDef
getAccessLevel, getContext, getExpression, getName, setAccessLevel, setContext, setExpression, setNameMethods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifierMethods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
Field Details
-
operand
-
external
-
fluent
-
-
Constructor Details
-
FunctionDef
public FunctionDef()
-
-
Method Details
-
getOperand
Gets the value of the operand property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the operand property.For example, to add a new item, do as follows:
getOperand().add(newItem);Objects of the following type(s) are allowed in the list
OperandDef -
isExternal
Gets the value of the external property.- Returns:
- possible object is
Boolean
-
setExternal
Sets the value of the external property.- Parameters:
value- allowed object isBoolean
-
isFluent
Gets the value of the fluent property.- Returns:
- possible object is
Boolean
-
setFluent
Sets the value of the fluent property.- Parameters:
value- allowed object isBoolean
-
withOperand
-
withOperand
-
withExternal
-
withFluent
-
withExpression
- Overrides:
withExpressionin classExpressionDef
-
withName
- Overrides:
withNamein classExpressionDef
-
withContext
- Overrides:
withContextin classExpressionDef
-
withAccessLevel
- Overrides:
withAccessLevelin classExpressionDef
-
withAnnotation
- Overrides:
withAnnotationin classExpressionDef
-
withAnnotation
- Overrides:
withAnnotationin classExpressionDef
-
withResultTypeSpecifier
- Overrides:
withResultTypeSpecifierin classExpressionDef
-
withLocalId
- Overrides:
withLocalIdin classExpressionDef
-
withLocator
- Overrides:
withLocatorin classExpressionDef
-
withResultTypeName
- Overrides:
withResultTypeNamein classExpressionDef
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classExpressionDef
-
equals
- Overrides:
equalsin classExpressionDef
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) - Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classExpressionDef
-
hashCode
public int hashCode()- Overrides:
hashCodein classExpressionDef
-
toString
- Overrides:
toStringin classExpressionDef
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classExpressionDef
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classExpressionDef
-