All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.TriggerDefinition Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.22.0
Show newest version
//
// 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.01.12 at 11:04:27 AM MST 
//


package org.hl7.fhir;

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 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;


/**
 * If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions
 * 
 * 

Java class for TriggerDefinition complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="TriggerDefinition">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}Element">
 *       <sequence>
 *         <element name="type" type="{http://hl7.org/fhir}TriggerType"/>
 *         <element name="eventName" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="eventTimingTiming" type="{http://hl7.org/fhir}Timing"/>
 *           <element name="eventTimingReference" type="{http://hl7.org/fhir}Reference"/>
 *           <element name="eventTimingDate" type="{http://hl7.org/fhir}date"/>
 *           <element name="eventTimingDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *         </choice>
 *         <element name="eventData" type="{http://hl7.org/fhir}DataRequirement" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TriggerDefinition", propOrder = { "type", "eventName", "eventTimingTiming", "eventTimingReference", "eventTimingDate", "eventTimingDateTime", "eventData" }) public class TriggerDefinition extends Element implements Equals, HashCode, ToString { @XmlElement(required = true) protected TriggerType type; protected org.hl7.fhir.String eventName; protected Timing eventTimingTiming; protected Reference eventTimingReference; protected Date eventTimingDate; protected DateTime eventTimingDateTime; protected DataRequirement eventData; /** * Gets the value of the type property. * * @return * possible object is * {@link TriggerType } * */ public TriggerType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link TriggerType } * */ public void setType(TriggerType value) { this.type = value; } /** * Gets the value of the eventName property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getEventName() { return eventName; } /** * Sets the value of the eventName property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setEventName(org.hl7.fhir.String value) { this.eventName = value; } /** * Gets the value of the eventTimingTiming property. * * @return * possible object is * {@link Timing } * */ public Timing getEventTimingTiming() { return eventTimingTiming; } /** * Sets the value of the eventTimingTiming property. * * @param value * allowed object is * {@link Timing } * */ public void setEventTimingTiming(Timing value) { this.eventTimingTiming = value; } /** * Gets the value of the eventTimingReference property. * * @return * possible object is * {@link Reference } * */ public Reference getEventTimingReference() { return eventTimingReference; } /** * Sets the value of the eventTimingReference property. * * @param value * allowed object is * {@link Reference } * */ public void setEventTimingReference(Reference value) { this.eventTimingReference = value; } /** * Gets the value of the eventTimingDate property. * * @return * possible object is * {@link Date } * */ public Date getEventTimingDate() { return eventTimingDate; } /** * Sets the value of the eventTimingDate property. * * @param value * allowed object is * {@link Date } * */ public void setEventTimingDate(Date value) { this.eventTimingDate = value; } /** * Gets the value of the eventTimingDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getEventTimingDateTime() { return eventTimingDateTime; } /** * Sets the value of the eventTimingDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setEventTimingDateTime(DateTime value) { this.eventTimingDateTime = value; } /** * Gets the value of the eventData property. * * @return * possible object is * {@link DataRequirement } * */ public DataRequirement getEventData() { return eventData; } /** * Sets the value of the eventData property. * * @param value * allowed object is * {@link DataRequirement } * */ public void setEventData(DataRequirement value) { this.eventData = value; } public TriggerDefinition withType(TriggerType value) { setType(value); return this; } public TriggerDefinition withEventName(org.hl7.fhir.String value) { setEventName(value); return this; } public TriggerDefinition withEventTimingTiming(Timing value) { setEventTimingTiming(value); return this; } public TriggerDefinition withEventTimingReference(Reference value) { setEventTimingReference(value); return this; } public TriggerDefinition withEventTimingDate(Date value) { setEventTimingDate(value); return this; } public TriggerDefinition withEventTimingDateTime(DateTime value) { setEventTimingDateTime(value); return this; } public TriggerDefinition withEventData(DataRequirement value) { setEventData(value); return this; } @Override public TriggerDefinition withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public TriggerDefinition withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public TriggerDefinition withId(java.lang.String value) { setId(value); return this; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof TriggerDefinition)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final TriggerDefinition that = ((TriggerDefinition) object); { TriggerType lhsType; lhsType = this.getType(); TriggerType rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; } } { org.hl7.fhir.String lhsEventName; lhsEventName = this.getEventName(); org.hl7.fhir.String rhsEventName; rhsEventName = that.getEventName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eventName", lhsEventName), LocatorUtils.property(thatLocator, "eventName", rhsEventName), lhsEventName, rhsEventName)) { return false; } } { Timing lhsEventTimingTiming; lhsEventTimingTiming = this.getEventTimingTiming(); Timing rhsEventTimingTiming; rhsEventTimingTiming = that.getEventTimingTiming(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eventTimingTiming", lhsEventTimingTiming), LocatorUtils.property(thatLocator, "eventTimingTiming", rhsEventTimingTiming), lhsEventTimingTiming, rhsEventTimingTiming)) { return false; } } { Reference lhsEventTimingReference; lhsEventTimingReference = this.getEventTimingReference(); Reference rhsEventTimingReference; rhsEventTimingReference = that.getEventTimingReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eventTimingReference", lhsEventTimingReference), LocatorUtils.property(thatLocator, "eventTimingReference", rhsEventTimingReference), lhsEventTimingReference, rhsEventTimingReference)) { return false; } } { Date lhsEventTimingDate; lhsEventTimingDate = this.getEventTimingDate(); Date rhsEventTimingDate; rhsEventTimingDate = that.getEventTimingDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eventTimingDate", lhsEventTimingDate), LocatorUtils.property(thatLocator, "eventTimingDate", rhsEventTimingDate), lhsEventTimingDate, rhsEventTimingDate)) { return false; } } { DateTime lhsEventTimingDateTime; lhsEventTimingDateTime = this.getEventTimingDateTime(); DateTime rhsEventTimingDateTime; rhsEventTimingDateTime = that.getEventTimingDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eventTimingDateTime", lhsEventTimingDateTime), LocatorUtils.property(thatLocator, "eventTimingDateTime", rhsEventTimingDateTime), lhsEventTimingDateTime, rhsEventTimingDateTime)) { return false; } } { DataRequirement lhsEventData; lhsEventData = this.getEventData(); DataRequirement rhsEventData; rhsEventData = that.getEventData(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eventData", lhsEventData), LocatorUtils.property(thatLocator, "eventData", rhsEventData), lhsEventData, rhsEventData)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { TriggerType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { org.hl7.fhir.String theEventName; theEventName = this.getEventName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eventName", theEventName), currentHashCode, theEventName); } { Timing theEventTimingTiming; theEventTimingTiming = this.getEventTimingTiming(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eventTimingTiming", theEventTimingTiming), currentHashCode, theEventTimingTiming); } { Reference theEventTimingReference; theEventTimingReference = this.getEventTimingReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eventTimingReference", theEventTimingReference), currentHashCode, theEventTimingReference); } { Date theEventTimingDate; theEventTimingDate = this.getEventTimingDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eventTimingDate", theEventTimingDate), currentHashCode, theEventTimingDate); } { DateTime theEventTimingDateTime; theEventTimingDateTime = this.getEventTimingDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eventTimingDateTime", theEventTimingDateTime), currentHashCode, theEventTimingDateTime); } { DataRequirement theEventData; theEventData = this.getEventData(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eventData", theEventData), currentHashCode, theEventData); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public java.lang.String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { TriggerType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { org.hl7.fhir.String theEventName; theEventName = this.getEventName(); strategy.appendField(locator, this, "eventName", buffer, theEventName); } { Timing theEventTimingTiming; theEventTimingTiming = this.getEventTimingTiming(); strategy.appendField(locator, this, "eventTimingTiming", buffer, theEventTimingTiming); } { Reference theEventTimingReference; theEventTimingReference = this.getEventTimingReference(); strategy.appendField(locator, this, "eventTimingReference", buffer, theEventTimingReference); } { Date theEventTimingDate; theEventTimingDate = this.getEventTimingDate(); strategy.appendField(locator, this, "eventTimingDate", buffer, theEventTimingDate); } { DateTime theEventTimingDateTime; theEventTimingDateTime = this.getEventTimingDateTime(); strategy.appendField(locator, this, "eventTimingDateTime", buffer, theEventTimingDateTime); } { DataRequirement theEventData; theEventData = this.getEventData(); strategy.appendField(locator, this, "eventData", buffer, theEventData); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy