Class Time
- 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:
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
Fields Modifier and Type Field Description protected Expressionhourprotected Expressionmillisecondprotected Expressionminuteprotected Expressionsecond-
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 Time()
-
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)ExpressiongetHour()Gets the value of the hour property.ExpressiongetMillisecond()Gets the value of the millisecond property.ExpressiongetMinute()Gets the value of the minute property.ExpressiongetSecond()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.java.lang.StringtoString()TimewithAnnotation(java.util.Collection<CqlToElmBase> values)TimewithAnnotation(CqlToElmBase... values)TimewithHour(Expression value)TimewithLocalId(java.lang.String value)TimewithLocator(java.lang.String value)TimewithMillisecond(Expression value)TimewithMinute(Expression value)TimewithResultTypeName(javax.xml.namespace.QName value)TimewithResultTypeSpecifier(TypeSpecifier value)TimewithSecond(Expression value)TimewithSignature(java.util.Collection<TypeSpecifier> values)TimewithSignature(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
-
hour
protected Expression hour
-
minute
protected Expression minute
-
second
protected Expression second
-
millisecond
protected Expression millisecond
-
-
Method Detail
-
getHour
public Expression getHour()
Gets the value of the hour property.- Returns:
- possible object is
Expression
-
setHour
public void setHour(Expression value)
Sets the value of the hour property.- Parameters:
value- allowed object isExpression
-
getMinute
public Expression getMinute()
Gets the value of the minute property.- Returns:
- possible object is
Expression
-
setMinute
public void setMinute(Expression value)
Sets the value of the minute property.- Parameters:
value- allowed object isExpression
-
getSecond
public Expression getSecond()
Gets the value of the second property.- Returns:
- possible object is
Expression
-
setSecond
public void setSecond(Expression value)
Sets the value of the second property.- Parameters:
value- allowed object isExpression
-
getMillisecond
public Expression getMillisecond()
Gets the value of the millisecond property.- Returns:
- possible object is
Expression
-
setMillisecond
public void setMillisecond(Expression value)
Sets the value of the millisecond property.- Parameters:
value- allowed object isExpression
-
withHour
public Time withHour(Expression value)
-
withMinute
public Time withMinute(Expression value)
-
withSecond
public Time withSecond(Expression value)
-
withMillisecond
public Time withMillisecond(Expression value)
-
withSignature
public Time withSignature(TypeSpecifier... values)
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
public Time withSignature(java.util.Collection<TypeSpecifier> values)
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
public Time withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
public Time withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
public Time withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
public Time withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
public Time withLocator(java.lang.String value)
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
public Time 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
-
-