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.22.0
Show newest version
//
// 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;


/**
 * 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 Equals, HashCode, ToString { @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 JAXB 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 JAXB 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 JAXB 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 JAXB 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 JAXB 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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ConformanceRest)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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); { RestfulConformanceMode theMode; theMode = this.getMode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mode", theMode), currentHashCode, theMode); } { org.hl7.fhir.String theDocumentation; theDocumentation = this.getDocumentation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentation", theDocumentation), currentHashCode, theDocumentation); } { ConformanceSecurity theSecurity; theSecurity = this.getSecurity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "security", theSecurity), currentHashCode, theSecurity); } { List theResource; theResource = (((this.resource!= null)&&(!this.resource.isEmpty()))?this.getResource():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "resource", theResource), currentHashCode, theResource); } { List theInteraction; theInteraction = (((this.interaction!= null)&&(!this.interaction.isEmpty()))?this.getInteraction():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "interaction", theInteraction), currentHashCode, theInteraction); } { TransactionMode theTransactionMode; theTransactionMode = this.getTransactionMode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "transactionMode", theTransactionMode), currentHashCode, theTransactionMode); } { List theSearchParam; theSearchParam = (((this.searchParam!= null)&&(!this.searchParam.isEmpty()))?this.getSearchParam():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "searchParam", theSearchParam), currentHashCode, theSearchParam); } { List theOperation; theOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "operation", theOperation), currentHashCode, theOperation); } { List theCompartment; theCompartment = (((this.compartment!= null)&&(!this.compartment.isEmpty()))?this.getCompartment():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "compartment", theCompartment), currentHashCode, theCompartment); } 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); { RestfulConformanceMode theMode; theMode = this.getMode(); strategy.appendField(locator, this, "mode", buffer, theMode); } { org.hl7.fhir.String theDocumentation; theDocumentation = this.getDocumentation(); strategy.appendField(locator, this, "documentation", buffer, theDocumentation); } { ConformanceSecurity theSecurity; theSecurity = this.getSecurity(); strategy.appendField(locator, this, "security", buffer, theSecurity); } { List theResource; theResource = (((this.resource!= null)&&(!this.resource.isEmpty()))?this.getResource():null); strategy.appendField(locator, this, "resource", buffer, theResource); } { List theInteraction; theInteraction = (((this.interaction!= null)&&(!this.interaction.isEmpty()))?this.getInteraction():null); strategy.appendField(locator, this, "interaction", buffer, theInteraction); } { TransactionMode theTransactionMode; theTransactionMode = this.getTransactionMode(); strategy.appendField(locator, this, "transactionMode", buffer, theTransactionMode); } { List theSearchParam; theSearchParam = (((this.searchParam!= null)&&(!this.searchParam.isEmpty()))?this.getSearchParam():null); strategy.appendField(locator, this, "searchParam", buffer, theSearchParam); } { List theOperation; theOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null); strategy.appendField(locator, this, "operation", buffer, theOperation); } { List theCompartment; theCompartment = (((this.compartment!= null)&&(!this.compartment.isEmpty()))?this.getCompartment():null); strategy.appendField(locator, this, "compartment", buffer, theCompartment); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy