Class CanConvert
- java.lang.Object
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class CanConvert extends UnaryExpression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The CanConvert operator returns true if the given value can be converted to a specific type, and false otherwise. This operator returns true for 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 checked using the ISO-8601 standard format: YYYY-MM-DDThh:mm:ss(+|-)hh:mm.Java class for CanConvert complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CanConvert"> <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 CanConvert()
-
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()CanConvertwithAnnotation(java.util.Collection<CqlToElmBase> values)CanConvertwithAnnotation(CqlToElmBase... values)CanConvertwithLocalId(java.lang.String value)CanConvertwithLocator(java.lang.String value)CanConvertwithOperand(Expression value)CanConvertwithResultTypeName(javax.xml.namespace.QName value)CanConvertwithResultTypeSpecifier(TypeSpecifier value)CanConvertwithSignature(java.util.Collection<TypeSpecifier> values)CanConvertwithSignature(TypeSpecifier... values)CanConvertwithToType(javax.xml.namespace.QName value)CanConvertwithToTypeSpecifier(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 CanConvert withToTypeSpecifier(TypeSpecifier value)
-
withToType
public CanConvert withToType(javax.xml.namespace.QName value)
-
withOperand
public CanConvert withOperand(Expression value)
- Overrides:
withOperandin classUnaryExpression
-
withSignature
public CanConvert withSignature(TypeSpecifier... values)
- Overrides:
withSignaturein classUnaryExpression
-
withSignature
public CanConvert withSignature(java.util.Collection<TypeSpecifier> values)
- Overrides:
withSignaturein classUnaryExpression
-
withAnnotation
public CanConvert withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classUnaryExpression
-
withAnnotation
public CanConvert withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classUnaryExpression
-
withResultTypeSpecifier
public CanConvert withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classUnaryExpression
-
withLocalId
public CanConvert withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classUnaryExpression
-
withLocator
public CanConvert withLocator(java.lang.String value)
- Overrides:
withLocatorin classUnaryExpression
-
withResultTypeName
public CanConvert 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
-
-