org.hl7.fhir.StructureMap Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// 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 StructureMap complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StructureMap">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="url" type="{http://hl7.org/fhir}uri"/>
* <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"/>
* <element name="status" type="{http://hl7.org/fhir}ConformanceResourceStatus"/>
* <element name="experimental" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
* <element name="publisher" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="contact" type="{http://hl7.org/fhir}StructureMap.Contact" maxOccurs="unbounded" minOccurs="0"/>
* <element name="date" type="{http://hl7.org/fhir}dateTime" 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="structure" type="{http://hl7.org/fhir}StructureMap.Structure" maxOccurs="unbounded" minOccurs="0"/>
* <element name="import" type="{http://hl7.org/fhir}uri" maxOccurs="unbounded" minOccurs="0"/>
* <element name="group" type="{http://hl7.org/fhir}StructureMap.Group" maxOccurs="unbounded"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StructureMap", propOrder = {
"url",
"identifier",
"version",
"name",
"status",
"experimental",
"publisher",
"contact",
"date",
"description",
"useContext",
"requirements",
"copyright",
"structure",
"_import",
"group"
})
public class StructureMap
extends DomainResource
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Uri url;
protected List identifier;
protected org.hl7.fhir.String version;
@XmlElement(required = true)
protected org.hl7.fhir.String name;
@XmlElement(required = true)
protected ConformanceResourceStatus status;
protected Boolean experimental;
protected org.hl7.fhir.String publisher;
protected List contact;
protected DateTime date;
protected org.hl7.fhir.String description;
protected List useContext;
protected org.hl7.fhir.String requirements;
protected org.hl7.fhir.String copyright;
protected List structure;
@XmlElement(name = "import")
protected List _import;
@XmlElement(required = true)
protected List group;
/**
* 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 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 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 StructureMapContact }
*
*
*/
public List getContact() {
if (contact == null) {
contact = new ArrayList();
}
return this.contact;
}
/**
* 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 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 structure 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 structure property.
*
*
* For example, to add a new item, do as follows:
*
* getStructure().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StructureMapStructure }
*
*
*/
public List getStructure() {
if (structure == null) {
structure = new ArrayList();
}
return this.structure;
}
/**
* Gets the value of the import 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 import property.
*
*
* For example, to add a new item, do as follows:
*
* getImport().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Uri }
*
*
*/
public List getImport() {
if (_import == null) {
_import = new ArrayList();
}
return this._import;
}
/**
* Gets the value of the group 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 group property.
*
*
* For example, to add a new item, do as follows:
*
* getGroup().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StructureMapGroup }
*
*
*/
public List getGroup() {
if (group == null) {
group = new ArrayList();
}
return this.group;
}
public StructureMap withUrl(Uri value) {
setUrl(value);
return this;
}
public StructureMap withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public StructureMap withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public StructureMap withVersion(org.hl7.fhir.String value) {
setVersion(value);
return this;
}
public StructureMap withName(org.hl7.fhir.String value) {
setName(value);
return this;
}
public StructureMap withStatus(ConformanceResourceStatus value) {
setStatus(value);
return this;
}
public StructureMap withExperimental(Boolean value) {
setExperimental(value);
return this;
}
public StructureMap withPublisher(org.hl7.fhir.String value) {
setPublisher(value);
return this;
}
public StructureMap withContact(StructureMapContact... values) {
if (values!= null) {
for (StructureMapContact value: values) {
getContact().add(value);
}
}
return this;
}
public StructureMap withContact(Collection values) {
if (values!= null) {
getContact().addAll(values);
}
return this;
}
public StructureMap withDate(DateTime value) {
setDate(value);
return this;
}
public StructureMap withDescription(org.hl7.fhir.String value) {
setDescription(value);
return this;
}
public StructureMap withUseContext(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getUseContext().add(value);
}
}
return this;
}
public StructureMap withUseContext(Collection values) {
if (values!= null) {
getUseContext().addAll(values);
}
return this;
}
public StructureMap withRequirements(org.hl7.fhir.String value) {
setRequirements(value);
return this;
}
public StructureMap withCopyright(org.hl7.fhir.String value) {
setCopyright(value);
return this;
}
public StructureMap withStructure(StructureMapStructure... values) {
if (values!= null) {
for (StructureMapStructure value: values) {
getStructure().add(value);
}
}
return this;
}
public StructureMap withStructure(Collection values) {
if (values!= null) {
getStructure().addAll(values);
}
return this;
}
public StructureMap withImport(Uri... values) {
if (values!= null) {
for (Uri value: values) {
getImport().add(value);
}
}
return this;
}
public StructureMap withImport(Collection values) {
if (values!= null) {
getImport().addAll(values);
}
return this;
}
public StructureMap withGroup(StructureMapGroup... values) {
if (values!= null) {
for (StructureMapGroup value: values) {
getGroup().add(value);
}
}
return this;
}
public StructureMap withGroup(Collection values) {
if (values!= null) {
getGroup().addAll(values);
}
return this;
}
@Override
public StructureMap withText(Narrative value) {
setText(value);
return this;
}
@Override
public StructureMap withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public StructureMap withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public StructureMap withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public StructureMap withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public StructureMap withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public StructureMap withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public StructureMap withId(Id value) {
setId(value);
return this;
}
@Override
public StructureMap withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public StructureMap withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public StructureMap 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 StructureMap that = ((StructureMap) 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;
}
}
{
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;
}
}
{
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;
}
}
{
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 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;
}
}
{
List lhsStructure;
lhsStructure = (((this.structure!= null)&&(!this.structure.isEmpty()))?this.getStructure():null);
List rhsStructure;
rhsStructure = (((that.structure!= null)&&(!that.structure.isEmpty()))?that.getStructure():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "structure", lhsStructure), LocatorUtils.property(thatLocator, "structure", rhsStructure), lhsStructure, rhsStructure, ((this.structure!= null)&&(!this.structure.isEmpty())), ((that.structure!= null)&&(!that.structure.isEmpty())))) {
return false;
}
}
{
List lhsImport;
lhsImport = (((this._import!= null)&&(!this._import.isEmpty()))?this.getImport():null);
List rhsImport;
rhsImport = (((that._import!= null)&&(!that._import.isEmpty()))?that.getImport():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "_import", lhsImport), LocatorUtils.property(thatLocator, "_import", rhsImport), lhsImport, rhsImport, ((this._import!= null)&&(!this._import.isEmpty())), ((that._import!= null)&&(!that._import.isEmpty())))) {
return false;
}
}
{
List lhsGroup;
lhsGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null);
List rhsGroup;
rhsGroup = (((that.group!= null)&&(!that.group.isEmpty()))?that.getGroup():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "group", lhsGroup), LocatorUtils.property(thatLocator, "group", rhsGroup), lhsGroup, rhsGroup, ((this.group!= null)&&(!this.group.isEmpty())), ((that.group!= null)&&(!that.group.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));
}
{
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));
}
{
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())));
}
{
DateTime theDate;
theDate = this.getDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null));
}
{
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));
}
{
List theStructure;
theStructure = (((this.structure!= null)&&(!this.structure.isEmpty()))?this.getStructure():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "structure", theStructure), currentHashCode, theStructure, ((this.structure!= null)&&(!this.structure.isEmpty())));
}
{
List theImport;
theImport = (((this._import!= null)&&(!this._import.isEmpty()))?this.getImport():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_import", theImport), currentHashCode, theImport, ((this._import!= null)&&(!this._import.isEmpty())));
}
{
List theGroup;
theGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "group", theGroup), currentHashCode, theGroup, ((this.group!= null)&&(!this.group.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));
}
{
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));
}
{
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())));
}
{
DateTime theDate;
theDate = this.getDate();
strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null));
}
{
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));
}
{
List theStructure;
theStructure = (((this.structure!= null)&&(!this.structure.isEmpty()))?this.getStructure():null);
strategy.appendField(locator, this, "structure", buffer, theStructure, ((this.structure!= null)&&(!this.structure.isEmpty())));
}
{
List theImport;
theImport = (((this._import!= null)&&(!this._import.isEmpty()))?this.getImport():null);
strategy.appendField(locator, this, "_import", buffer, theImport, ((this._import!= null)&&(!this._import.isEmpty())));
}
{
List theGroup;
theGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null);
strategy.appendField(locator, this, "group", buffer, theGroup, ((this.group!= null)&&(!this.group.isEmpty())));
}
return buffer;
}
public void setIdentifier(List value) {
this.identifier = value;
}
public void setContact(List value) {
this.contact = value;
}
public void setUseContext(List value) {
this.useContext = value;
}
public void setStructure(List value) {
this.structure = value;
}
public void setImport(List value) {
this._import = value;
}
public void setGroup(List value) {
this.group = value;
}
}