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

org.hl7.fhir.ModuleMetadata 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.06.14 at 01:52:11 PM 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 a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions
 * 
 * 

Java class for ModuleMetadata complex type. * *

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

 * <complexType name="ModuleMetadata">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}Element">
 *       <sequence>
 *         <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" 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="title" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="type" type="{http://hl7.org/fhir}ModuleMetadataType"/>
 *         <element name="status" type="{http://hl7.org/fhir}ModuleMetadataStatus"/>
 *         <element name="experimental" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="purpose" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="usage" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="publicationDate" type="{http://hl7.org/fhir}date" minOccurs="0"/>
 *         <element name="lastReviewDate" type="{http://hl7.org/fhir}date" minOccurs="0"/>
 *         <element name="effectivePeriod" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
 *         <element name="coverage" type="{http://hl7.org/fhir}ModuleMetadata.Coverage" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="topic" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="contributor" type="{http://hl7.org/fhir}ModuleMetadata.Contributor" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="publisher" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="contact" type="{http://hl7.org/fhir}ModuleMetadata.Contact" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="copyright" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="relatedResource" type="{http://hl7.org/fhir}ModuleMetadata.RelatedResource" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ModuleMetadata", propOrder = { "url", "identifier", "version", "name", "title", "type", "status", "experimental", "description", "purpose", "usage", "publicationDate", "lastReviewDate", "effectivePeriod", "coverage", "topic", "contributor", "publisher", "contact", "copyright", "relatedResource" }) public class ModuleMetadata extends Element implements Equals2, HashCode2, ToString2 { protected Uri url; protected List identifier; protected org.hl7.fhir.String version; protected org.hl7.fhir.String name; protected org.hl7.fhir.String title; @XmlElement(required = true) protected ModuleMetadataType type; @XmlElement(required = true) protected ModuleMetadataStatus status; protected Boolean experimental; protected org.hl7.fhir.String description; protected org.hl7.fhir.String purpose; protected org.hl7.fhir.String usage; protected Date publicationDate; protected Date lastReviewDate; protected Period effectivePeriod; protected List coverage; protected List topic; protected List contributor; protected org.hl7.fhir.String publisher; protected List contact; protected org.hl7.fhir.String copyright; protected List relatedResource; /** * 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 identifier 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 identifier property. * *

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

     *    getIdentifier().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Identifier } * * */ public List getIdentifier() { if (identifier == null) { identifier = new ArrayList(); } return this.identifier; } /** * 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 title property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setTitle(org.hl7.fhir.String value) { this.title = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link ModuleMetadataType } * */ public ModuleMetadataType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link ModuleMetadataType } * */ public void setType(ModuleMetadataType value) { this.type = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link ModuleMetadataStatus } * */ public ModuleMetadataStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link ModuleMetadataStatus } * */ public void setStatus(ModuleMetadataStatus 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 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 purpose property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getPurpose() { return purpose; } /** * Sets the value of the purpose property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setPurpose(org.hl7.fhir.String value) { this.purpose = value; } /** * Gets the value of the usage property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getUsage() { return usage; } /** * Sets the value of the usage property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setUsage(org.hl7.fhir.String value) { this.usage = value; } /** * Gets the value of the publicationDate property. * * @return * possible object is * {@link Date } * */ public Date getPublicationDate() { return publicationDate; } /** * Sets the value of the publicationDate property. * * @param value * allowed object is * {@link Date } * */ public void setPublicationDate(Date value) { this.publicationDate = value; } /** * Gets the value of the lastReviewDate property. * * @return * possible object is * {@link Date } * */ public Date getLastReviewDate() { return lastReviewDate; } /** * Sets the value of the lastReviewDate property. * * @param value * allowed object is * {@link Date } * */ public void setLastReviewDate(Date value) { this.lastReviewDate = value; } /** * Gets the value of the effectivePeriod property. * * @return * possible object is * {@link Period } * */ public Period getEffectivePeriod() { return effectivePeriod; } /** * Sets the value of the effectivePeriod property. * * @param value * allowed object is * {@link Period } * */ public void setEffectivePeriod(Period value) { this.effectivePeriod = value; } /** * Gets the value of the coverage 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 coverage property. * *

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

     *    getCoverage().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ModuleMetadataCoverage } * * */ public List getCoverage() { if (coverage == null) { coverage = new ArrayList(); } return this.coverage; } /** * Gets the value of the topic 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 topic property. * *

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

     *    getTopic().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getTopic() { if (topic == null) { topic = new ArrayList(); } return this.topic; } /** * Gets the value of the contributor 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 contributor property. * *

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

     *    getContributor().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ModuleMetadataContributor } * * */ public List getContributor() { if (contributor == null) { contributor = new ArrayList(); } return this.contributor; } /** * 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 ModuleMetadataContact } * * */ public List getContact() { if (contact == null) { contact = new ArrayList(); } return this.contact; } /** * 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 relatedResource 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 relatedResource property. * *

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

     *    getRelatedResource().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ModuleMetadataRelatedResource } * * */ public List getRelatedResource() { if (relatedResource == null) { relatedResource = new ArrayList(); } return this.relatedResource; } public ModuleMetadata withUrl(Uri value) { setUrl(value); return this; } public ModuleMetadata withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public ModuleMetadata withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public ModuleMetadata withVersion(org.hl7.fhir.String value) { setVersion(value); return this; } public ModuleMetadata withName(org.hl7.fhir.String value) { setName(value); return this; } public ModuleMetadata withTitle(org.hl7.fhir.String value) { setTitle(value); return this; } public ModuleMetadata withType(ModuleMetadataType value) { setType(value); return this; } public ModuleMetadata withStatus(ModuleMetadataStatus value) { setStatus(value); return this; } public ModuleMetadata withExperimental(Boolean value) { setExperimental(value); return this; } public ModuleMetadata withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public ModuleMetadata withPurpose(org.hl7.fhir.String value) { setPurpose(value); return this; } public ModuleMetadata withUsage(org.hl7.fhir.String value) { setUsage(value); return this; } public ModuleMetadata withPublicationDate(Date value) { setPublicationDate(value); return this; } public ModuleMetadata withLastReviewDate(Date value) { setLastReviewDate(value); return this; } public ModuleMetadata withEffectivePeriod(Period value) { setEffectivePeriod(value); return this; } public ModuleMetadata withCoverage(ModuleMetadataCoverage... values) { if (values!= null) { for (ModuleMetadataCoverage value: values) { getCoverage().add(value); } } return this; } public ModuleMetadata withCoverage(Collection values) { if (values!= null) { getCoverage().addAll(values); } return this; } public ModuleMetadata withTopic(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getTopic().add(value); } } return this; } public ModuleMetadata withTopic(Collection values) { if (values!= null) { getTopic().addAll(values); } return this; } public ModuleMetadata withContributor(ModuleMetadataContributor... values) { if (values!= null) { for (ModuleMetadataContributor value: values) { getContributor().add(value); } } return this; } public ModuleMetadata withContributor(Collection values) { if (values!= null) { getContributor().addAll(values); } return this; } public ModuleMetadata withPublisher(org.hl7.fhir.String value) { setPublisher(value); return this; } public ModuleMetadata withContact(ModuleMetadataContact... values) { if (values!= null) { for (ModuleMetadataContact value: values) { getContact().add(value); } } return this; } public ModuleMetadata withContact(Collection values) { if (values!= null) { getContact().addAll(values); } return this; } public ModuleMetadata withCopyright(org.hl7.fhir.String value) { setCopyright(value); return this; } public ModuleMetadata withRelatedResource(ModuleMetadataRelatedResource... values) { if (values!= null) { for (ModuleMetadataRelatedResource value: values) { getRelatedResource().add(value); } } return this; } public ModuleMetadata withRelatedResource(Collection values) { if (values!= null) { getRelatedResource().addAll(values); } return this; } @Override public ModuleMetadata withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ModuleMetadata withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ModuleMetadata withId(java.lang.String value) { setId(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 ModuleMetadata that = ((ModuleMetadata) 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; } } { List lhsIdentifier; lhsIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); List rhsIdentifier; rhsIdentifier = (((that.identifier!= null)&&(!that.identifier.isEmpty()))?that.getIdentifier():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty())), ((that.identifier!= null)&&(!that.identifier.isEmpty())))) { 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; } } { org.hl7.fhir.String lhsTitle; lhsTitle = this.getTitle(); org.hl7.fhir.String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle, (this.title!= null), (that.title!= null))) { return false; } } { ModuleMetadataType lhsType; lhsType = this.getType(); ModuleMetadataType rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { ModuleMetadataStatus lhsStatus; lhsStatus = this.getStatus(); ModuleMetadataStatus 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; } } { 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; } } { org.hl7.fhir.String lhsPurpose; lhsPurpose = this.getPurpose(); org.hl7.fhir.String rhsPurpose; rhsPurpose = that.getPurpose(); if (!strategy.equals(LocatorUtils.property(thisLocator, "purpose", lhsPurpose), LocatorUtils.property(thatLocator, "purpose", rhsPurpose), lhsPurpose, rhsPurpose, (this.purpose!= null), (that.purpose!= null))) { return false; } } { org.hl7.fhir.String lhsUsage; lhsUsage = this.getUsage(); org.hl7.fhir.String rhsUsage; rhsUsage = that.getUsage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "usage", lhsUsage), LocatorUtils.property(thatLocator, "usage", rhsUsage), lhsUsage, rhsUsage, (this.usage!= null), (that.usage!= null))) { return false; } } { Date lhsPublicationDate; lhsPublicationDate = this.getPublicationDate(); Date rhsPublicationDate; rhsPublicationDate = that.getPublicationDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "publicationDate", lhsPublicationDate), LocatorUtils.property(thatLocator, "publicationDate", rhsPublicationDate), lhsPublicationDate, rhsPublicationDate, (this.publicationDate!= null), (that.publicationDate!= null))) { return false; } } { Date lhsLastReviewDate; lhsLastReviewDate = this.getLastReviewDate(); Date rhsLastReviewDate; rhsLastReviewDate = that.getLastReviewDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lastReviewDate", lhsLastReviewDate), LocatorUtils.property(thatLocator, "lastReviewDate", rhsLastReviewDate), lhsLastReviewDate, rhsLastReviewDate, (this.lastReviewDate!= null), (that.lastReviewDate!= null))) { return false; } } { Period lhsEffectivePeriod; lhsEffectivePeriod = this.getEffectivePeriod(); Period rhsEffectivePeriod; rhsEffectivePeriod = that.getEffectivePeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "effectivePeriod", lhsEffectivePeriod), LocatorUtils.property(thatLocator, "effectivePeriod", rhsEffectivePeriod), lhsEffectivePeriod, rhsEffectivePeriod, (this.effectivePeriod!= null), (that.effectivePeriod!= null))) { return false; } } { List lhsCoverage; lhsCoverage = (((this.coverage!= null)&&(!this.coverage.isEmpty()))?this.getCoverage():null); List rhsCoverage; rhsCoverage = (((that.coverage!= null)&&(!that.coverage.isEmpty()))?that.getCoverage():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "coverage", lhsCoverage), LocatorUtils.property(thatLocator, "coverage", rhsCoverage), lhsCoverage, rhsCoverage, ((this.coverage!= null)&&(!this.coverage.isEmpty())), ((that.coverage!= null)&&(!that.coverage.isEmpty())))) { return false; } } { List lhsTopic; lhsTopic = (((this.topic!= null)&&(!this.topic.isEmpty()))?this.getTopic():null); List rhsTopic; rhsTopic = (((that.topic!= null)&&(!that.topic.isEmpty()))?that.getTopic():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "topic", lhsTopic), LocatorUtils.property(thatLocator, "topic", rhsTopic), lhsTopic, rhsTopic, ((this.topic!= null)&&(!this.topic.isEmpty())), ((that.topic!= null)&&(!that.topic.isEmpty())))) { return false; } } { List lhsContributor; lhsContributor = (((this.contributor!= null)&&(!this.contributor.isEmpty()))?this.getContributor():null); List rhsContributor; rhsContributor = (((that.contributor!= null)&&(!that.contributor.isEmpty()))?that.getContributor():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contributor", lhsContributor), LocatorUtils.property(thatLocator, "contributor", rhsContributor), lhsContributor, rhsContributor, ((this.contributor!= null)&&(!this.contributor.isEmpty())), ((that.contributor!= null)&&(!that.contributor.isEmpty())))) { 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 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; } } { List lhsRelatedResource; lhsRelatedResource = (((this.relatedResource!= null)&&(!this.relatedResource.isEmpty()))?this.getRelatedResource():null); List rhsRelatedResource; rhsRelatedResource = (((that.relatedResource!= null)&&(!that.relatedResource.isEmpty()))?that.getRelatedResource():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "relatedResource", lhsRelatedResource), LocatorUtils.property(thatLocator, "relatedResource", rhsRelatedResource), lhsRelatedResource, rhsRelatedResource, ((this.relatedResource!= null)&&(!this.relatedResource.isEmpty())), ((that.relatedResource!= null)&&(!that.relatedResource.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)); } { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { 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)); } { org.hl7.fhir.String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, (this.title!= null)); } { ModuleMetadataType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { ModuleMetadataStatus 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)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { org.hl7.fhir.String thePurpose; thePurpose = this.getPurpose(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "purpose", thePurpose), currentHashCode, thePurpose, (this.purpose!= null)); } { org.hl7.fhir.String theUsage; theUsage = this.getUsage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "usage", theUsage), currentHashCode, theUsage, (this.usage!= null)); } { Date thePublicationDate; thePublicationDate = this.getPublicationDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "publicationDate", thePublicationDate), currentHashCode, thePublicationDate, (this.publicationDate!= null)); } { Date theLastReviewDate; theLastReviewDate = this.getLastReviewDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastReviewDate", theLastReviewDate), currentHashCode, theLastReviewDate, (this.lastReviewDate!= null)); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectivePeriod", theEffectivePeriod), currentHashCode, theEffectivePeriod, (this.effectivePeriod!= null)); } { List theCoverage; theCoverage = (((this.coverage!= null)&&(!this.coverage.isEmpty()))?this.getCoverage():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coverage", theCoverage), currentHashCode, theCoverage, ((this.coverage!= null)&&(!this.coverage.isEmpty()))); } { List theTopic; theTopic = (((this.topic!= null)&&(!this.topic.isEmpty()))?this.getTopic():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "topic", theTopic), currentHashCode, theTopic, ((this.topic!= null)&&(!this.topic.isEmpty()))); } { List theContributor; theContributor = (((this.contributor!= null)&&(!this.contributor.isEmpty()))?this.getContributor():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contributor", theContributor), currentHashCode, theContributor, ((this.contributor!= null)&&(!this.contributor.isEmpty()))); } { 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 theCopyright; theCopyright = this.getCopyright(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "copyright", theCopyright), currentHashCode, theCopyright, (this.copyright!= null)); } { List theRelatedResource; theRelatedResource = (((this.relatedResource!= null)&&(!this.relatedResource.isEmpty()))?this.getRelatedResource():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relatedResource", theRelatedResource), currentHashCode, theRelatedResource, ((this.relatedResource!= null)&&(!this.relatedResource.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)); } { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { 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)); } { org.hl7.fhir.String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, (this.title!= null)); } { ModuleMetadataType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { ModuleMetadataStatus 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)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { org.hl7.fhir.String thePurpose; thePurpose = this.getPurpose(); strategy.appendField(locator, this, "purpose", buffer, thePurpose, (this.purpose!= null)); } { org.hl7.fhir.String theUsage; theUsage = this.getUsage(); strategy.appendField(locator, this, "usage", buffer, theUsage, (this.usage!= null)); } { Date thePublicationDate; thePublicationDate = this.getPublicationDate(); strategy.appendField(locator, this, "publicationDate", buffer, thePublicationDate, (this.publicationDate!= null)); } { Date theLastReviewDate; theLastReviewDate = this.getLastReviewDate(); strategy.appendField(locator, this, "lastReviewDate", buffer, theLastReviewDate, (this.lastReviewDate!= null)); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); strategy.appendField(locator, this, "effectivePeriod", buffer, theEffectivePeriod, (this.effectivePeriod!= null)); } { List theCoverage; theCoverage = (((this.coverage!= null)&&(!this.coverage.isEmpty()))?this.getCoverage():null); strategy.appendField(locator, this, "coverage", buffer, theCoverage, ((this.coverage!= null)&&(!this.coverage.isEmpty()))); } { List theTopic; theTopic = (((this.topic!= null)&&(!this.topic.isEmpty()))?this.getTopic():null); strategy.appendField(locator, this, "topic", buffer, theTopic, ((this.topic!= null)&&(!this.topic.isEmpty()))); } { List theContributor; theContributor = (((this.contributor!= null)&&(!this.contributor.isEmpty()))?this.getContributor():null); strategy.appendField(locator, this, "contributor", buffer, theContributor, ((this.contributor!= null)&&(!this.contributor.isEmpty()))); } { 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 theCopyright; theCopyright = this.getCopyright(); strategy.appendField(locator, this, "copyright", buffer, theCopyright, (this.copyright!= null)); } { List theRelatedResource; theRelatedResource = (((this.relatedResource!= null)&&(!this.relatedResource.isEmpty()))?this.getRelatedResource():null); strategy.appendField(locator, this, "relatedResource", buffer, theRelatedResource, ((this.relatedResource!= null)&&(!this.relatedResource.isEmpty()))); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setCoverage(List value) { this.coverage = value; } public void setTopic(List value) { this.topic = value; } public void setContributor(List value) { this.contributor = value; } public void setContact(List value) { this.contact = value; } public void setRelatedResource(List value) { this.relatedResource = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy