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

org.hl7.fhir.ConformanceRest 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.06.14 at 01:52:11 PM 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;


/**
 * A conformance statement is a set of capabilities of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation.
 * 
 * 

Java class for Conformance.Rest complex type. * *

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

 * <complexType name="Conformance.Rest">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="mode" type="{http://hl7.org/fhir}RestfulConformanceMode"/>
 *         <element name="documentation" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="security" type="{http://hl7.org/fhir}Conformance.Security" minOccurs="0"/>
 *         <element name="resource" type="{http://hl7.org/fhir}Conformance.Resource" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="interaction" type="{http://hl7.org/fhir}Conformance.Interaction1" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="transactionMode" type="{http://hl7.org/fhir}TransactionMode" minOccurs="0"/>
 *         <element name="searchParam" type="{http://hl7.org/fhir}Conformance.SearchParam" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="operation" type="{http://hl7.org/fhir}Conformance.Operation" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="compartment" type="{http://hl7.org/fhir}uri" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Conformance.Rest", propOrder = { "mode", "documentation", "security", "resource", "interaction", "transactionMode", "searchParam", "operation", "compartment" }) public class ConformanceRest extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected RestfulConformanceMode mode; protected org.hl7.fhir.String documentation; protected ConformanceSecurity security; protected List resource; protected List interaction; protected TransactionMode transactionMode; protected List searchParam; protected List operation; protected List compartment; /** * Gets the value of the mode property. * * @return * possible object is * {@link RestfulConformanceMode } * */ public RestfulConformanceMode getMode() { return mode; } /** * Sets the value of the mode property. * * @param value * allowed object is * {@link RestfulConformanceMode } * */ public void setMode(RestfulConformanceMode value) { this.mode = value; } /** * Gets the value of the documentation property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getDocumentation() { return documentation; } /** * Sets the value of the documentation property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setDocumentation(org.hl7.fhir.String value) { this.documentation = value; } /** * Gets the value of the security property. * * @return * possible object is * {@link ConformanceSecurity } * */ public ConformanceSecurity getSecurity() { return security; } /** * Sets the value of the security property. * * @param value * allowed object is * {@link ConformanceSecurity } * */ public void setSecurity(ConformanceSecurity value) { this.security = value; } /** * Gets the value of the resource 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 resource property. * *

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

     *    getResource().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceResource } * * */ public List getResource() { if (resource == null) { resource = new ArrayList(); } return this.resource; } /** * Gets the value of the interaction 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 interaction property. * *

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

     *    getInteraction().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceInteraction1 } * * */ public List getInteraction() { if (interaction == null) { interaction = new ArrayList(); } return this.interaction; } /** * Gets the value of the transactionMode property. * * @return * possible object is * {@link TransactionMode } * */ public TransactionMode getTransactionMode() { return transactionMode; } /** * Sets the value of the transactionMode property. * * @param value * allowed object is * {@link TransactionMode } * */ public void setTransactionMode(TransactionMode value) { this.transactionMode = value; } /** * Gets the value of the searchParam 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 searchParam property. * *

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

     *    getSearchParam().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceSearchParam } * * */ public List getSearchParam() { if (searchParam == null) { searchParam = new ArrayList(); } return this.searchParam; } /** * Gets the value of the operation 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 operation property. * *

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

     *    getOperation().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceOperation } * * */ public List getOperation() { if (operation == null) { operation = new ArrayList(); } return this.operation; } /** * Gets the value of the compartment 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 compartment property. * *

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

     *    getCompartment().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Uri } * * */ public List getCompartment() { if (compartment == null) { compartment = new ArrayList(); } return this.compartment; } public ConformanceRest withMode(RestfulConformanceMode value) { setMode(value); return this; } public ConformanceRest withDocumentation(org.hl7.fhir.String value) { setDocumentation(value); return this; } public ConformanceRest withSecurity(ConformanceSecurity value) { setSecurity(value); return this; } public ConformanceRest withResource(ConformanceResource... values) { if (values!= null) { for (ConformanceResource value: values) { getResource().add(value); } } return this; } public ConformanceRest withResource(Collection values) { if (values!= null) { getResource().addAll(values); } return this; } public ConformanceRest withInteraction(ConformanceInteraction1 ... values) { if (values!= null) { for (ConformanceInteraction1 value: values) { getInteraction().add(value); } } return this; } public ConformanceRest withInteraction(Collection values) { if (values!= null) { getInteraction().addAll(values); } return this; } public ConformanceRest withTransactionMode(TransactionMode value) { setTransactionMode(value); return this; } public ConformanceRest withSearchParam(ConformanceSearchParam... values) { if (values!= null) { for (ConformanceSearchParam value: values) { getSearchParam().add(value); } } return this; } public ConformanceRest withSearchParam(Collection values) { if (values!= null) { getSearchParam().addAll(values); } return this; } public ConformanceRest withOperation(ConformanceOperation... values) { if (values!= null) { for (ConformanceOperation value: values) { getOperation().add(value); } } return this; } public ConformanceRest withOperation(Collection values) { if (values!= null) { getOperation().addAll(values); } return this; } public ConformanceRest withCompartment(Uri... values) { if (values!= null) { for (Uri value: values) { getCompartment().add(value); } } return this; } public ConformanceRest withCompartment(Collection values) { if (values!= null) { getCompartment().addAll(values); } return this; } @Override public ConformanceRest withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ConformanceRest withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ConformanceRest withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ConformanceRest withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ConformanceRest 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 ConformanceRest that = ((ConformanceRest) object); { RestfulConformanceMode lhsMode; lhsMode = this.getMode(); RestfulConformanceMode rhsMode; rhsMode = that.getMode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mode", lhsMode), LocatorUtils.property(thatLocator, "mode", rhsMode), lhsMode, rhsMode, (this.mode!= null), (that.mode!= null))) { return false; } } { org.hl7.fhir.String lhsDocumentation; lhsDocumentation = this.getDocumentation(); org.hl7.fhir.String rhsDocumentation; rhsDocumentation = that.getDocumentation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "documentation", lhsDocumentation), LocatorUtils.property(thatLocator, "documentation", rhsDocumentation), lhsDocumentation, rhsDocumentation, (this.documentation!= null), (that.documentation!= null))) { return false; } } { ConformanceSecurity lhsSecurity; lhsSecurity = this.getSecurity(); ConformanceSecurity rhsSecurity; rhsSecurity = that.getSecurity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "security", lhsSecurity), LocatorUtils.property(thatLocator, "security", rhsSecurity), lhsSecurity, rhsSecurity, (this.security!= null), (that.security!= null))) { return false; } } { List lhsResource; lhsResource = (((this.resource!= null)&&(!this.resource.isEmpty()))?this.getResource():null); List rhsResource; rhsResource = (((that.resource!= null)&&(!that.resource.isEmpty()))?that.getResource():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "resource", lhsResource), LocatorUtils.property(thatLocator, "resource", rhsResource), lhsResource, rhsResource, ((this.resource!= null)&&(!this.resource.isEmpty())), ((that.resource!= null)&&(!that.resource.isEmpty())))) { return false; } } { List lhsInteraction; lhsInteraction = (((this.interaction!= null)&&(!this.interaction.isEmpty()))?this.getInteraction():null); List rhsInteraction; rhsInteraction = (((that.interaction!= null)&&(!that.interaction.isEmpty()))?that.getInteraction():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "interaction", lhsInteraction), LocatorUtils.property(thatLocator, "interaction", rhsInteraction), lhsInteraction, rhsInteraction, ((this.interaction!= null)&&(!this.interaction.isEmpty())), ((that.interaction!= null)&&(!that.interaction.isEmpty())))) { return false; } } { TransactionMode lhsTransactionMode; lhsTransactionMode = this.getTransactionMode(); TransactionMode rhsTransactionMode; rhsTransactionMode = that.getTransactionMode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "transactionMode", lhsTransactionMode), LocatorUtils.property(thatLocator, "transactionMode", rhsTransactionMode), lhsTransactionMode, rhsTransactionMode, (this.transactionMode!= null), (that.transactionMode!= null))) { return false; } } { List lhsSearchParam; lhsSearchParam = (((this.searchParam!= null)&&(!this.searchParam.isEmpty()))?this.getSearchParam():null); List rhsSearchParam; rhsSearchParam = (((that.searchParam!= null)&&(!that.searchParam.isEmpty()))?that.getSearchParam():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "searchParam", lhsSearchParam), LocatorUtils.property(thatLocator, "searchParam", rhsSearchParam), lhsSearchParam, rhsSearchParam, ((this.searchParam!= null)&&(!this.searchParam.isEmpty())), ((that.searchParam!= null)&&(!that.searchParam.isEmpty())))) { return false; } } { List lhsOperation; lhsOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null); List rhsOperation; rhsOperation = (((that.operation!= null)&&(!that.operation.isEmpty()))?that.getOperation():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "operation", lhsOperation), LocatorUtils.property(thatLocator, "operation", rhsOperation), lhsOperation, rhsOperation, ((this.operation!= null)&&(!this.operation.isEmpty())), ((that.operation!= null)&&(!that.operation.isEmpty())))) { return false; } } { List lhsCompartment; lhsCompartment = (((this.compartment!= null)&&(!this.compartment.isEmpty()))?this.getCompartment():null); List rhsCompartment; rhsCompartment = (((that.compartment!= null)&&(!that.compartment.isEmpty()))?that.getCompartment():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "compartment", lhsCompartment), LocatorUtils.property(thatLocator, "compartment", rhsCompartment), lhsCompartment, rhsCompartment, ((this.compartment!= null)&&(!this.compartment.isEmpty())), ((that.compartment!= null)&&(!that.compartment.isEmpty())))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { RestfulConformanceMode theMode; theMode = this.getMode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mode", theMode), currentHashCode, theMode, (this.mode!= null)); } { org.hl7.fhir.String theDocumentation; theDocumentation = this.getDocumentation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentation", theDocumentation), currentHashCode, theDocumentation, (this.documentation!= null)); } { ConformanceSecurity theSecurity; theSecurity = this.getSecurity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "security", theSecurity), currentHashCode, theSecurity, (this.security!= null)); } { List theResource; theResource = (((this.resource!= null)&&(!this.resource.isEmpty()))?this.getResource():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resource", theResource), currentHashCode, theResource, ((this.resource!= null)&&(!this.resource.isEmpty()))); } { List theInteraction; theInteraction = (((this.interaction!= null)&&(!this.interaction.isEmpty()))?this.getInteraction():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "interaction", theInteraction), currentHashCode, theInteraction, ((this.interaction!= null)&&(!this.interaction.isEmpty()))); } { TransactionMode theTransactionMode; theTransactionMode = this.getTransactionMode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "transactionMode", theTransactionMode), currentHashCode, theTransactionMode, (this.transactionMode!= null)); } { List theSearchParam; theSearchParam = (((this.searchParam!= null)&&(!this.searchParam.isEmpty()))?this.getSearchParam():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "searchParam", theSearchParam), currentHashCode, theSearchParam, ((this.searchParam!= null)&&(!this.searchParam.isEmpty()))); } { List theOperation; theOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "operation", theOperation), currentHashCode, theOperation, ((this.operation!= null)&&(!this.operation.isEmpty()))); } { List theCompartment; theCompartment = (((this.compartment!= null)&&(!this.compartment.isEmpty()))?this.getCompartment():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "compartment", theCompartment), currentHashCode, theCompartment, ((this.compartment!= null)&&(!this.compartment.isEmpty()))); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public java.lang.String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { RestfulConformanceMode theMode; theMode = this.getMode(); strategy.appendField(locator, this, "mode", buffer, theMode, (this.mode!= null)); } { org.hl7.fhir.String theDocumentation; theDocumentation = this.getDocumentation(); strategy.appendField(locator, this, "documentation", buffer, theDocumentation, (this.documentation!= null)); } { ConformanceSecurity theSecurity; theSecurity = this.getSecurity(); strategy.appendField(locator, this, "security", buffer, theSecurity, (this.security!= null)); } { List theResource; theResource = (((this.resource!= null)&&(!this.resource.isEmpty()))?this.getResource():null); strategy.appendField(locator, this, "resource", buffer, theResource, ((this.resource!= null)&&(!this.resource.isEmpty()))); } { List theInteraction; theInteraction = (((this.interaction!= null)&&(!this.interaction.isEmpty()))?this.getInteraction():null); strategy.appendField(locator, this, "interaction", buffer, theInteraction, ((this.interaction!= null)&&(!this.interaction.isEmpty()))); } { TransactionMode theTransactionMode; theTransactionMode = this.getTransactionMode(); strategy.appendField(locator, this, "transactionMode", buffer, theTransactionMode, (this.transactionMode!= null)); } { List theSearchParam; theSearchParam = (((this.searchParam!= null)&&(!this.searchParam.isEmpty()))?this.getSearchParam():null); strategy.appendField(locator, this, "searchParam", buffer, theSearchParam, ((this.searchParam!= null)&&(!this.searchParam.isEmpty()))); } { List theOperation; theOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null); strategy.appendField(locator, this, "operation", buffer, theOperation, ((this.operation!= null)&&(!this.operation.isEmpty()))); } { List theCompartment; theCompartment = (((this.compartment!= null)&&(!this.compartment.isEmpty()))?this.getCompartment():null); strategy.appendField(locator, this, "compartment", buffer, theCompartment, ((this.compartment!= null)&&(!this.compartment.isEmpty()))); } return buffer; } public void setResource(List value) { this.resource = value; } public void setInteraction(List value) { this.interaction = value; } public void setSearchParam(List value) { this.searchParam = value; } public void setOperation(List value) { this.operation = value; } public void setCompartment(List value) { this.compartment = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy