Class Round
- 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:
RoundEvaluator
public class Round extends OperatorExpression implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Round operator returns the nearest integer to its argument. The semantics of round are defined as a traditional round, meaning that a decimal value of 0.5 or higher will round to 1. If the argument is null, the result is null. Precision determines the decimal place at which the rounding will occur. If precision is not specified or null, 0 is assumed.Java class for Round complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Round"> <complexContent> <extension base="{urn:hl7-org:elm:r1}OperatorExpression"> <sequence> <element name="operand" type="{urn:hl7-org:elm:r1}Expression"/> <element name="precision" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Expressionoperandprotected Expressionprecision-
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 Round()
-
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)ExpressiongetOperand()Gets the value of the operand property.ExpressiongetPrecision()Gets the value of the precision property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetOperand(Expression value)Sets the value of the operand property.voidsetPrecision(Expression value)Sets the value of the precision property.java.lang.StringtoString()RoundwithAnnotation(java.util.Collection<CqlToElmBase> values)RoundwithAnnotation(CqlToElmBase... values)RoundwithLocalId(java.lang.String value)RoundwithLocator(java.lang.String value)RoundwithOperand(Expression value)RoundwithPrecision(Expression value)RoundwithResultTypeName(javax.xml.namespace.QName value)RoundwithResultTypeSpecifier(TypeSpecifier value)RoundwithSignature(java.util.Collection<TypeSpecifier> values)RoundwithSignature(TypeSpecifier... values)-
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
-
operand
protected Expression operand
-
precision
protected Expression precision
-
-
Method Detail
-
getOperand
public Expression getOperand()
Gets the value of the operand property.- Returns:
- possible object is
Expression
-
setOperand
public void setOperand(Expression value)
Sets the value of the operand property.- Parameters:
value- allowed object isExpression
-
getPrecision
public Expression getPrecision()
Gets the value of the precision property.- Returns:
- possible object is
Expression
-
setPrecision
public void setPrecision(Expression value)
Sets the value of the precision property.- Parameters:
value- allowed object isExpression
-
withOperand
public Round withOperand(Expression value)
-
withPrecision
public Round withPrecision(Expression value)
-
withSignature
public Round withSignature(TypeSpecifier... values)
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
public Round withSignature(java.util.Collection<TypeSpecifier> values)
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
public Round withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
public Round withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
public Round withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
public Round withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
public Round withLocator(java.lang.String value)
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
public Round withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classOperatorExpression
-
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 classOperatorExpression
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classOperatorExpression
-
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 classOperatorExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classOperatorExpression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classOperatorExpression
-
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 classOperatorExpression
-
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 classOperatorExpression
-
-