
org.hl7.fhir.TestScriptCapability Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.01.12 at 11:04:27 AM MST
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString
{
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 JAXB 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 JAXB 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;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof TestScriptCapability)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
Boolean theRequired;
theRequired = this.getRequired();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "required", theRequired), currentHashCode, theRequired);
}
{
Boolean theValidated;
theValidated = this.getValidated();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "validated", theValidated), currentHashCode, theValidated);
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription);
}
{
List theOrigin;
theOrigin = (((this.origin!= null)&&(!this.origin.isEmpty()))?this.getOrigin():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "origin", theOrigin), currentHashCode, theOrigin);
}
{
Integer theDestination;
theDestination = this.getDestination();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "destination", theDestination), currentHashCode, theDestination);
}
{
List theLink;
theLink = (((this.link!= null)&&(!this.link.isEmpty()))?this.getLink():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "link", theLink), currentHashCode, theLink);
}
{
Reference theConformance;
theConformance = this.getConformance();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conformance", theConformance), currentHashCode, theConformance);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public java.lang.String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
super.appendFields(locator, buffer, strategy);
{
Boolean theRequired;
theRequired = this.getRequired();
strategy.appendField(locator, this, "required", buffer, theRequired);
}
{
Boolean theValidated;
theValidated = this.getValidated();
strategy.appendField(locator, this, "validated", buffer, theValidated);
}
{
org.hl7.fhir.String theDescription;
theDescription = this.getDescription();
strategy.appendField(locator, this, "description", buffer, theDescription);
}
{
List theOrigin;
theOrigin = (((this.origin!= null)&&(!this.origin.isEmpty()))?this.getOrigin():null);
strategy.appendField(locator, this, "origin", buffer, theOrigin);
}
{
Integer theDestination;
theDestination = this.getDestination();
strategy.appendField(locator, this, "destination", buffer, theDestination);
}
{
List theLink;
theLink = (((this.link!= null)&&(!this.link.isEmpty()))?this.getLink():null);
strategy.appendField(locator, this, "link", buffer, theLink);
}
{
Reference theConformance;
theConformance = this.getConformance();
strategy.appendField(locator, this, "conformance", buffer, theConformance);
}
return buffer;
}
}