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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.08.16 at 09:36:55 AM MDT 
//


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
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.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * If the element is present, it must have either a @value, an @id, or extensions
 * 
 * 

Java class for Conformance complex type. * *

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

 * <complexType name="Conformance">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
 *         <element name="version" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="name" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="status" type="{http://hl7.org/fhir}ConformanceResourceStatus"/>
 *         <element name="experimental" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime"/>
 *         <element name="publisher" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="contact" type="{http://hl7.org/fhir}Conformance.Contact" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="useContext" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="requirements" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="copyright" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="kind" type="{http://hl7.org/fhir}ConformanceStatementKind"/>
 *         <element name="software" type="{http://hl7.org/fhir}Conformance.Software" minOccurs="0"/>
 *         <element name="implementation" type="{http://hl7.org/fhir}Conformance.Implementation" minOccurs="0"/>
 *         <element name="fhirVersion" type="{http://hl7.org/fhir}id"/>
 *         <element name="acceptUnknown" type="{http://hl7.org/fhir}UnknownContentCode"/>
 *         <element name="format" type="{http://hl7.org/fhir}code" maxOccurs="unbounded"/>
 *         <element name="profile" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="rest" type="{http://hl7.org/fhir}Conformance.Rest" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="messaging" type="{http://hl7.org/fhir}Conformance.Messaging" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="document" type="{http://hl7.org/fhir}Conformance.Document" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Conformance", propOrder = { "url", "version", "name", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "requirements", "copyright", "kind", "software", "implementation", "fhirVersion", "acceptUnknown", "format", "profile", "rest", "messaging", "document" }) public class Conformance extends DomainResource implements Equals2, HashCode2, ToString2 { protected Uri url; protected org.hl7.fhir.String version; protected org.hl7.fhir.String name; @XmlElement(required = true) protected ConformanceResourceStatus status; protected Boolean experimental; @XmlElement(required = true) protected DateTime date; protected org.hl7.fhir.String publisher; protected List contact; protected org.hl7.fhir.String description; protected List useContext; protected org.hl7.fhir.String requirements; protected org.hl7.fhir.String copyright; @XmlElement(required = true) protected ConformanceStatementKind kind; protected ConformanceSoftware software; protected ConformanceImplementation implementation; @XmlElement(required = true) protected Id fhirVersion; @XmlElement(required = true) protected UnknownContentCode acceptUnknown; @XmlElement(required = true) protected List format; protected List profile; protected List rest; protected List messaging; protected List document; /** * Gets the value of the url property. * * @return * possible object is * {@link Uri } * */ public Uri getUrl() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is * {@link Uri } * */ public void setUrl(Uri value) { this.url = value; } /** * Gets the value of the version property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setVersion(org.hl7.fhir.String value) { this.version = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setName(org.hl7.fhir.String value) { this.name = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link ConformanceResourceStatus } * */ public ConformanceResourceStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link ConformanceResourceStatus } * */ public void setStatus(ConformanceResourceStatus value) { this.status = value; } /** * Gets the value of the experimental property. * * @return * possible object is * {@link Boolean } * */ public Boolean getExperimental() { return experimental; } /** * Sets the value of the experimental property. * * @param value * allowed object is * {@link Boolean } * */ public void setExperimental(Boolean value) { this.experimental = value; } /** * Gets the value of the date property. * * @return * possible object is * {@link DateTime } * */ public DateTime getDate() { return date; } /** * Sets the value of the date property. * * @param value * allowed object is * {@link DateTime } * */ public void setDate(DateTime value) { this.date = value; } /** * Gets the value of the publisher property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getPublisher() { return publisher; } /** * Sets the value of the publisher property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setPublisher(org.hl7.fhir.String value) { this.publisher = value; } /** * Gets the value of the contact property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the contact property. * *

