Class Instance
- java.lang.Object
-
- org.opencds.cqf.cql.engine.elm.execution.Executable
-
- org.cqframework.cql.elm.execution.Element
-
- org.cqframework.cql.elm.execution.Expression
-
- org.cqframework.cql.elm.execution.Instance
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
InstanceEvaluator
public class Instance extends Expression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Instance expression allows class instances of any type to be built up as an expression. The classType attribute specifies the type of the class instance being built, and the list of instance elements specify the values for the elements of the class instance. Note that the value of an element may be any expression, including another Instance.Java class for Instance complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Instance"> <complexContent> <extension base="{urn:hl7-org:elm:r1}Expression"> <sequence> <element name="element" type="{urn:hl7-org:elm:r1}InstanceElement" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="classType" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.namespace.QNameclassTypeprotected java.util.List<InstanceElement>element-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description Instance()
-
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)javax.xml.namespace.QNamegetClassType()Gets the value of the classType property.java.util.List<InstanceElement>getElement()Gets the value of the element property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetClassType(javax.xml.namespace.QName value)Sets the value of the classType property.java.lang.StringtoString()InstancewithAnnotation(java.util.Collection<CqlToElmBase> values)InstancewithAnnotation(CqlToElmBase... values)InstancewithClassType(javax.xml.namespace.QName value)InstancewithElement(java.util.Collection<InstanceElement> values)InstancewithElement(InstanceElement... values)InstancewithLocalId(java.lang.String value)InstancewithLocator(java.lang.String value)InstancewithResultTypeName(javax.xml.namespace.QName value)InstancewithResultTypeSpecifier(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
-
element
protected java.util.List<InstanceElement> element
-
classType
protected javax.xml.namespace.QName classType
-
-
Method Detail
-
getElement
public java.util.List<InstanceElement> getElement()
Gets the value of the element 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 element property.For example, to add a new item, do as follows:
getElement().add(newItem);Objects of the following type(s) are allowed in the list
InstanceElement
-
getClassType
public javax.xml.namespace.QName getClassType()
Gets the value of the classType property.- Returns:
- possible object is
QName
-
setClassType
public void setClassType(javax.xml.namespace.QName value)
Sets the value of the classType property.- Parameters:
value- allowed object isQName
-
withElement
public Instance withElement(InstanceElement... values)
-
withElement
public Instance withElement(java.util.Collection<InstanceElement> values)
-
withClassType
public Instance withClassType(javax.xml.namespace.QName value)
-
withAnnotation
public Instance withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classExpression
-
withAnnotation
public Instance withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classExpression
-
withResultTypeSpecifier
public Instance withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classExpression
-
withLocalId
public Instance withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classExpression
-
withLocator
public Instance withLocator(java.lang.String value)
- Overrides:
withLocatorin classExpression
-
withResultTypeName
public Instance withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classExpression
-
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 classExpression
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classExpression
-
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 classExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classExpression
-
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 classExpression
-
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 classExpression
-
-