Class ParameterDef
- java.lang.Object
-
- org.opencds.cqf.cql.engine.elm.execution.Executable
-
- org.cqframework.cql.elm.execution.Element
-
- org.cqframework.cql.elm.execution.ParameterDef
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class ParameterDef extends Element implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The ParameterDef type defines a parameter that can be referenced by name anywhere within an expression. Parameters are defined at the artifact level, and may be provided as part of the payload for an evaluation request. If no parameter value is provided, the default element is used to provide the value for the parameter. If no parameter or default is provided, the parameter is defined to be null. Note that the expression specified in the default element must be able to be evaluated at compile-time (i.e. without reference to any run-time capabilities such as data, terminology, and library references, both local and included).Java class for ParameterDef complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ParameterDef"> <complexContent> <extension base="{urn:hl7-org:elm:r1}Element"> <sequence> <element name="default" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> <element name="parameterTypeSpecifier" type="{urn:hl7-org:elm:r1}TypeSpecifier" minOccurs="0"/> </sequence> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="parameterType" type="{http://www.w3.org/2001/XMLSchema}QName" /> <attribute name="accessLevel" type="{urn:hl7-org:elm:r1}AccessModifier" default="Public" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression_defaultprotected AccessModifieraccessLevelprotected java.lang.Stringnameprotected javax.xml.namespace.QNameparameterTypeprotected TypeSpecifierparameterTypeSpecifier-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description ParameterDef()
-
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)AccessModifiergetAccessLevel()Gets the value of the accessLevel property.ExpressiongetDefault()Gets the value of the default property.java.lang.StringgetName()Gets the value of the name property.javax.xml.namespace.QNamegetParameterType()Gets the value of the parameterType property.TypeSpecifiergetParameterTypeSpecifier()Gets the value of the parameterTypeSpecifier property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAccessLevel(AccessModifier value)Sets the value of the accessLevel property.voidsetDefault(Expression value)Sets the value of the default property.voidsetName(java.lang.String value)Sets the value of the name property.voidsetParameterType(javax.xml.namespace.QName value)Sets the value of the parameterType property.voidsetParameterTypeSpecifier(TypeSpecifier value)Sets the value of the parameterTypeSpecifier property.java.lang.StringtoString()ParameterDefwithAccessLevel(AccessModifier value)ParameterDefwithAnnotation(java.util.Collection<CqlToElmBase> values)ParameterDefwithAnnotation(CqlToElmBase... values)ParameterDefwithDefault(Expression value)ParameterDefwithLocalId(java.lang.String value)ParameterDefwithLocator(java.lang.String value)ParameterDefwithName(java.lang.String value)ParameterDefwithParameterType(javax.xml.namespace.QName value)ParameterDefwithParameterTypeSpecifier(TypeSpecifier value)ParameterDefwithResultTypeName(javax.xml.namespace.QName value)ParameterDefwithResultTypeSpecifier(TypeSpecifier value)-
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
-
_default
protected Expression _default
-
parameterTypeSpecifier
protected TypeSpecifier parameterTypeSpecifier
-
name
protected java.lang.String name
-
parameterType
protected javax.xml.namespace.QName parameterType
-
accessLevel
protected AccessModifier accessLevel
-
-
Method Detail
-
getDefault
public Expression getDefault()
Gets the value of the default property.- Returns:
- possible object is
Expression
-
setDefault
public void setDefault(Expression value)
Sets the value of the default property.- Parameters:
value- allowed object isExpression
-
getParameterTypeSpecifier
public TypeSpecifier getParameterTypeSpecifier()
Gets the value of the parameterTypeSpecifier property.- Returns:
- possible object is
TypeSpecifier
-
setParameterTypeSpecifier
public void setParameterTypeSpecifier(TypeSpecifier value)
Sets the value of the parameterTypeSpecifier property.- Parameters:
value- allowed object isTypeSpecifier
-
getName
public java.lang.String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getParameterType
public javax.xml.namespace.QName getParameterType()
Gets the value of the parameterType property.- Returns:
- possible object is
QName
-
setParameterType
public void setParameterType(javax.xml.namespace.QName value)
Sets the value of the parameterType property.- Parameters:
value- allowed object isQName
-
getAccessLevel
public AccessModifier getAccessLevel()
Gets the value of the accessLevel property.- Returns:
- possible object is
AccessModifier
-
setAccessLevel
public void setAccessLevel(AccessModifier value)
Sets the value of the accessLevel property.- Parameters:
value- allowed object isAccessModifier
-
withDefault
public ParameterDef withDefault(Expression value)
-
withParameterTypeSpecifier
public ParameterDef withParameterTypeSpecifier(TypeSpecifier value)
-
withName
public ParameterDef withName(java.lang.String value)
-
withParameterType
public ParameterDef withParameterType(javax.xml.namespace.QName value)
-
withAccessLevel
public ParameterDef withAccessLevel(AccessModifier value)
-
withAnnotation
public ParameterDef withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classElement
-
withAnnotation
public ParameterDef withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classElement
-
withResultTypeSpecifier
public ParameterDef withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classElement
-
withLocalId
public ParameterDef withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classElement
-
withLocator
public ParameterDef withLocator(java.lang.String value)
- Overrides:
withLocatorin classElement
-
withResultTypeName
public ParameterDef withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classElement
-
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)
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
-
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 classElement
-
-