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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

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


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 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.Capability complex type. * *

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

 * <complexType name="TestScript.Capability">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="required" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="validated" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="origin" type="{http://hl7.org/fhir}integer" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="destination" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
 *         <element name="link" type="{http://hl7.org/fhir}uri" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="conformance" type="{http://hl7.org/fhir}Reference"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TestScript.Capability", propOrder = { "required", "validated", "description", "origin", "destination", "link", "conformance" }) public class TestScriptCapability extends BackboneElement implements Equals2, HashCode2, ToString2 { protected Boolean required; protected Boolean validated; protected org.hl7.fhir.String description; protected List origin; protected Integer destination; protected List link; @XmlElement(required = true) protected Reference conformance; /** * Gets the value of the required property. * * @return * possible object is * {@link Boolean } * */ public Boolean getRequired() { return required; } /** * Sets the value of the required property. * * @param value * allowed object is * {@link Boolean } * */ public void setRequired(Boolean value) { this.required = value; } /** * Gets the value of the validated property. * * @return * possible object is * {@link Boolean } * */ public Boolean getValidated() { return validated; } /** * Sets the value of the validated property. * * @param value * allowed object is * {@link Boolean } * */ public void setValidated(Boolean value) { this.validated = 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 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 Integer } * * */ public List getOrigin() { if (origin == null) { origin = new ArrayList(); } return this.origin; } /** * Gets the value of the destination property. * * @return * possible object is * {@link Integer } * */ public Integer getDestination() { return destination; } /** * Sets the value of the destination property. * * @param value * allowed object is * {@link Integer } * */ public void setDestination(Integer value) { this.destination = value; } /** * Gets the value of the link 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 link property. * *

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

     *    getLink().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Uri } * * */ public List getLink() { if (link == null) { link = new ArrayList(); } return this.link; } /** * Gets the value of the conformance property. * * @return * possible object is * {@link Reference } * */ public Reference getConformance() { return conformance; } /** * Sets the value of the conformance property. * * @param value * allowed object is * {@link Reference } * */ public void setConformance(Reference value) { this.conformance = value; } public TestScriptCapability withRequired(Boolean value) { setRequired(value); return this; } public TestScriptCapability withValidated(Boolean value) { setValidated(value); return this; } public TestScriptCapability withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public TestScriptCapability withOrigin(Integer... values) { if (values!= null) { for (Integer value: values) { getOrigin().add(value); } } return this; } public TestScriptCapability withOrigin(Collection values) { if (values!= null) { getOrigin().addAll(values); } return this; } public TestScriptCapability withDestination(Integer value) { setDestination(value); return this; } public TestScriptCapability withLink(Uri... values) { if (values!= null) { for (Uri value: values) { getLink().add(value); } } return this; } public TestScriptCapability withLink(Collection values) { if (values!= null) { getLink().addAll(values); } return this; } public TestScriptCapability withConformance(Reference value) { setConformance(value); return this; } @Override public TestScriptCapability withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public TestScriptCapability withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public TestScriptCapability withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public TestScriptCapability withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public TestScriptCapability 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 TestScriptCapability that = ((TestScriptCapability) object); { Boolean lhsRequired; lhsRequired = this.getRequired(); Boolean rhsRequired; rhsRequired = that.getRequired(); if (!strategy.equals(LocatorUtils.property(thisLocator, "required", lhsRequired), LocatorUtils.property(thatLocator, "required", rhsRequired), lhsRequired, rhsRequired, (this.required!= null), (that.required!= null))) { return false; } } { Boolean lhsValidated; lhsValidated = this.getValidated(); Boolean rhsValidated; rhsValidated = that.getValidated(); if (!strategy.equals(LocatorUtils.property(thisLocator, "validated", lhsValidated), LocatorUtils.property(thatLocator, "validated", rhsValidated), lhsValidated, rhsValidated, (this.validated!= null), (that.validated!= 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 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; } } { Integer lhsDestination; lhsDestination = this.getDestination(); Integer rhsDestination; rhsDestination = that.getDestination(); if (!strategy.equals(LocatorUtils.property(thisLocator, "destination", lhsDestination), LocatorUtils.property(thatLocator, "destination", rhsDestination), lhsDestination, rhsDestination, (this.destination!= null), (that.destination!= null))) { return false; } } { List lhsLink; lhsLink = (((this.link!= null)&&(!this.link.isEmpty()))?this.getLink():null); List rhsLink; rhsLink = (((that.link!= null)&&(!that.link.isEmpty()))?that.getLink():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "link", lhsLink), LocatorUtils.property(thatLocator, "link", rhsLink), lhsLink, rhsLink, ((this.link!= null)&&(!this.link.isEmpty())), ((that.link!= null)&&(!that.link.isEmpty())))) { return false; } } { Reference lhsConformance; lhsConformance = this.getConformance(); Reference rhsConformance; rhsConformance = that.getConformance(); if (!strategy.equals(LocatorUtils.property(thisLocator, "conformance", lhsConformance), LocatorUtils.property(thatLocator, "conformance", rhsConformance), lhsConformance, rhsConformance, (this.conformance!= null), (that.conformance!= 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); { Boolean theRequired; theRequired = this.getRequired(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "required", theRequired), currentHashCode, theRequired, (this.required!= null)); } { Boolean theValidated; theValidated = this.getValidated(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "validated", theValidated), currentHashCode, theValidated, (this.validated!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= 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()))); } { Integer theDestination; theDestination = this.getDestination(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destination", theDestination), currentHashCode, theDestination, (this.destination!= null)); } { List theLink; theLink = (((this.link!= null)&&(!this.link.isEmpty()))?this.getLink():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "link", theLink), currentHashCode, theLink, ((this.link!= null)&&(!this.link.isEmpty()))); } { Reference theConformance; theConformance = this.getConformance(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conformance", theConformance), currentHashCode, theConformance, (this.conformance!= 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); { Boolean theRequired; theRequired = this.getRequired(); strategy.appendField(locator, this, "required", buffer, theRequired, (this.required!= null)); } { Boolean theValidated; theValidated = this.getValidated(); strategy.appendField(locator, this, "validated", buffer, theValidated, (this.validated!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= 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()))); } { Integer theDestination; theDestination = this.getDestination(); strategy.appendField(locator, this, "destination", buffer, theDestination, (this.destination!= null)); } { List theLink; theLink = (((this.link!= null)&&(!this.link.isEmpty()))?this.getLink():null); strategy.appendField(locator, this, "link", buffer, theLink, ((this.link!= null)&&(!this.link.isEmpty()))); } { Reference theConformance; theConformance = this.getConformance(); strategy.appendField(locator, this, "conformance", buffer, theConformance, (this.conformance!= null)); } return buffer; } public void setOrigin(List value) { this.origin = value; } public void setLink(List value) { this.link = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy