org.cqframework.cql.elm.execution.Time Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.04.13 at 05:43:32 PM MDT
//
package org.cqframework.cql.elm.execution;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* The Time operator constructs a time value from the given components.
*
* At least one component other than timezoneOffset 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.
*
* If timezoneOffset is not specified, it is defaulted to the timezone offset of the evaluation request.
*
* 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}Expression">
* <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"/>
* <element name="timezoneOffset" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Time", namespace = "urn:hl7-org:elm:r1", propOrder = {
"hour",
"minute",
"second",
"millisecond",
"timezoneOffset"
})
public class Time
extends Expression
implements Equals, HashCode, ToString
{
@XmlElement(namespace = "urn:hl7-org:elm:r1", required = true)
protected Expression hour;
@XmlElement(namespace = "urn:hl7-org:elm:r1")
protected Expression minute;
@XmlElement(namespace = "urn:hl7-org:elm:r1")
protected Expression second;
@XmlElement(namespace = "urn:hl7-org:elm:r1")
protected Expression millisecond;
@XmlElement(namespace = "urn:hl7-org:elm:r1")
protected Expression timezoneOffset;
/**
* Gets the value of the hour property.
*
* @return
* possible object is
* {@link Expression }
*
*/
public Expression getHour() {
return hour;
}
/**
* Sets the value of the hour property.
*
* @param value
* allowed object is
* {@link Expression }
*
*/
public void setHour(Expression value) {
this.hour = value;
}
/**
* Gets the value of the minute property.
*
* @return
* possible object is
* {@link Expression }
*
*/
public Expression getMinute() {
return minute;
}
/**
* Sets the value of the minute property.
*
* @param value
* allowed object is
* {@link Expression }
*
*/
public void setMinute(Expression value) {
this.minute = value;
}
/**
* Gets the value of the second property.
*
* @return
* possible object is
* {@link Expression }
*
*/
public Expression getSecond() {
return second;
}
/**
* Sets the value of the second property.
*
* @param value
* allowed object is
* {@link Expression }
*
*/
public void setSecond(Expression value) {
this.second = value;
}
/**
* Gets the value of the millisecond property.
*
* @return
* possible object is
* {@link Expression }
*
*/
public Expression getMillisecond() {
return millisecond;
}
/**
* Sets the value of the millisecond property.
*
* @param value
* allowed object is
* {@link Expression }
*
*/
public void setMillisecond(Expression value) {
this.millisecond = value;
}
/**
* Gets the value of the timezoneOffset property.
*
* @return
* possible object is
* {@link Expression }
*
*/
public Expression getTimezoneOffset() {
return timezoneOffset;
}
/**
* Sets the value of the timezoneOffset property.
*
* @param value
* allowed object is
* {@link Expression }
*
*/
public void setTimezoneOffset(Expression value) {
this.timezoneOffset = value;
}
public Time withHour(Expression value) {
setHour(value);
return this;
}
public Time withMinute(Expression value) {
setMinute(value);
return this;
}
public Time withSecond(Expression value) {
setSecond(value);
return this;
}
public Time withMillisecond(Expression value) {
setMillisecond(value);
return this;
}
public Time withTimezoneOffset(Expression value) {
setTimezoneOffset(value);
return this;
}
@Override
public Time withAnnotation(Object... values) {
if (values!= null) {
for (Object value: values) {
getAnnotation().add(value);
}
}
return this;
}
@Override
public Time withAnnotation(Collection