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
Fields Modifier and Type Field Description protected java.lang.Booleanexternalprotected java.lang.Booleanfluentprotected java.util.List<OperandDef>operand-
Fields inherited from class org.cqframework.cql.elm.execution.ExpressionDef
accessLevel, context, expression, name
-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description FunctionDef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)java.util.List<OperandDef>getOperand()Gets the value of the operand property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)java.lang.BooleanisExternal()Gets the value of the external property.java.lang.BooleanisFluent()Gets the value of the fluent property.voidsetExternal(java.lang.Boolean value)Sets the value of the external property.voidsetFluent(java.lang.Boolean value)Sets the value of the fluent property.java.lang.StringtoString()FunctionDefwithAccessLevel(AccessModifier value)FunctionDefwithAnnotation(java.util.Collection<CqlToElmBase> values)FunctionDefwithAnnotation(CqlToElmBase... values)FunctionDefwithContext(java.lang.String value)FunctionDefwithExpression(Expression value)FunctionDefwithExternal(java.lang.Boolean value)FunctionDefwithFluent(java.lang.Boolean value)FunctionDefwithLocalId(java.lang.String value)FunctionDefwithLocator(java.lang.String value)FunctionDefwithName(java.lang.String value)FunctionDefwithOperand(java.util.Collection<OperandDef> values)FunctionDefwithOperand(OperandDef... values)FunctionDefwithResultTypeName(javax.xml.namespace.QName value)FunctionDefwithResultTypeSpecifier(TypeSpecifier value)-
Methods inherited from class org.cqframework.cql.elm.execution.ExpressionDef
getAccessLevel, getContext, getExpression, getName, setAccessLevel, setContext, setExpression, setName
-
Methods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifier
-
Methods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
-
-
-
Field Detail
-
operand
protected java.util.List<OperandDef> operand
-
external
protected java.lang.Boolean external
-
fluent
protected java.lang.Boolean fluent
-
-
Method Detail
-
getOperand
public java.util.List<OperandDef> 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
public java.lang.Boolean isExternal()
Gets the value of the external property.- Returns:
- possible object is
Boolean
-
setExternal
public void setExternal(java.lang.Boolean value)
Sets the value of the external property.- Parameters:
value- allowed object isBoolean
-
isFluent
public java.lang.Boolean isFluent()
Gets the value of the fluent property.- Returns:
- possible object is
Boolean
-
setFluent
public void setFluent(java.lang.Boolean value)
Sets the value of the fluent property.- Parameters:
value- allowed object isBoolean
-
withOperand
public FunctionDef withOperand(OperandDef... values)
-
withOperand
public FunctionDef withOperand(java.util.Collection<OperandDef> values)
-
withExternal
public FunctionDef withExternal(java.lang.Boolean value)
-
withFluent
public FunctionDef withFluent(java.lang.Boolean value)
-
withExpression
public FunctionDef withExpression(Expression value)
- Overrides:
withExpressionin classExpressionDef
-
withName
public FunctionDef withName(java.lang.String value)
- Overrides:
withNamein classExpressionDef
-
withContext
public FunctionDef withContext(java.lang.String value)
- Overrides:
withContextin classExpressionDef
-
withAccessLevel
public FunctionDef withAccessLevel(AccessModifier value)
- Overrides:
withAccessLevelin classExpressionDef
-
withAnnotation
public FunctionDef withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classExpressionDef
-
withAnnotation
public FunctionDef withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classExpressionDef
-
withResultTypeSpecifier
public FunctionDef withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classExpressionDef
-
withLocalId
public FunctionDef withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classExpressionDef
-
withLocator
public FunctionDef withLocator(java.lang.String value)
- Overrides:
withLocatorin classExpressionDef
-
withResultTypeName
public FunctionDef withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classExpressionDef
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classExpressionDef
-
equals
public boolean equals(java.lang.Object object)
- 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
public java.lang.String toString()
- Overrides:
toStringin classExpressionDef
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classExpressionDef
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classExpressionDef
-
-