Class Element
- java.lang.Object
-
- org.opencds.cqf.cql.engine.elm.execution.Executable
-
- org.cqframework.cql.elm.execution.Element
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
AggregateClause,AliasedQuerySource,CaseItem,CodeDef,CodeFilterElement,CodeSystemDef,ConceptDef,ContextDef,DateFilterElement,Expression,ExpressionDef,IncludeDef,IncludeElement,LetClause,Library,OperandDef,OtherFilterElement,ParameterDef,ReturnClause,SortByItem,SortClause,TupleElementDefinition,TypeSpecifier,UsingDef,ValueSetDef
public abstract class Element extends Executable implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Element type defines the abstract base type for all library elements in ELM.Java class for Element complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Element"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="annotation" type="{urn:hl7-org:cql-annotations:r1}CqlToElmBase" maxOccurs="unbounded" minOccurs="0"/> <element name="resultTypeSpecifier" type="{urn:hl7-org:elm:r1}TypeSpecifier" minOccurs="0"/> </sequence> <attribute name="localId" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="locator" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="resultTypeName" type="{http://www.w3.org/2001/XMLSchema}QName" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<CqlToElmBase>annotationprotected java.lang.StringlocalIdprotected java.lang.Stringlocatorprotected javax.xml.namespace.QNameresultTypeNameprotected TypeSpecifierresultTypeSpecifier
-
Constructor Summary
Constructors Constructor Description Element()
-
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<CqlToElmBase>getAnnotation()Gets the value of the annotation property.java.lang.StringgetLocalId()Gets the value of the localId property.java.lang.StringgetLocator()Gets the value of the locator property.javax.xml.namespace.QNamegetResultTypeName()Gets the value of the resultTypeName property.TypeSpecifiergetResultTypeSpecifier()Gets the value of the resultTypeSpecifier property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetLocalId(java.lang.String value)Sets the value of the localId property.voidsetLocator(java.lang.String value)Sets the value of the locator property.voidsetResultTypeName(javax.xml.namespace.QName value)Sets the value of the resultTypeName property.voidsetResultTypeSpecifier(TypeSpecifier value)Sets the value of the resultTypeSpecifier property.java.lang.StringtoString()ElementwithAnnotation(java.util.Collection<CqlToElmBase> values)ElementwithAnnotation(CqlToElmBase... values)ElementwithLocalId(java.lang.String value)ElementwithLocator(java.lang.String value)ElementwithResultTypeName(javax.xml.namespace.QName value)ElementwithResultTypeSpecifier(TypeSpecifier value)-
Methods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
-
-
-
Field Detail
-
annotation
protected java.util.List<CqlToElmBase> annotation
-
resultTypeSpecifier
protected TypeSpecifier resultTypeSpecifier
-
localId
protected java.lang.String localId
-
locator
protected java.lang.String locator
-
resultTypeName
protected javax.xml.namespace.QName resultTypeName
-
-
Method Detail
-
getAnnotation
public java.util.List<CqlToElmBase> getAnnotation()
Gets the value of the annotation 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 annotation property.For example, to add a new item, do as follows:
getAnnotation().add(newItem);Objects of the following type(s) are allowed in the list
CqlToElmBase
-
getResultTypeSpecifier
public TypeSpecifier getResultTypeSpecifier()
Gets the value of the resultTypeSpecifier property.- Returns:
- possible object is
TypeSpecifier
-
setResultTypeSpecifier
public void setResultTypeSpecifier(TypeSpecifier value)
Sets the value of the resultTypeSpecifier property.- Parameters:
value- allowed object isTypeSpecifier
-
getLocalId
public java.lang.String getLocalId()
Gets the value of the localId property.- Returns:
- possible object is
String
-
setLocalId
public void setLocalId(java.lang.String value)
Sets the value of the localId property.- Parameters:
value- allowed object isString
-
getLocator
public java.lang.String getLocator()
Gets the value of the locator property.- Returns:
- possible object is
String
-
setLocator
public void setLocator(java.lang.String value)
Sets the value of the locator property.- Parameters:
value- allowed object isString
-
getResultTypeName
public javax.xml.namespace.QName getResultTypeName()
Gets the value of the resultTypeName property.- Returns:
- possible object is
QName
-
setResultTypeName
public void setResultTypeName(javax.xml.namespace.QName value)
Sets the value of the resultTypeName property.- Parameters:
value- allowed object isQName
-
withAnnotation
public Element withAnnotation(CqlToElmBase... values)
-
withAnnotation
public Element withAnnotation(java.util.Collection<CqlToElmBase> values)
-
withResultTypeSpecifier
public Element withResultTypeSpecifier(TypeSpecifier value)
-
withLocalId
public Element withLocalId(java.lang.String value)
-
withLocator
public Element withLocator(java.lang.String value)
-
withResultTypeName
public Element withResultTypeName(javax.xml.namespace.QName value)
-
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
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
-
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
-
-