org.hl7.fhir.TestScript 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 TestScript complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TestScript">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="url" type="{http://hl7.org/fhir}uri"/>
* <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="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
* <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}TestScript.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="origin" type="{http://hl7.org/fhir}TestScript.Origin" maxOccurs="unbounded" minOccurs="0"/>
* <element name="destination" type="{http://hl7.org/fhir}TestScript.Destination" maxOccurs="unbounded" minOccurs="0"/>
* <element name="metadata" type="{http://hl7.org/fhir}TestScript.Metadata" minOccurs="0"/>
* <element name="fixture" type="{http://hl7.org/fhir}TestScript.Fixture" maxOccurs="unbounded" minOccurs="0"/>
* <element name="profile" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
* <element name="variable" type="{http://hl7.org/fhir}TestScript.Variable" maxOccurs="unbounded" minOccurs="0"/>
* <element name="rule" type="{http://hl7.org/fhir}TestScript.Rule" maxOccurs="unbounded" minOccurs="0"/>
* <element name="ruleset" type="{http://hl7.org/fhir}TestScript.Ruleset" maxOccurs="unbounded" minOccurs="0"/>
* <element name="setup" type="{http://hl7.org/fhir}TestScript.Setup" minOccurs="0"/>
* <element name="test" type="{http://hl7.org/fhir}TestScript.Test" maxOccurs="unbounded" minOccurs="0"/>
* <element name="teardown" type="{http://hl7.org/fhir}TestScript.Teardown" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TestScript", propOrder = {
"url",
"version",
"name",
"status",
"identifier",
"experimental",
"publisher",
"contact",
"date",
"description",
"useContext",
"requirements",
"copyright",
"origin",
"destination",
"metadata",
"fixture",
"profile",
"variable",
"rule",
"ruleset",
"setup",
"test",
"teardown"
})
public class TestScript
extends DomainResource
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Uri url;
protected org.hl7.fhir.String version;
@XmlElement(required = true)
protected org.hl7.fhir.String name;
@XmlElement(required = true)
protected ConformanceResourceStatus status;
protected Identifier identifier;
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 origin;
protected List destination;
protected TestScriptMetadata metadata;
protected List fixture;
protected List profile;
protected List variable;
protected List rule;
protected List ruleset;
protected TestScriptSetup setup;
protected List test;
protected TestScriptTeardown teardown;
/**
* 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 identifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getIdentifier() {
return identifier;
}
/**
* Sets the value of the identifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setIdentifier(Identifier value) {
this.identifier = 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 TestScriptContact }
*
*
*/
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 origin 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 origin property.
*
*
* For example, to add a new item, do as follows:
*
* getOrigin().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TestScriptOrigin }
*
*
*/
public List getOrigin() {
if (origin == null) {
origin = new ArrayList();
}
return this.origin;
}
/**
* Gets the value of the destination 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 destination property.
*
*
* For example, to add a new item, do as follows:
*
* getDestination().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TestScriptDestination }
*
*
*/
public List getDestination() {
if (destination == null) {
destination = new ArrayList();
}
return this.destination;
}
/**
* Gets the value of the metadata property.
*
* @return
* possible object is
* {@link TestScriptMetadata }
*
*/
public TestScriptMetadata getMetadata() {
return metadata;
}
/**
* Sets the value of the metadata property.
*
* @param value
* allowed object is
* {@link TestScriptMetadata }
*
*/
public void setMetadata(TestScriptMetadata value) {
this.metadata = value;
}
/**
* Gets the value of the fixture 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 fixture property.
*
*
* For example, to add a new item, do as follows:
*
* getFixture().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TestScriptFixture }
*
*
*/
public List getFixture() {
if (fixture == null) {
fixture = new ArrayList();
}
return this.fixture;
}
/**
* 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 variable 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 variable property.
*
*
* For example, to add a new item, do as follows:
*
* getVariable().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TestScriptVariable }
*
*
*/
public List getVariable() {
if (variable == null) {
variable = new ArrayList();
}
return this.variable;
}
/**
* Gets the value of the rule 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 rule property.
*
*
* For example, to add a new item, do as follows:
*
* getRule().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TestScriptRule }
*
*
*/
public List getRule() {
if (rule == null) {
rule = new ArrayList();
}
return this.rule;
}
/**
* Gets the value of the ruleset 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 ruleset property.
*
*
* For example, to add a new item, do as follows:
*
* getRuleset().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TestScriptRuleset }
*
*
*/
public List getRuleset() {
if (ruleset == null) {
ruleset = new ArrayList();
}
return this.ruleset;
}
/**
* Gets the value of the setup property.
*
* @return
* possible object is
* {@link TestScriptSetup }
*
*/
public TestScriptSetup getSetup() {
return setup;
}
/**
* Sets the value of the setup property.
*
* @param value
* allowed object is
* {@link TestScriptSetup }
*
*/
public void setSetup(TestScriptSetup value) {
this.setup = value;
}
/**
* Gets the value of the test 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 test property.
*
*
* For example, to add a new item, do as follows:
*
* getTest().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TestScriptTest }
*
*
*/
public List getTest() {
if (test == null) {
test = new ArrayList();
}
return this.test;
}
/**
* Gets the value of the teardown property.
*
* @return
* possible object is
* {@link TestScriptTeardown }
*
*/
public TestScriptTeardown getTeardown() {
return teardown;
}
/**
* Sets the value of the teardown property.
*
* @param value
* allowed object is
* {@link TestScriptTeardown }
*
*/
public void setTeardown(TestScriptTeardown value) {
this.teardown = value;
}
public TestScript withUrl(Uri value) {
setUrl(value);
return this;
}
public TestScript withVersion(org.hl7.fhir.String value) {
setVersion(value);
return this;
}
public TestScript withName(org.hl7.fhir.String value) {
setName(value);
return this;
}
public TestScript withStatus(ConformanceResourceStatus value) {
setStatus(value);
return this;
}
public TestScript withIdentifier(Identifier value) {
setIdentifier(value);
return this;
}
public TestScript withExperimental(Boolean value) {
setExperimental(value);
return this;
}
public TestScript withPublisher(org.hl7.fhir.String value) {
setPublisher(value);
return this;
}
public TestScript withContact(TestScriptContact... values) {
if (values!= null) {
for (TestScriptContact value: values) {
getContact().add(value);
}
}
return this;
}
public TestScript withContact(Collection values) {
if (values!= null) {
getContact().addAll(values);
}
return this;
}
public TestScript withDate(DateTime value) {
setDate(value);
return this;
}
public TestScript withDescription(org.hl7.fhir.String value) {
setDescription(value);
return this;
}
public TestScript withUseContext(CodeableConcept... values) {
if (values!= null) {
for (CodeableConcept value: values) {
getUseContext().add(value);
}
}
return this;
}
public TestScript withUseContext(Collection values) {
if (values!= null) {
getUseContext().addAll(values);
}
return this;
}
public TestScript withRequirements(org.hl7.fhir.String value) {
setRequirements(value);
return this;
}
public TestScript withCopyright(org.hl7.fhir.String value) {
setCopyright(value);
return this;
}
public TestScript withOrigin(TestScriptOrigin... values) {
if (values!= null) {
for (TestScriptOrigin value: values) {
getOrigin().add(value);
}
}
return this;
}
public TestScript withOrigin(Collection values) {
if (values!= null) {
getOrigin().addAll(values);
}
return this;
}
public TestScript withDestination(TestScriptDestination... values) {
if (values!= null) {
for (TestScriptDestination value: values) {
getDestination().add(value);
}
}
return this;
}
public TestScript withDestination(Collection values) {
if (values!= null) {
getDestination().addAll(values);
}
return this;
}
public TestScript withMetadata(TestScriptMetadata value) {
setMetadata(value);
return this;
}
public TestScript withFixture(TestScriptFixture... values) {
if (values!= null) {
for (TestScriptFixture value: values) {
getFixture().add(value);
}
}
return this;
}
public TestScript withFixture(Collection values) {
if (values!= null) {
getFixture().addAll(values);
}
return this;
}
public TestScript withProfile(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getProfile().add(value);
}
}
return this;
}
public TestScript withProfile(Collection values) {
if (values!= null) {
getProfile().addAll(values);
}
return this;
}
public TestScript withVariable(TestScriptVariable... values) {
if (values!= null) {
for (TestScriptVariable value: values) {
getVariable().add(value);
}
}
return this;
}
public TestScript withVariable(Collection values) {
if (values!= null) {
getVariable().addAll(values);
}
return this;
}
public TestScript withRule(TestScriptRule... values) {
if (values!= null) {
for (TestScriptRule value: values) {
getRule().add(value);
}
}
return this;
}
public TestScript withRule(Collection values) {
if (values!= null) {
getRule().addAll(values);
}
return this;
}
public TestScript withRuleset(TestScriptRuleset... values) {
if (values!= null) {
for (TestScriptRuleset value: values) {
getRuleset().add(value);
}
}
return this;
}
public TestScript withRuleset(Collection values) {
if (values!= null) {
getRuleset().addAll(values);
}
return this;
}
public TestScript withSetup(TestScriptSetup value) {
setSetup(value);
return this;
}
public TestScript withTest(TestScriptTest... values) {
if (values!= null) {
for (TestScriptTest value: values) {
getTest().add(value);
}
}
return this;
}
public TestScript withTest(Collection values) {
if (values!= null) {
getTest().addAll(values);
}
return this;
}
public TestScript withTeardown(TestScriptTeardown value) {
setTeardown(value);
return this;
}
@Override
public TestScript withText(Narrative value) {
setText(value);
return this;
}
@Override
public TestScript withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public TestScript withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public TestScript withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public TestScript withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public TestScript withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public TestScript withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public TestScript withId(Id value) {
setId(value);
return this;
}
@Override
public TestScript withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public TestScript withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public TestScript 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 TestScript that = ((TestScript) 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;
}
}
{
Identifier lhsIdentifier;
lhsIdentifier = this.getIdentifier();
Identifier rhsIdentifier;
rhsIdentifier = that.getIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, (this.identifier!= null), (that.identifier!= 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 lhsOrigin;
lhsOrigin = (((this.origin!= null)&&(!this.origin.isEmpty()))?this.getOrigin():null);
List rhsOrigin;
rhsOrigin = (((that.origin!= null)&&(!that.origin.isEmpty()))?that.getOrigin():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "origin", lhsOrigin), LocatorUtils.property(thatLocator, "origin", rhsOrigin), lhsOrigin, rhsOrigin, ((this.origin!= null)&&(!this.origin.isEmpty())), ((that.origin!= null)&&(!that.origin.isEmpty())))) {
return false;
}
}
{
List lhsDestination;
lhsDestination = (((this.destination!= null)&&(!this.destination.isEmpty()))?this.getDestination():null);
List rhsDestination;
rhsDestination = (((that.destination!= null)&&(!that.destination.isEmpty()))?that.getDestination():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "destination", lhsDestination), LocatorUtils.property(thatLocator, "destination", rhsDestination), lhsDestination, rhsDestination, ((this.destination!= null)&&(!this.destination.isEmpty())), ((that.destination!= null)&&(!that.destination.isEmpty())))) {
return false;
}
}
{
TestScriptMetadata lhsMetadata;
lhsMetadata = this.getMetadata();
TestScriptMetadata rhsMetadata;
rhsMetadata = that.getMetadata();
if (!strategy.equals(LocatorUtils.property(thisLocator, "metadata", lhsMetadata), LocatorUtils.property(thatLocator, "metadata", rhsMetadata), lhsMetadata, rhsMetadata, (this.metadata!= null), (that.metadata!= null))) {
return false;
}
}
{
List lhsFixture;
lhsFixture = (((this.fixture!= null)&&(!this.fixture.isEmpty()))?this.getFixture():null);
List rhsFixture;
rhsFixture = (((that.fixture!= null)&&(!that.fixture.isEmpty()))?that.getFixture():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "fixture", lhsFixture), LocatorUtils.property(thatLocator, "fixture", rhsFixture), lhsFixture, rhsFixture, ((this.fixture!= null)&&(!this.fixture.isEmpty())), ((that.fixture!= null)&&(!that.fixture.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 lhsVariable;
lhsVariable = (((this.variable!= null)&&(!this.variable.isEmpty()))?this.getVariable():null);
List rhsVariable;
rhsVariable = (((that.variable!= null)&&(!that.variable.isEmpty()))?that.getVariable():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "variable", lhsVariable), LocatorUtils.property(thatLocator, "variable", rhsVariable), lhsVariable, rhsVariable, ((this.variable!= null)&&(!this.variable.isEmpty())), ((that.variable!= null)&&(!that.variable.isEmpty())))) {
return false;
}
}
{
List lhsRule;
lhsRule = (((this.rule!= null)&&(!this.rule.isEmpty()))?this.getRule():null);
List rhsRule;
rhsRule = (((that.rule!= null)&&(!that.rule.isEmpty()))?that.getRule():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "rule", lhsRule), LocatorUtils.property(thatLocator, "rule", rhsRule), lhsRule, rhsRule, ((this.rule!= null)&&(!this.rule.isEmpty())), ((that.rule!= null)&&(!that.rule.isEmpty())))) {
return false;
}
}
{
List lhsRuleset;
lhsRuleset = (((this.ruleset!= null)&&(!this.ruleset.isEmpty()))?this.getRuleset():null);
List rhsRuleset;
rhsRuleset = (((that.ruleset!= null)&&(!that.ruleset.isEmpty()))?that.getRuleset():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "ruleset", lhsRuleset), LocatorUtils.property(thatLocator, "ruleset", rhsRuleset), lhsRuleset, rhsRuleset, ((this.ruleset!= null)&&(!this.ruleset.isEmpty())), ((that.ruleset!= null)&&(!that.ruleset.isEmpty())))) {
return false;
}
}
{
TestScriptSetup lhsSetup;
lhsSetup = this.getSetup();
TestScriptSetup rhsSetup;
rhsSetup = that.getSetup();
if (!strategy.equals(LocatorUtils.property(thisLocator, "setup", lhsSetup), LocatorUtils.property(thatLocator, "setup", rhsSetup), lhsSetup, rhsSetup, (this.setup!= null), (that.setup!= null))) {
return false;
}
}
{
List lhsTest;
lhsTest = (((this.test!= null)&&(!this.test.isEmpty()))?this.getTest():null);
List rhsTest;
rhsTest = (((that.test!= null)&&(!that.test.isEmpty()))?that.getTest():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "test", lhsTest), LocatorUtils.property(thatLocator, "test", rhsTest), lhsTest, rhsTest, ((this.test!= null)&&(!this.test.isEmpty())), ((that.test!= null)&&(!that.test.isEmpty())))) {
return false;
}
}
{
TestScriptTeardown lhsTeardown;
lhsTeardown = this.getTeardown();
TestScriptTeardown rhsTeardown;
rhsTeardown = that.getTeardown();
if (!strategy.equals(LocatorUtils.property(thisLocator, "teardown", lhsTeardown), LocatorUtils.property(thatLocator, "teardown", rhsTeardown), lhsTeardown, rhsTeardown, (this.teardown!= null), (that.teardown!= null))) {
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));
}
{
Identifier theIdentifier;
theIdentifier = this.getIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, (this.identifier!= 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 theOrigin;
theOrigin = (((this.origin!= null)&&(!this.origin.isEmpty()))?this.getOrigin():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "origin", theOrigin), currentHashCode, theOrigin, ((this.origin!= null)&&(!this.origin.isEmpty())));
}
{
List theDestination;
theDestination = (((this.destination!= null)&&(!this.destination.isEmpty()))?this.getDestination():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destination", theDestination), currentHashCode, theDestination, ((this.destination!= null)&&(!this.destination.isEmpty())));
}
{
TestScriptMetadata theMetadata;
theMetadata = this.getMetadata();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "metadata", theMetadata), currentHashCode, theMetadata, (this.metadata!= null));
}
{
List theFixture;
theFixture = (((this.fixture!= null)&&(!this.fixture.isEmpty()))?this.getFixture():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fixture", theFixture), currentHashCode, theFixture, ((this.fixture!= null)&&(!this.fixture.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 theVariable;
theVariable = (((this.variable!= null)&&(!this.variable.isEmpty()))?this.getVariable():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "variable", theVariable), currentHashCode, theVariable, ((this.variable!= null)&&(!this.variable.isEmpty())));
}
{
List theRule;
theRule = (((this.rule!= null)&&(!this.rule.isEmpty()))?this.getRule():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rule", theRule), currentHashCode, theRule, ((this.rule!= null)&&(!this.rule.isEmpty())));
}
{
List theRuleset;
theRuleset = (((this.ruleset!= null)&&(!this.ruleset.isEmpty()))?this.getRuleset():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ruleset", theRuleset), currentHashCode, theRuleset, ((this.ruleset!= null)&&(!this.ruleset.isEmpty())));
}
{
TestScriptSetup theSetup;
theSetup = this.getSetup();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "setup", theSetup), currentHashCode, theSetup, (this.setup!= null));
}
{
List theTest;
theTest = (((this.test!= null)&&(!this.test.isEmpty()))?this.getTest():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "test", theTest), currentHashCode, theTest, ((this.test!= null)&&(!this.test.isEmpty())));
}
{
TestScriptTeardown theTeardown;
theTeardown = this.getTeardown();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "teardown", theTeardown), currentHashCode, theTeardown, (this.teardown!= null));
}
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));
}
{
Identifier theIdentifier;
theIdentifier = this.getIdentifier();
strategy.appendField(locator, this, "identifier", buffer, theIdentifier, (this.identifier!= 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 theOrigin;
theOrigin = (((this.origin!= null)&&(!this.origin.isEmpty()))?this.getOrigin():null);
strategy.appendField(locator, this, "origin", buffer, theOrigin, ((this.origin!= null)&&(!this.origin.isEmpty())));
}
{
List theDestination;
theDestination = (((this.destination!= null)&&(!this.destination.isEmpty()))?this.getDestination():null);
strategy.appendField(locator, this, "destination", buffer, theDestination, ((this.destination!= null)&&(!this.destination.isEmpty())));
}
{
TestScriptMetadata theMetadata;
theMetadata = this.getMetadata();
strategy.appendField(locator, this, "metadata", buffer, theMetadata, (this.metadata!= null));
}
{
List theFixture;
theFixture = (((this.fixture!= null)&&(!this.fixture.isEmpty()))?this.getFixture():null);
strategy.appendField(locator, this, "fixture", buffer, theFixture, ((this.fixture!= null)&&(!this.fixture.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 theVariable;
theVariable = (((this.variable!= null)&&(!this.variable.isEmpty()))?this.getVariable():null);
strategy.appendField(locator, this, "variable", buffer, theVariable, ((this.variable!= null)&&(!this.variable.isEmpty())));
}
{
List theRule;
theRule = (((this.rule!= null)&&(!this.rule.isEmpty()))?this.getRule():null);
strategy.appendField(locator, this, "rule", buffer, theRule, ((this.rule!= null)&&(!this.rule.isEmpty())));
}
{
List theRuleset;
theRuleset = (((this.ruleset!= null)&&(!this.ruleset.isEmpty()))?this.getRuleset():null);
strategy.appendField(locator, this, "ruleset", buffer, theRuleset, ((this.ruleset!= null)&&(!this.ruleset.isEmpty())));
}
{
TestScriptSetup theSetup;
theSetup = this.getSetup();
strategy.appendField(locator, this, "setup", buffer, theSetup, (this.setup!= null));
}
{
List theTest;
theTest = (((this.test!= null)&&(!this.test.isEmpty()))?this.getTest():null);
strategy.appendField(locator, this, "test", buffer, theTest, ((this.test!= null)&&(!this.test.isEmpty())));
}
{
TestScriptTeardown theTeardown;
theTeardown = this.getTeardown();
strategy.appendField(locator, this, "teardown", buffer, theTeardown, (this.teardown!= null));
}
return buffer;
}
public void setContact(List value) {
this.contact = value;
}
public void setUseContext(List value) {
this.useContext = value;
}
public void setOrigin(List value) {
this.origin = value;
}
public void setDestination(List value) {
this.destination = value;
}
public void setFixture(List value) {
this.fixture = value;
}
public void setProfile(List value) {
this.profile = value;
}
public void setVariable(List value) {
this.variable = value;
}
public void setRule(List value) {
this.rule = value;
}
public void setRuleset(List value) {
this.ruleset = value;
}
public void setTest(List value) {
this.test = value;
}
}