Class Time
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
TimeEvaluator
public class Time
extends OperatorExpression
implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Time operator constructs a time value from the given components.
At least one component must be specified, and no component may be specified at a precision below an unspecified precision. For example, minute may be null, but if it is, second, and millisecond must all be null as well.
Although the milliseconds are specified with a separate component, seconds and milliseconds are combined and represented as a [.id]#Decimal# for the purposes of comparison.
Java class for Time complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Time">
<complexContent>
<extension base="{urn:hl7-org:elm:r1}OperatorExpression">
<sequence>
<element name="hour" type="{urn:hl7-org:elm:r1}Expression"/>
<element name="minute" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="second" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="millisecond" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected Expressionprotected Expressionprotected ExpressionFields inherited from class org.cqframework.cql.elm.execution.OperatorExpression
signatureFields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) getHour()Gets the value of the hour property.Gets the value of the millisecond property.Gets the value of the minute property.Gets the value of the second property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) voidsetHour(Expression value) Sets the value of the hour property.voidsetMillisecond(Expression value) Sets the value of the millisecond property.voidsetMinute(Expression value) Sets the value of the minute property.voidsetSecond(Expression value) Sets the value of the second property.toString()withAnnotation(Collection<CqlToElmBase> values) withAnnotation(CqlToElmBase... values) withHour(Expression value) withLocalId(String value) withLocator(String value) withMillisecond(Expression value) withMinute(Expression value) withResultTypeName(QName value) withSecond(Expression value) withSignature(Collection<TypeSpecifier> values) withSignature(TypeSpecifier... values) Methods inherited from class org.cqframework.cql.elm.execution.OperatorExpression
getSignatureMethods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifierMethods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
Field Details
-
hour
-
minute
-
second
-
millisecond
-
-
Constructor Details
-
Time
public Time()
-
-
Method Details
-
getHour
Gets the value of the hour property.- Returns:
- possible object is
Expression
-
setHour
Sets the value of the hour property.- Parameters:
value- allowed object isExpression
-
getMinute
Gets the value of the minute property.- Returns:
- possible object is
Expression
-
setMinute
Sets the value of the minute property.- Parameters:
value- allowed object isExpression
-
getSecond
Gets the value of the second property.- Returns:
- possible object is
Expression
-
setSecond
Sets the value of the second property.- Parameters:
value- allowed object isExpression
-
getMillisecond
Gets the value of the millisecond property.- Returns:
- possible object is
Expression
-
setMillisecond
Sets the value of the millisecond property.- Parameters:
value- allowed object isExpression
-
withHour
-
withMinute
-
withSecond
-
withMillisecond
-
withSignature
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
- Overrides:
withResultTypeNamein classOperatorExpression
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classOperatorExpression
-
equals
- 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
- Overrides:
toStringin classOperatorExpression
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classOperatorExpression
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classOperatorExpression
-