* For example, to add a new item, do as follows: *

     *    getContact().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceContact } * * */ public List getContact() { if (contact == null) { contact = new ArrayList(); } return this.contact; } /** * Gets the value of the description property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setDescription(org.hl7.fhir.String value) { this.description = value; } /** * Gets the value of the useContext property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the useContext property. * *

* For example, to add a new item, do as follows: *

     *    getUseContext().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getUseContext() { if (useContext == null) { useContext = new ArrayList(); } return this.useContext; } /** * Gets the value of the requirements property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getRequirements() { return requirements; } /** * Sets the value of the requirements property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setRequirements(org.hl7.fhir.String value) { this.requirements = value; } /** * Gets the value of the copyright property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getCopyright() { return copyright; } /** * Sets the value of the copyright property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setCopyright(org.hl7.fhir.String value) { this.copyright = value; } /** * Gets the value of the kind property. * * @return * possible object is * {@link ConformanceStatementKind } * */ public ConformanceStatementKind getKind() { return kind; } /** * Sets the value of the kind property. * * @param value * allowed object is * {@link ConformanceStatementKind } * */ public void setKind(ConformanceStatementKind value) { this.kind = value; } /** * Gets the value of the software property. * * @return * possible object is * {@link ConformanceSoftware } * */ public ConformanceSoftware getSoftware() { return software; } /** * Sets the value of the software property. * * @param value * allowed object is * {@link ConformanceSoftware } * */ public void setSoftware(ConformanceSoftware value) { this.software = value; } /** * Gets the value of the implementation property. * * @return * possible object is * {@link ConformanceImplementation } * */ public ConformanceImplementation getImplementation() { return implementation; } /** * Sets the value of the implementation property. * * @param value * allowed object is * {@link ConformanceImplementation } * */ public void setImplementation(ConformanceImplementation value) { this.implementation = value; } /** * Gets the value of the fhirVersion property. * * @return * possible object is * {@link Id } * */ public Id getFhirVersion() { return fhirVersion; } /** * Sets the value of the fhirVersion property. * * @param value * allowed object is * {@link Id } * */ public void setFhirVersion(Id value) { this.fhirVersion = value; } /** * Gets the value of the acceptUnknown property. * * @return * possible object is * {@link UnknownContentCode } * */ public UnknownContentCode getAcceptUnknown() { return acceptUnknown; } /** * Sets the value of the acceptUnknown property. * * @param value * allowed object is * {@link UnknownContentCode } * */ public void setAcceptUnknown(UnknownContentCode value) { this.acceptUnknown = value; } /** * Gets the value of the format property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the format property. * *

* For example, to add a new item, do as follows: *

     *    getFormat().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Code } * * */ public List getFormat() { if (format == null) { format = new ArrayList(); } return this.format; } /** * Gets the value of the profile property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the profile property. * *

* For example, to add a new item, do as follows: *

     *    getProfile().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getProfile() { if (profile == null) { profile = new ArrayList(); } return this.profile; } /** * Gets the value of the rest property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the rest property. * *

* For example, to add a new item, do as follows: *

     *    getRest().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceRest } * * */ public List getRest() { if (rest == null) { rest = new ArrayList(); } return this.rest; } /** * Gets the value of the messaging property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the messaging property. * *

* For example, to add a new item, do as follows: *

     *    getMessaging().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceMessaging } * * */ public List getMessaging() { if (messaging == null) { messaging = new ArrayList(); } return this.messaging; } /** * Gets the value of the document property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the document property. * *

* For example, to add a new item, do as follows: *

     *    getDocument().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceDocument } * * */ public List getDocument() { if (document == null) { document = new ArrayList(); } return this.document; } public Conformance withUrl(Uri value) { setUrl(value); return this; } public Conformance withVersion(org.hl7.fhir.String value) { setVersion(value); return this; } public Conformance withName(org.hl7.fhir.String value) { setName(value); return this; } public Conformance withStatus(ConformanceResourceStatus value) { setStatus(value); return this; } public Conformance withExperimental(Boolean value) { setExperimental(value); return this; } public Conformance withDate(DateTime value) { setDate(value); return this; } public Conformance withPublisher(org.hl7.fhir.String value) { setPublisher(value); return this; } public Conformance withContact(ConformanceContact... values) { if (values!= null) { for (ConformanceContact value: values) { getContact().add(value); } } return this; } public Conformance withContact(Collection values) { if (values!= null) { getContact().addAll(values); } return this; } public Conformance withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public Conformance withUseContext(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getUseContext().add(value); } } return this; } public Conformance withUseContext(Collection values) { if (values!= null) { getUseContext().addAll(values); } return this; } public Conformance withRequirements(org.hl7.fhir.String value) { setRequirements(value); return this; } public Conformance withCopyright(org.hl7.fhir.String value) { setCopyright(value); return this; } public Conformance withKind(ConformanceStatementKind value) { setKind(value); return this; } public Conformance withSoftware(ConformanceSoftware value) { setSoftware(value); return this; } public Conformance withImplementation(ConformanceImplementation value) { setImplementation(value); return this; } public Conformance withFhirVersion(Id value) { setFhirVersion(value); return this; } public Conformance withAcceptUnknown(UnknownContentCode value) { setAcceptUnknown(value); return this; } public Conformance withFormat(Code... values) { if (values!= null) { for (Code value: values) { getFormat().add(value); } } return this; } public Conformance withFormat(Collection values) { if (values!= null) { getFormat().addAll(values); } return this; } public Conformance withProfile(Reference... values) { if (values!= null) { for (Reference value: values) { getProfile().add(value); } } return this; } public Conformance withProfile(Collection values) { if (values!= null) { getProfile().addAll(values); } return this; } public Conformance withRest(ConformanceRest... values) { if (values!= null) { for (ConformanceRest value: values) { getRest().add(value); } } return this; } public Conformance withRest(Collection values) { if (values!= null) { getRest().addAll(values); } return this; } public Conformance withMessaging(ConformanceMessaging... values) { if (values!= null) { for (ConformanceMessaging value: values) { getMessaging().add(value); } } return this; } public Conformance withMessaging(Collection values) { if (values!= null) { getMessaging().addAll(values); } return this; } public Conformance withDocument(ConformanceDocument... values) { if (values!= null) { for (ConformanceDocument value: values) { getDocument().add(value); } } return this; } public Conformance withDocument(Collection values) { if (values!= null) { getDocument().addAll(values); } return this; } @Override public Conformance withText(Narrative value) { setText(value); return this; } @Override public Conformance withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public Conformance withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public Conformance withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public Conformance withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public Conformance withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public Conformance withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public Conformance withId(Id value) { setId(value); return this; } @Override public Conformance withMeta(Meta value) { setMeta(value); return this; } @Override public Conformance withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public Conformance withLanguage(Code value) { setLanguage(value); return this; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final Conformance that = ((Conformance) object); { Uri lhsUrl; lhsUrl = this.getUrl(); Uri rhsUrl; rhsUrl = that.getUrl(); if (!strategy.equals(LocatorUtils.property(thisLocator, "url", lhsUrl), LocatorUtils.property(thatLocator, "url", rhsUrl), lhsUrl, rhsUrl, (this.url!= null), (that.url!= null))) { return false; } } { org.hl7.fhir.String lhsVersion; lhsVersion = this.getVersion(); org.hl7.fhir.String rhsVersion; rhsVersion = that.getVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion, (this.version!= null), (that.version!= null))) { return false; } } { org.hl7.fhir.String lhsName; lhsName = this.getName(); org.hl7.fhir.String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) { return false; } } { ConformanceResourceStatus lhsStatus; lhsStatus = this.getStatus(); ConformanceResourceStatus rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) { return false; } } { Boolean lhsExperimental; lhsExperimental = this.getExperimental(); Boolean rhsExperimental; rhsExperimental = that.getExperimental(); if (!strategy.equals(LocatorUtils.property(thisLocator, "experimental", lhsExperimental), LocatorUtils.property(thatLocator, "experimental", rhsExperimental), lhsExperimental, rhsExperimental, (this.experimental!= null), (that.experimental!= null))) { return false; } } { DateTime lhsDate; lhsDate = this.getDate(); DateTime rhsDate; rhsDate = that.getDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "date", lhsDate), LocatorUtils.property(thatLocator, "date", rhsDate), lhsDate, rhsDate, (this.date!= null), (that.date!= null))) { return false; } } { org.hl7.fhir.String lhsPublisher; lhsPublisher = this.getPublisher(); org.hl7.fhir.String rhsPublisher; rhsPublisher = that.getPublisher(); if (!strategy.equals(LocatorUtils.property(thisLocator, "publisher", lhsPublisher), LocatorUtils.property(thatLocator, "publisher", rhsPublisher), lhsPublisher, rhsPublisher, (this.publisher!= null), (that.publisher!= null))) { return false; } } { List lhsContact; lhsContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); List rhsContact; rhsContact = (((that.contact!= null)&&(!that.contact.isEmpty()))?that.getContact():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contact", lhsContact), LocatorUtils.property(thatLocator, "contact", rhsContact), lhsContact, rhsContact, ((this.contact!= null)&&(!this.contact.isEmpty())), ((that.contact!= null)&&(!that.contact.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsDescription; lhsDescription = this.getDescription(); org.hl7.fhir.String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) { return false; } } { List lhsUseContext; lhsUseContext = (((this.useContext!= null)&&(!this.useContext.isEmpty()))?this.getUseContext():null); List rhsUseContext; rhsUseContext = (((that.useContext!= null)&&(!that.useContext.isEmpty()))?that.getUseContext():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "useContext", lhsUseContext), LocatorUtils.property(thatLocator, "useContext", rhsUseContext), lhsUseContext, rhsUseContext, ((this.useContext!= null)&&(!this.useContext.isEmpty())), ((that.useContext!= null)&&(!that.useContext.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsRequirements; lhsRequirements = this.getRequirements(); org.hl7.fhir.String rhsRequirements; rhsRequirements = that.getRequirements(); if (!strategy.equals(LocatorUtils.property(thisLocator, "requirements", lhsRequirements), LocatorUtils.property(thatLocator, "requirements", rhsRequirements), lhsRequirements, rhsRequirements, (this.requirements!= null), (that.requirements!= null))) { return false; } } { org.hl7.fhir.String lhsCopyright; lhsCopyright = this.getCopyright(); org.hl7.fhir.String rhsCopyright; rhsCopyright = that.getCopyright(); if (!strategy.equals(LocatorUtils.property(thisLocator, "copyright", lhsCopyright), LocatorUtils.property(thatLocator, "copyright", rhsCopyright), lhsCopyright, rhsCopyright, (this.copyright!= null), (that.copyright!= null))) { return false; } } { ConformanceStatementKind lhsKind; lhsKind = this.getKind(); ConformanceStatementKind rhsKind; rhsKind = that.getKind(); if (!strategy.equals(LocatorUtils.property(thisLocator, "kind", lhsKind), LocatorUtils.property(thatLocator, "kind", rhsKind), lhsKind, rhsKind, (this.kind!= null), (that.kind!= null))) { return false; } } { ConformanceSoftware lhsSoftware; lhsSoftware = this.getSoftware(); ConformanceSoftware rhsSoftware; rhsSoftware = that.getSoftware(); if (!strategy.equals(LocatorUtils.property(thisLocator, "software", lhsSoftware), LocatorUtils.property(thatLocator, "software", rhsSoftware), lhsSoftware, rhsSoftware, (this.software!= null), (that.software!= null))) { return false; } } { ConformanceImplementation lhsImplementation; lhsImplementation = this.getImplementation(); ConformanceImplementation rhsImplementation; rhsImplementation = that.getImplementation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "implementation", lhsImplementation), LocatorUtils.property(thatLocator, "implementation", rhsImplementation), lhsImplementation, rhsImplementation, (this.implementation!= null), (that.implementation!= null))) { return false; } } { Id lhsFhirVersion; lhsFhirVersion = this.getFhirVersion(); Id rhsFhirVersion; rhsFhirVersion = that.getFhirVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "fhirVersion", lhsFhirVersion), LocatorUtils.property(thatLocator, "fhirVersion", rhsFhirVersion), lhsFhirVersion, rhsFhirVersion, (this.fhirVersion!= null), (that.fhirVersion!= null))) { return false; } } { UnknownContentCode lhsAcceptUnknown; lhsAcceptUnknown = this.getAcceptUnknown(); UnknownContentCode rhsAcceptUnknown; rhsAcceptUnknown = that.getAcceptUnknown(); if (!strategy.equals(LocatorUtils.property(thisLocator, "acceptUnknown", lhsAcceptUnknown), LocatorUtils.property(thatLocator, "acceptUnknown", rhsAcceptUnknown), lhsAcceptUnknown, rhsAcceptUnknown, (this.acceptUnknown!= null), (that.acceptUnknown!= null))) { return false; } } { List lhsFormat; lhsFormat = (((this.format!= null)&&(!this.format.isEmpty()))?this.getFormat():null); List rhsFormat; rhsFormat = (((that.format!= null)&&(!that.format.isEmpty()))?that.getFormat():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "format", lhsFormat), LocatorUtils.property(thatLocator, "format", rhsFormat), lhsFormat, rhsFormat, ((this.format!= null)&&(!this.format.isEmpty())), ((that.format!= null)&&(!that.format.isEmpty())))) { return false; } } { List lhsProfile; lhsProfile = (((this.profile!= null)&&(!this.profile.isEmpty()))?this.getProfile():null); List rhsProfile; rhsProfile = (((that.profile!= null)&&(!that.profile.isEmpty()))?that.getProfile():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "profile", lhsProfile), LocatorUtils.property(thatLocator, "profile", rhsProfile), lhsProfile, rhsProfile, ((this.profile!= null)&&(!this.profile.isEmpty())), ((that.profile!= null)&&(!that.profile.isEmpty())))) { return false; } } { List lhsRest; lhsRest = (((this.rest!= null)&&(!this.rest.isEmpty()))?this.getRest():null); List rhsRest; rhsRest = (((that.rest!= null)&&(!that.rest.isEmpty()))?that.getRest():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "rest", lhsRest), LocatorUtils.property(thatLocator, "rest", rhsRest), lhsRest, rhsRest, ((this.rest!= null)&&(!this.rest.isEmpty())), ((that.rest!= null)&&(!that.rest.isEmpty())))) { return false; } } { List lhsMessaging; lhsMessaging = (((this.messaging!= null)&&(!this.messaging.isEmpty()))?this.getMessaging():null); List rhsMessaging; rhsMessaging = (((that.messaging!= null)&&(!that.messaging.isEmpty()))?that.getMessaging():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "messaging", lhsMessaging), LocatorUtils.property(thatLocator, "messaging", rhsMessaging), lhsMessaging, rhsMessaging, ((this.messaging!= null)&&(!this.messaging.isEmpty())), ((that.messaging!= null)&&(!that.messaging.isEmpty())))) { return false; } } { List lhsDocument; lhsDocument = (((this.document!= null)&&(!this.document.isEmpty()))?this.getDocument():null); List rhsDocument; rhsDocument = (((that.document!= null)&&(!that.document.isEmpty()))?that.getDocument():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "document", lhsDocument), LocatorUtils.property(thatLocator, "document", rhsDocument), lhsDocument, rhsDocument, ((this.document!= null)&&(!this.document.isEmpty())), ((that.document!= null)&&(!that.document.isEmpty())))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { Uri theUrl; theUrl = this.getUrl(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theUrl), currentHashCode, theUrl, (this.url!= null)); } { org.hl7.fhir.String theVersion; theVersion = this.getVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion, (this.version!= null)); } { org.hl7.fhir.String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { ConformanceResourceStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { Boolean theExperimental; theExperimental = this.getExperimental(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "experimental", theExperimental), currentHashCode, theExperimental, (this.experimental!= null)); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null)); } { org.hl7.fhir.String thePublisher; thePublisher = this.getPublisher(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "publisher", thePublisher), currentHashCode, thePublisher, (this.publisher!= null)); } { List theContact; theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact, ((this.contact!= null)&&(!this.contact.isEmpty()))); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { List theUseContext; theUseContext = (((this.useContext!= null)&&(!this.useContext.isEmpty()))?this.getUseContext():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "useContext", theUseContext), currentHashCode, theUseContext, ((this.useContext!= null)&&(!this.useContext.isEmpty()))); } { org.hl7.fhir.String theRequirements; theRequirements = this.getRequirements(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requirements", theRequirements), currentHashCode, theRequirements, (this.requirements!= null)); } { org.hl7.fhir.String theCopyright; theCopyright = this.getCopyright(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "copyright", theCopyright), currentHashCode, theCopyright, (this.copyright!= null)); } { ConformanceStatementKind theKind; theKind = this.getKind(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kind", theKind), currentHashCode, theKind, (this.kind!= null)); } { ConformanceSoftware theSoftware; theSoftware = this.getSoftware(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "software", theSoftware), currentHashCode, theSoftware, (this.software!= null)); } { ConformanceImplementation theImplementation; theImplementation = this.getImplementation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "implementation", theImplementation), currentHashCode, theImplementation, (this.implementation!= null)); } { Id theFhirVersion; theFhirVersion = this.getFhirVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fhirVersion", theFhirVersion), currentHashCode, theFhirVersion, (this.fhirVersion!= null)); } { UnknownContentCode theAcceptUnknown; theAcceptUnknown = this.getAcceptUnknown(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "acceptUnknown", theAcceptUnknown), currentHashCode, theAcceptUnknown, (this.acceptUnknown!= null)); } { List theFormat; theFormat = (((this.format!= null)&&(!this.format.isEmpty()))?this.getFormat():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "format", theFormat), currentHashCode, theFormat, ((this.format!= null)&&(!this.format.isEmpty()))); } { List theProfile; theProfile = (((this.profile!= null)&&(!this.profile.isEmpty()))?this.getProfile():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "profile", theProfile), currentHashCode, theProfile, ((this.profile!= null)&&(!this.profile.isEmpty()))); } { List theRest; theRest = (((this.rest!= null)&&(!this.rest.isEmpty()))?this.getRest():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rest", theRest), currentHashCode, theRest, ((this.rest!= null)&&(!this.rest.isEmpty()))); } { List theMessaging; theMessaging = (((this.messaging!= null)&&(!this.messaging.isEmpty()))?this.getMessaging():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "messaging", theMessaging), currentHashCode, theMessaging, ((this.messaging!= null)&&(!this.messaging.isEmpty()))); } { List theDocument; theDocument = (((this.document!= null)&&(!this.document.isEmpty()))?this.getDocument():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "document", theDocument), currentHashCode, theDocument, ((this.document!= null)&&(!this.document.isEmpty()))); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public java.lang.String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { Uri theUrl; theUrl = this.getUrl(); strategy.appendField(locator, this, "url", buffer, theUrl, (this.url!= null)); } { org.hl7.fhir.String theVersion; theVersion = this.getVersion(); strategy.appendField(locator, this, "version", buffer, theVersion, (this.version!= null)); } { org.hl7.fhir.String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { ConformanceResourceStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { Boolean theExperimental; theExperimental = this.getExperimental(); strategy.appendField(locator, this, "experimental", buffer, theExperimental, (this.experimental!= null)); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null)); } { org.hl7.fhir.String thePublisher; thePublisher = this.getPublisher(); strategy.appendField(locator, this, "publisher", buffer, thePublisher, (this.publisher!= null)); } { List theContact; theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); strategy.appendField(locator, this, "contact", buffer, theContact, ((this.contact!= null)&&(!this.contact.isEmpty()))); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { List theUseContext; theUseContext = (((this.useContext!= null)&&(!this.useContext.isEmpty()))?this.getUseContext():null); strategy.appendField(locator, this, "useContext", buffer, theUseContext, ((this.useContext!= null)&&(!this.useContext.isEmpty()))); } { org.hl7.fhir.String theRequirements; theRequirements = this.getRequirements(); strategy.appendField(locator, this, "requirements", buffer, theRequirements, (this.requirements!= null)); } { org.hl7.fhir.String theCopyright; theCopyright = this.getCopyright(); strategy.appendField(locator, this, "copyright", buffer, theCopyright, (this.copyright!= null)); } { ConformanceStatementKind theKind; theKind = this.getKind(); strategy.appendField(locator, this, "kind", buffer, theKind, (this.kind!= null)); } { ConformanceSoftware theSoftware; theSoftware = this.getSoftware(); strategy.appendField(locator, this, "software", buffer, theSoftware, (this.software!= null)); } { ConformanceImplementation theImplementation; theImplementation = this.getImplementation(); strategy.appendField(locator, this, "implementation", buffer, theImplementation, (this.implementation!= null)); } { Id theFhirVersion; theFhirVersion = this.getFhirVersion(); strategy.appendField(locator, this, "fhirVersion", buffer, theFhirVersion, (this.fhirVersion!= null)); } { UnknownContentCode theAcceptUnknown; theAcceptUnknown = this.getAcceptUnknown(); strategy.appendField(locator, this, "acceptUnknown", buffer, theAcceptUnknown, (this.acceptUnknown!= null)); } { List theFormat; theFormat = (((this.format!= null)&&(!this.format.isEmpty()))?this.getFormat():null); strategy.appendField(locator, this, "format", buffer, theFormat, ((this.format!= null)&&(!this.format.isEmpty()))); } { List theProfile; theProfile = (((this.profile!= null)&&(!this.profile.isEmpty()))?this.getProfile():null); strategy.appendField(locator, this, "profile", buffer, theProfile, ((this.profile!= null)&&(!this.profile.isEmpty()))); } { List theRest; theRest = (((this.rest!= null)&&(!this.rest.isEmpty()))?this.getRest():null); strategy.appendField(locator, this, "rest", buffer, theRest, ((this.rest!= null)&&(!this.rest.isEmpty()))); } { List theMessaging; theMessaging = (((this.messaging!= null)&&(!this.messaging.isEmpty()))?this.getMessaging():null); strategy.appendField(locator, this, "messaging", buffer, theMessaging, ((this.messaging!= null)&&(!this.messaging.isEmpty()))); } { List theDocument; theDocument = (((this.document!= null)&&(!this.document.isEmpty()))?this.getDocument():null); strategy.appendField(locator, this, "document", buffer, theDocument, ((this.document!= null)&&(!this.document.isEmpty()))); } return buffer; } public void setContact(List value) { this.contact = value; } public void setUseContext(List value) { this.useContext = value; } public void setFormat(List value) { this.format = value; } public void setProfile(List value) { this.profile = value; } public void setRest(List value) { this.rest = value; } public void setMessaging(List value) { this.messaging = value; } public void setDocument(List value) { this.document = value; } }