Class Convert
- java.lang.Object
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
ConvertEvaluator
public class Convert extends UnaryExpression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Convert operator converts a value to a specific type. The result of the operator is the value of the argument converted to the target type, if possible. If no valid conversion exists from the actual value to the target type, the result is null. This operator supports conversion: Between String and each of Boolean, Integer, Long, Decimal, Quantity, Ratio, Date, DateTime, and Time as well as: From Integer to Long, Decimal or Quantity From Decimal to Quantity Between Date and DateTime From Code to Concept Between Concept and ListConversion between String and Date/DateTime/Time is performed using the ISO-8601 standard format: YYYY-MM-DDThh:mm:ss(+|-)hh:mm.Java class for Convert complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Convert"> <complexContent> <extension base="{urn:hl7-org:elm:r1}UnaryExpression"> <sequence> <element name="toTypeSpecifier" type="{urn:hl7-org:elm:r1}TypeSpecifier" minOccurs="0"/> </sequence> <attribute name="toType" type="{http://www.w3.org/2001/XMLSchema}QName" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.namespace.QNametoTypeprotected TypeSpecifiertoTypeSpecifier-
Fields inherited from class org.cqframework.cql.elm.execution.UnaryExpression
operand
-
Fields inherited from class org.cqframework.cql.elm.execution.OperatorExpression
signature
-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description Convert()
-
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.QNamegetToType()Gets the value of the toType property.TypeSpecifiergetToTypeSpecifier()Gets the value of the toTypeSpecifier property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetToType(javax.xml.namespace.QName value)Sets the value of the toType property.voidsetToTypeSpecifier(TypeSpecifier value)Sets the value of the toTypeSpecifier property.java.lang.StringtoString()ConvertwithAnnotation(java.util.Collection<CqlToElmBase> values)ConvertwithAnnotation(CqlToElmBase... values)ConvertwithLocalId(java.lang.String value)ConvertwithLocator(java.lang.String value)ConvertwithOperand(Expression value)ConvertwithResultTypeName(javax.xml.namespace.QName value)ConvertwithResultTypeSpecifier(TypeSpecifier value)ConvertwithSignature(java.util.Collection<TypeSpecifier> values)ConvertwithSignature(TypeSpecifier... values)ConvertwithToType(javax.xml.namespace.QName value)ConvertwithToTypeSpecifier(TypeSpecifier value)-
Methods inherited from class org.cqframework.cql.elm.execution.UnaryExpression
getOperand, setOperand
-
Methods inherited from class org.cqframework.cql.elm.execution.OperatorExpression
getSignature
-
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
-
toTypeSpecifier
protected TypeSpecifier toTypeSpecifier
-
toType
protected javax.xml.namespace.QName toType
-
-
Method Detail
-
getToTypeSpecifier
public TypeSpecifier getToTypeSpecifier()
Gets the value of the toTypeSpecifier property.- Returns:
- possible object is
TypeSpecifier
-
setToTypeSpecifier
public void setToTypeSpecifier(TypeSpecifier value)
Sets the value of the toTypeSpecifier property.- Parameters:
value- allowed object isTypeSpecifier
-
getToType
public javax.xml.namespace.QName getToType()
Gets the value of the toType property.- Returns:
- possible object is
QName
-
setToType
public void setToType(javax.xml.namespace.QName value)
Sets the value of the toType property.- Parameters:
value- allowed object isQName
-
withToTypeSpecifier
public Convert withToTypeSpecifier(TypeSpecifier value)
-
withToType
public Convert withToType(javax.xml.namespace.QName value)
-
withOperand
public Convert withOperand(Expression value)
- Overrides:
withOperandin classUnaryExpression
-
withSignature
public Convert withSignature(TypeSpecifier... values)
- Overrides:
withSignaturein classUnaryExpression
-
withSignature
public Convert withSignature(java.util.Collection<TypeSpecifier> values)
- Overrides:
withSignaturein classUnaryExpression
-
withAnnotation
public Convert withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classUnaryExpression
-
withAnnotation
public Convert withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classUnaryExpression
-
withResultTypeSpecifier
public Convert withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classUnaryExpression
-
withLocalId
public Convert withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classUnaryExpression
-
withLocator
public Convert withLocator(java.lang.String value)
- Overrides:
withLocatorin classUnaryExpression
-
withResultTypeName
public Convert withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classUnaryExpression
-
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 classUnaryExpression
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classUnaryExpression
-
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 classUnaryExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classUnaryExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classUnaryExpression
-
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 classUnaryExpression
-
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 classUnaryExpression
-
-