org.hl7.fhir.TestScriptAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quick Show documentation
Show all versions of quick Show documentation
The quick library for the Clinical Quality Language Java reference implementation
//
// 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.05.02 at 09:57:28 AM MDT
//
package org.hl7.fhir;
import java.util.Collection;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
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;
/**
* TestScript is a resource that specifies a suite of tests against a FHIR server implementation to determine compliance against the FHIR specification.
*
* Java class for TestScript.Assert complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TestScript.Assert">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="label" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="direction" type="{http://hl7.org/fhir}AssertionDirectionType" minOccurs="0"/>
* <element name="compareToSourceId" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="compareToSourcePath" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="contentType" type="{http://hl7.org/fhir}ContentType" minOccurs="0"/>
* <element name="headerField" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="minimumId" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="navigationLinks" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
* <element name="operator" type="{http://hl7.org/fhir}AssertionOperatorType" minOccurs="0"/>
* <element name="path" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="resource" type="{http://hl7.org/fhir}code" minOccurs="0"/>
* <element name="response" type="{http://hl7.org/fhir}AssertionResponseTypes" minOccurs="0"/>
* <element name="responseCode" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="rule" type="{http://hl7.org/fhir}TestScript.Rule2" minOccurs="0"/>
* <element name="ruleset" type="{http://hl7.org/fhir}TestScript.Ruleset1" minOccurs="0"/>
* <element name="sourceId" type="{http://hl7.org/fhir}id" minOccurs="0"/>
* <element name="validateProfileId" type="{http://hl7.org/fhir}id" minOccurs="0"/>
* <element name="value" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="warningOnly" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TestScript.Assert", propOrder = {
"label",
"description",
"direction",
"compareToSourceId",
"compareToSourcePath",
"contentType",
"headerField",
"minimumId",
"navigationLinks",
"operator",
"path",
"resource",
"response",
"responseCode",
"rule",
"ruleset",
"sourceId",
"validateProfileId",
"value",
"warningOnly"
})
public class TestScriptAssert
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
protected org.hl7.fhir.String label;
protected org.hl7.fhir.String description;
protected AssertionDirectionType direction;
protected org.hl7.fhir.String compareToSourceId;
protected org.hl7.fhir.String compareToSourcePath;
protected ContentType contentType;
protected org.hl7.fhir.String headerField;
protected org.hl7.fhir.String minimumId;
protected Boolean navigationLinks;
protected AssertionOperatorType operator;
protected org.hl7.fhir.String path;
protected Code resource;
protected AssertionResponseTypes response;
protected org.hl7.fhir.String responseCode;
protected TestScriptRule2 rule;
protected TestScriptRuleset1 ruleset;
protected Id sourceId;
protected Id validateProfileId;
protected org.hl7.fhir.String value;
protected Boolean warningOnly;
/**
* Gets the value of the label property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getLabel() {
return label;
}
/**
* Sets the value of the label property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setLabel(org.hl7.fhir.String value) {
this.label = 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 direction property.
*
* @return
* possible object is
* {@link AssertionDirectionType }
*
*/
public AssertionDirectionType getDirection() {
return direction;
}
/**
* Sets the value of the direction property.
*
* @param value
* allowed object is
* {@link AssertionDirectionType }
*
*/
public void setDirection(AssertionDirectionType value) {
this.direction = value;
}
/**
* Gets the value of the compareToSourceId property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getCompareToSourceId() {
return compareToSourceId;
}
/**
* Sets the value of the compareToSourceId property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setCompareToSourceId(org.hl7.fhir.String value) {
this.compareToSourceId = value;
}
/**
* Gets the value of the compareToSourcePath property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getCompareToSourcePath() {
return compareToSourcePath;
}
/**
* Sets the value of the compareToSourcePath property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setCompareToSourcePath(org.hl7.fhir.String value) {
this.compareToSourcePath = value;
}
/**
* Gets the value of the contentType property.
*
* @return
* possible object is
* {@link ContentType }
*
*/
public ContentType getContentType() {
return contentType;
}
/**
* Sets the value of the contentType property.
*
* @param value
* allowed object is
* {@link ContentType }
*
*/
public void setContentType(ContentType value) {
this.contentType = value;
}
/**
* Gets the value of the headerField property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getHeaderField() {
return headerField;
}
/**
* Sets the value of the headerField property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setHeaderField(org.hl7.fhir.String value) {
this.headerField = value;
}
/**
* Gets the value of the minimumId property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getMinimumId() {
return minimumId;
}
/**
* Sets the value of the minimumId property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setMinimumId(org.hl7.fhir.String value) {
this.minimumId = value;
}
/**
* Gets the value of the navigationLinks property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getNavigationLinks() {
return navigationLinks;
}
/**
* Sets the value of the navigationLinks property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setNavigationLinks(Boolean value) {
this.navigationLinks = value;
}
/**
* Gets the value of the operator property.
*
* @return
* possible object is
* {@link AssertionOperatorType }
*
*/
public AssertionOperatorType getOperator() {
return operator;
}
/**
* Sets the value of the operator property.
*
* @param value
* allowed object is
* {@link AssertionOperatorType }
*
*/
public void setOperator(AssertionOperatorType value) {
this.operator = value;
}
/**
* Gets the value of the path property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getPath() {
return path;
}
/**
* Sets the value of the path property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setPath(org.hl7.fhir.String value) {
this.path = value;
}
/**
* Gets the value of the resource property.
*
* @return
* possible object is
* {@link Code }
*
*/
public Code getResource() {
return resource;
}
/**
* Sets the value of the resource property.
*
* @param value
* allowed object is
* {@link Code }
*
*/
public void setResource(Code value) {
this.resource = value;
}
/**
* Gets the value of the response property.
*
* @return
* possible object is
* {@link AssertionResponseTypes }
*
*/
public AssertionResponseTypes getResponse() {
return response;
}
/**
* Sets the value of the response property.
*
* @param value
* allowed object is
* {@link AssertionResponseTypes }
*
*/
public void setResponse(AssertionResponseTypes value) {
this.response = value;
}
/**
* Gets the value of the responseCode property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getResponseCode() {
return responseCode;
}
/**
* Sets the value of the responseCode property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setResponseCode(org.hl7.fhir.String value) {
this.responseCode = value;
}
/**
* Gets the value of the rule property.
*
* @return
* possible object is
* {@link TestScriptRule2 }
*
*/
public TestScriptRule2 getRule() {
return rule;
}
/**
* Sets the value of the rule property.
*
* @param value
* allowed object is
* {@link TestScriptRule2 }
*
*/
public void setRule(TestScriptRule2 value) {
this.rule = value;
}
/**
* Gets the value of the ruleset property.
*
* @return
* possible object is
* {@link TestScriptRuleset1 }
*
*/
public TestScriptRuleset1 getRuleset() {
return ruleset;
}
/**
* Sets the value of the ruleset property.
*
* @param value
* allowed object is
* {@link TestScriptRuleset1 }
*
*/
public void setRuleset(TestScriptRuleset1 value) {
this.ruleset = value;
}
/**
* Gets the value of the sourceId property.
*
* @return
* possible object is
* {@link Id }
*
*/
public Id getSourceId() {
return sourceId;
}
/**
* Sets the value of the sourceId property.
*
* @param value
* allowed object is
* {@link Id }
*
*/
public void setSourceId(Id value) {
this.sourceId = value;
}
/**
* Gets the value of the validateProfileId property.
*
* @return
* possible object is
* {@link Id }
*
*/
public Id getValidateProfileId() {
return validateProfileId;
}
/**
* Sets the value of the validateProfileId property.
*
* @param value
* allowed object is
* {@link Id }
*
*/
public void setValidateProfileId(Id value) {
this.validateProfileId = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setValue(org.hl7.fhir.String value) {
this.value = value;
}
/**
* Gets the value of the warningOnly property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getWarningOnly() {
return warningOnly;
}
/**
* Sets the value of the warningOnly property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setWarningOnly(Boolean value) {
this.warningOnly = value;
}
public TestScriptAssert withLabel(org.hl7.fhir.String value) {
setLabel(value);
return this;
}
public TestScriptAssert withDescription(org.hl7.fhir.String value) {
setDescription(value);
return this;
}
public TestScriptAssert withDirection(AssertionDirectionType value) {
setDirection(value);
return this;
}
public TestScriptAssert withCompareToSourceId(org.hl7.fhir.String value) {
setCompareToSourceId(value);
return this;
}
public TestScriptAssert withCompareToSourcePath(org.hl7.fhir.String value) {
setCompareToSourcePath(value);
return this;
}
public TestScriptAssert withContentType(ContentType value) {
setContentType(value);
return this;
}
public TestScriptAssert withHeaderField(org.hl7.fhir.String value) {
setHeaderField(value);
return this;
}
public TestScriptAssert withMinimumId(org.hl7.fhir.String value) {
setMinimumId(value);
return this;
}
public TestScriptAssert withNavigationLinks(Boolean value) {
setNavigationLinks(value);
return this;
}
public TestScriptAssert withOperator(AssertionOperatorType value) {
setOperator(value);
return this;
}
public TestScriptAssert withPath(org.hl7.fhir.String value) {
setPath(value);
return this;
}
public TestScriptAssert withResource(Code value) {
setResource(value);
return this;
}
public TestScriptAssert withResponse(AssertionResponseTypes value) {
setResponse(value);
return this;
}
public TestScriptAssert withResponseCode(org.hl7.fhir.String value) {
setResponseCode(value);
return this;
}
public TestScriptAssert withRule(TestScriptRule2 value) {
setRule(value);
return this;
}
public TestScriptAssert withRuleset(TestScriptRuleset1 value) {
setRuleset(value);
return this;
}
public TestScriptAssert withSourceId(Id value) {
setSourceId(value);
return this;
}
public TestScriptAssert withValidateProfileId(Id value) {
setValidateProfileId(value);
return this;
}
public TestScriptAssert withValue(org.hl7.fhir.String value) {
setValue(value);
return this;
}
public TestScriptAssert withWarningOnly(Boolean value) {
setWarningOnly(value);
return this;
}
@Override
public TestScriptAssert withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public TestScriptAssert withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public TestScriptAssert withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public TestScriptAssert withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public TestScriptAssert 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 TestScriptAssert that = ((TestScriptAssert) object);
{
org.hl7.fhir.String lhsLabel;
lhsLabel = this.getLabel();
org.hl7.fhir.String rhsLabel;
rhsLabel = that.getLabel();
if (!strategy.equals(LocatorUtils.property(thisLocator, "label", lhsLabel), LocatorUtils.property(thatLocator, "label", rhsLabel), lhsLabel, rhsLabel, (this.label!= null), (that.label!= 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;
}
}
{
AssertionDirectionType lhsDirection;
lhsDirection = this.getDirection();
AssertionDirectionType rhsDirection;
rhsDirection = that.getDirection();
if (!strategy.equals(LocatorUtils.property(thisLocator, "direction", lhsDirection), LocatorUtils.property(thatLocator, "direction", rhsDirection), lhsDirection, rhsDirection, (this.direction!= null), (that.direction!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsCompareToSourceId;
lhsCompareToSourceId = this.getCompareToSourceId();
org.hl7.fhir.String rhsCompareToSourceId;
rhsCompareToSourceId = that.getCompareToSourceId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "compareToSourceId", lhsCompareToSourceId), LocatorUtils.property(thatLocator, "compareToSourceId", rhsCompareToSourceId), lhsCompareToSourceId, rhsCompareToSourceId, (this.compareToSourceId!= null), (that.compareToSourceId!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsCompareToSourcePath;
lhsCompareToSourcePath = this.getCompareToSourcePath();
org.hl7.fhir.String rhsCompareToSourcePath;
rhsCompareToSourcePath = that.getCompareToSourcePath();
if (!strategy.equals(LocatorUtils.property(thisLocator, "compareToSourcePath", lhsCompareToSourcePath), LocatorUtils.property(thatLocator, "compareToSourcePath", rhsCompareToSourcePath), lhsCompareToSourcePath, rhsCompareToSourcePath, (this.compareToSourcePath!= null), (that.compareToSourcePath!= null))) {
return false;
}
}
{
ContentType lhsContentType;
lhsContentType = this.getContentType();
ContentType rhsContentType;
rhsContentType = that.getContentType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "contentType", lhsContentType), LocatorUtils.property(thatLocator, "contentType", rhsContentType), lhsContentType, rhsContentType, (this.contentType!= null), (that.contentType!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsHeaderField;
lhsHeaderField = this.getHeaderField();
org.hl7.fhir.String rhsHeaderField;
rhsHeaderField = that.getHeaderField();
if (!strategy.equals(LocatorUtils.property(thisLocator, "headerField", lhsHeaderField), LocatorUtils.property(thatLocator, "headerField", rhsHeaderField), lhsHeaderField, rhsHeaderField, (this.headerField!= null), (that.headerField!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsMinimumId;
lhsMinimumId = this.getMinimumId();
org.hl7.fhir.String rhsMinimumId;
rhsMinimumId = that.getMinimumId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "minimumId", lhsMinimumId), LocatorUtils.property(thatLocator, "minimumId", rhsMinimumId), lhsMinimumId, rhsMinimumId, (this.minimumId!= null), (that.minimumId!= null))) {
return false;
}
}
{
Boolean lhsNavigationLinks;
lhsNavigationLinks = this.getNavigationLinks();
Boolean rhsNavigationLinks;
rhsNavigationLinks = that.getNavigationLinks();
if (!strategy.equals(LocatorUtils.property(thisLocator, "navigationLinks", lhsNavigationLinks), LocatorUtils.property(thatLocator, "navigationLinks", rhsNavigationLinks), lhsNavigationLinks, rhsNavigationLinks, (this.navigationLinks!= null), (that.navigationLinks!= null))) {
return false;
}
}
{
AssertionOperatorType lhsOperator;
lhsOperator = this.getOperator();
AssertionOperatorType rhsOperator;
rhsOperator = that.getOperator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "operator", lhsOperator), LocatorUtils.property(thatLocator, "operator", rhsOperator), lhsOperator, rhsOperator, (this.operator!= null), (that.operator!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsPath;
lhsPath = this.getPath();
org.hl7.fhir.String rhsPath;
rhsPath = that.getPath();
if (!strategy.equals(LocatorUtils.property(thisLocator, "path", lhsPath), LocatorUtils.property(thatLocator, "path", rhsPath), lhsPath, rhsPath, (this.path!= null), (that.path!= null))) {
return false;
}
}
{
Code lhsResource;
lhsResource = this.getResource();
Code rhsResource;
rhsResource = that.getResource();
if (!strategy.equals(LocatorUtils.property(thisLocator, "resource", lhsResource), LocatorUtils.property(thatLocator, "resource", rhsResource), lhsResource, rhsResource, (this.resource!= null), (that.resource!= null))) {
return false;
}
}
{
AssertionResponseTypes lhsResponse;
lhsResponse = this.getResponse();
AssertionResponseTypes rhsResponse;
rhsResponse = that.getResponse();
if (!strategy.equals(LocatorUtils.property(thisLocator, "response", lhsResponse), LocatorUtils.property(thatLocator, "response", rhsResponse), lhsResponse, rhsResponse, (this.response!= null), (that.response!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsResponseCode;
lhsResponseCode = this.getResponseCode();
org.hl7.fhir.String rhsResponseCode;
rhsResponseCode = that.getResponseCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "responseCode", lhsResponseCode), LocatorUtils.property(thatLocator, "responseCode", rhsResponseCode), lhsResponseCode, rhsResponseCode, (this.responseCode!= null), (that.responseCode!= null))) {
return false;
}
}
{
TestScriptRule2 lhsRule;
lhsRule = this.getRule();
TestScriptRule2 rhsRule;
rhsRule = that.getRule();
if (!strategy.equals(LocatorUtils.property(thisLocator, "rule", lhsRule), LocatorUtils.property(thatLocator, "rule", rhsRule), lhsRule, rhsRule, (this.rule!= null), (that.rule!= null))) {
return false;
}
}
{
TestScriptRuleset1 lhsRuleset;
lhsRuleset = this.getRuleset();
TestScriptRuleset1 rhsRuleset;
rhsRuleset = that.getRuleset();
if (!strategy.equals(LocatorUtils.property(thisLocator, "ruleset", lhsRuleset), LocatorUtils.property(thatLocator, "ruleset", rhsRuleset), lhsRuleset, rhsRuleset, (this.ruleset!= null), (that.ruleset!= null))) {
return false;
}
}
{
Id lhsSourceId;
lhsSourceId = this.getSourceId();
Id rhsSourceId;
rhsSourceId = that.getSourceId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sourceId", lhsSourceId), LocatorUtils.property(thatLocator, "sourceId", rhsSourceId), lhsSourceId, rhsSourceId, (this.sourceId!= null), (that.sourceId!= null))) {
return false;
}
}
{
Id lhsValidateProfileId;
lhsValidateProfileId = this.getValidateProfileId();
Id rhsValidateProfileId;
rhsValidateProfileId = that.getValidateProfileId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "validateProfileId", lhsValidateProfileId), LocatorUtils.property(thatLocator, "validateProfileId", rhsValidateProfileId), lhsValidateProfileId, rhsValidateProfileId, (this.validateProfileId!= null), (that.validateProfileId!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsValue;
lhsValue = this.getValue();
org.hl7.fhir.String rhsValue;
rhsValue = that.getValue();
if (!strategy.equals(LocatorUtils.property(thisLocator, "value", lhsValue), LocatorUtils.property(thatLocator, "value", rhsValue), lhsValue, rhsValue, (this.value!= null), (that.value!= null))) {
return false;
}
}
{
Boolean lhsWarningOnly;
lhsWarningOnly = this.getWarningOnly();
Boolean rhsWarningOnly;
rhsWarningOnly = that.getWarningOnly();
if (!strategy.equals(LocatorUtils.property(thisLocator, "warningOnly", lhsWarningOnly), LocatorUtils.property(thatLocator, "warningOnly", rhsWarningOnly), lhsWarningOnly, rhsWarningOnly, (this.warningOnly!= null), (that.warningOnly!= 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);
{
org.hl7.fhir.String theLabel;
theLabel = this.getLabel();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "label", theLabel), currentHashCode, theLabel, (this.label!= null));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null));
}
{
AssertionDirectionType theDirection;
theDirection = this.getDirection();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "direction", theDirection), currentHashCode, theDirection, (this.direction!= null));
}
{
org.hl7.fhir.String theCompareToSourceId;
theCompareToSourceId = this.getCompareToSourceId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "compareToSourceId", theCompareToSourceId), currentHashCode, theCompareToSourceId, (this.compareToSourceId!= null));
}
{
org.hl7.fhir.String theCompareToSourcePath;
theCompareToSourcePath = this.getCompareToSourcePath();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "compareToSourcePath", theCompareToSourcePath), currentHashCode, theCompareToSourcePath, (this.compareToSourcePath!= null));
}
{
ContentType theContentType;
theContentType = this.getContentType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contentType", theContentType), currentHashCode, theContentType, (this.contentType!= null));
}
{
org.hl7.fhir.String theHeaderField;
theHeaderField = this.getHeaderField();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "headerField", theHeaderField), currentHashCode, theHeaderField, (this.headerField!= null));
}
{
org.hl7.fhir.String theMinimumId;
theMinimumId = this.getMinimumId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "minimumId", theMinimumId), currentHashCode, theMinimumId, (this.minimumId!= null));
}
{
Boolean theNavigationLinks;
theNavigationLinks = this.getNavigationLinks();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "navigationLinks", theNavigationLinks), currentHashCode, theNavigationLinks, (this.navigationLinks!= null));
}
{
AssertionOperatorType theOperator;
theOperator = this.getOperator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "operator", theOperator), currentHashCode, theOperator, (this.operator!= null));
}
{
org.hl7.fhir.String thePath;
thePath = this.getPath();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "path", thePath), currentHashCode, thePath, (this.path!= null));
}
{
Code theResource;
theResource = this.getResource();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resource", theResource), currentHashCode, theResource, (this.resource!= null));
}
{
AssertionResponseTypes theResponse;
theResponse = this.getResponse();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "response", theResponse), currentHashCode, theResponse, (this.response!= null));
}
{
org.hl7.fhir.String theResponseCode;
theResponseCode = this.getResponseCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "responseCode", theResponseCode), currentHashCode, theResponseCode, (this.responseCode!= null));
}
{
TestScriptRule2 theRule;
theRule = this.getRule();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rule", theRule), currentHashCode, theRule, (this.rule!= null));
}
{
TestScriptRuleset1 theRuleset;
theRuleset = this.getRuleset();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ruleset", theRuleset), currentHashCode, theRuleset, (this.ruleset!= null));
}
{
Id theSourceId;
theSourceId = this.getSourceId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sourceId", theSourceId), currentHashCode, theSourceId, (this.sourceId!= null));
}
{
Id theValidateProfileId;
theValidateProfileId = this.getValidateProfileId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "validateProfileId", theValidateProfileId), currentHashCode, theValidateProfileId, (this.validateProfileId!= null));
}
{
org.hl7.fhir.String theValue;
theValue = this.getValue();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "value", theValue), currentHashCode, theValue, (this.value!= null));
}
{
Boolean theWarningOnly;
theWarningOnly = this.getWarningOnly();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "warningOnly", theWarningOnly), currentHashCode, theWarningOnly, (this.warningOnly!= 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);
{
org.hl7.fhir.String theLabel;
theLabel = this.getLabel();
strategy.appendField(locator, this, "label", buffer, theLabel, (this.label!= null));
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null));
}
{
AssertionDirectionType theDirection;
theDirection = this.getDirection();
strategy.appendField(locator, this, "direction", buffer, theDirection, (this.direction!= null));
}
{
org.hl7.fhir.String theCompareToSourceId;
theCompareToSourceId = this.getCompareToSourceId();
strategy.appendField(locator, this, "compareToSourceId", buffer, theCompareToSourceId, (this.compareToSourceId!= null));
}
{
org.hl7.fhir.String theCompareToSourcePath;
theCompareToSourcePath = this.getCompareToSourcePath();
strategy.appendField(locator, this, "compareToSourcePath", buffer, theCompareToSourcePath, (this.compareToSourcePath!= null));
}
{
ContentType theContentType;
theContentType = this.getContentType();
strategy.appendField(locator, this, "contentType", buffer, theContentType, (this.contentType!= null));
}
{
org.hl7.fhir.String theHeaderField;
theHeaderField = this.getHeaderField();
strategy.appendField(locator, this, "headerField", buffer, theHeaderField, (this.headerField!= null));
}
{
org.hl7.fhir.String theMinimumId;
theMinimumId = this.getMinimumId();
strategy.appendField(locator, this, "minimumId", buffer, theMinimumId, (this.minimumId!= null));
}
{
Boolean theNavigationLinks;
theNavigationLinks = this.getNavigationLinks();
strategy.appendField(locator, this, "navigationLinks", buffer, theNavigationLinks, (this.navigationLinks!= null));
}
{
AssertionOperatorType theOperator;
theOperator = this.getOperator();
strategy.appendField(locator, this, "operator", buffer, theOperator, (this.operator!= null));
}
{
org.hl7.fhir.String thePath;
thePath = this.getPath();
strategy.appendField(locator, this, "path", buffer, thePath, (this.path!= null));
}
{
Code theResource;
theResource = this.getResource();
strategy.appendField(locator, this, "resource", buffer, theResource, (this.resource!= null));
}
{
AssertionResponseTypes theResponse;
theResponse = this.getResponse();
strategy.appendField(locator, this, "response", buffer, theResponse, (this.response!= null));
}
{
org.hl7.fhir.String theResponseCode;
theResponseCode = this.getResponseCode();
strategy.appendField(locator, this, "responseCode", buffer, theResponseCode, (this.responseCode!= null));
}
{
TestScriptRule2 theRule;
theRule = this.getRule();
strategy.appendField(locator, this, "rule", buffer, theRule, (this.rule!= null));
}
{
TestScriptRuleset1 theRuleset;
theRuleset = this.getRuleset();
strategy.appendField(locator, this, "ruleset", buffer, theRuleset, (this.ruleset!= null));
}
{
Id theSourceId;
theSourceId = this.getSourceId();
strategy.appendField(locator, this, "sourceId", buffer, theSourceId, (this.sourceId!= null));
}
{
Id theValidateProfileId;
theValidateProfileId = this.getValidateProfileId();
strategy.appendField(locator, this, "validateProfileId", buffer, theValidateProfileId, (this.validateProfileId!= null));
}
{
org.hl7.fhir.String theValue;
theValue = this.getValue();
strategy.appendField(locator, this, "value", buffer, theValue, (this.value!= null));
}
{
Boolean theWarningOnly;
theWarningOnly = this.getWarningOnly();
strategy.appendField(locator, this, "warningOnly", buffer, theWarningOnly, (this.warningOnly!= null));
}
return buffer;
}
}