Class Property
- 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.Property
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
PropertyEvaluator,Search
public class Property extends Expression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Property operator returns the value of the property on source specified by the path attribute. If the result of evaluating source is null, the result is null. The path attribute may include qualifiers (.) and indexers ([x]). Indexers must be literal integer values. If the path attribute contains qualifiers or indexers, each qualifier or indexer is traversed to obtain the actual value. If the object of the property access at any point in traversing the path is null, the result is null. If a scope is specified, the name is used to resolve the scope in which the path will be resolved. Scopes can be named by operators such as Filter and ForEach. Property expressions can also be used to access the individual points and closed indicators for interval types using the property names low, high, lowClosed, and highClosed.Java class for Property complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Property"> <complexContent> <extension base="{urn:hl7-org:elm:r1}Expression"> <sequence> <element name="source" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> </sequence> <attribute name="path" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="scope" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringpathprotected java.lang.Stringscopeprotected Expressionsource-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description Property()
-
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.lang.StringgetPath()Gets the value of the path property.java.lang.StringgetScope()Gets the value of the scope property.ExpressiongetSource()Gets the value of the source property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetPath(java.lang.String value)Sets the value of the path property.voidsetScope(java.lang.String value)Sets the value of the scope property.voidsetSource(Expression value)Sets the value of the source property.java.lang.StringtoString()PropertywithAnnotation(java.util.Collection<CqlToElmBase> values)PropertywithAnnotation(CqlToElmBase... values)PropertywithLocalId(java.lang.String value)PropertywithLocator(java.lang.String value)PropertywithPath(java.lang.String value)PropertywithResultTypeName(javax.xml.namespace.QName value)PropertywithResultTypeSpecifier(TypeSpecifier value)PropertywithScope(java.lang.String value)PropertywithSource(Expression 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
-
source
protected Expression source
-
path
protected java.lang.String path
-
scope
protected java.lang.String scope
-
-
Method Detail
-
getSource
public Expression getSource()
Gets the value of the source property.- Returns:
- possible object is
Expression
-
setSource
public void setSource(Expression value)
Sets the value of the source property.- Parameters:
value- allowed object isExpression
-
getPath
public java.lang.String getPath()
Gets the value of the path property.- Returns:
- possible object is
String
-
setPath
public void setPath(java.lang.String value)
Sets the value of the path property.- Parameters:
value- allowed object isString
-
getScope
public java.lang.String getScope()
Gets the value of the scope property.- Returns:
- possible object is
String
-
setScope
public void setScope(java.lang.String value)
Sets the value of the scope property.- Parameters:
value- allowed object isString
-
withSource
public Property withSource(Expression value)
-
withPath
public Property withPath(java.lang.String value)
-
withScope
public Property withScope(java.lang.String value)
-
withAnnotation
public Property withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classExpression
-
withAnnotation
public Property withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classExpression
-
withResultTypeSpecifier
public Property withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classExpression
-
withLocalId
public Property withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classExpression
-
withLocator
public Property withLocator(java.lang.String value)
- Overrides:
withLocatorin classExpression
-
withResultTypeName
public Property 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
-
-