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

org.hl7.fhir.ConformanceSecurity 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.05.02 at 09:57:28 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.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.Security complex type. * *

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

 * <complexType name="Conformance.Security">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="cors" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="service" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="certificate" type="{http://hl7.org/fhir}Conformance.Certificate" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Conformance.Security", propOrder = { "cors", "service", "description", "certificate" }) public class ConformanceSecurity extends BackboneElement implements Equals2, HashCode2, ToString2 { protected Boolean cors; protected List service; protected org.hl7.fhir.String description; protected List certificate; /** * Gets the value of the cors property. * * @return * possible object is * {@link Boolean } * */ public Boolean getCors() { return cors; } /** * Sets the value of the cors property. * * @param value * allowed object is * {@link Boolean } * */ public void setCors(Boolean value) { this.cors = value; } /** * Gets the value of the service 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 service property. * *

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

     *    getService().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getService() { if (service == null) { service = new ArrayList(); } return this.service; } /** * 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 certificate 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 certificate property. * *

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

     *    getCertificate().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ConformanceCertificate } * * */ public List getCertificate() { if (certificate == null) { certificate = new ArrayList(); } return this.certificate; } public ConformanceSecurity withCors(Boolean value) { setCors(value); return this; } public ConformanceSecurity withService(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getService().add(value); } } return this; } public ConformanceSecurity withService(Collection values) { if (values!= null) { getService().addAll(values); } return this; } public ConformanceSecurity withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public ConformanceSecurity withCertificate(ConformanceCertificate... values) { if (values!= null) { for (ConformanceCertificate value: values) { getCertificate().add(value); } } return this; } public ConformanceSecurity withCertificate(Collection values) { if (values!= null) { getCertificate().addAll(values); } return this; } @Override public ConformanceSecurity withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ConformanceSecurity withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ConformanceSecurity withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ConformanceSecurity withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ConformanceSecurity 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 ConformanceSecurity that = ((ConformanceSecurity) object); { Boolean lhsCors; lhsCors = this.getCors(); Boolean rhsCors; rhsCors = that.getCors(); if (!strategy.equals(LocatorUtils.property(thisLocator, "cors", lhsCors), LocatorUtils.property(thatLocator, "cors", rhsCors), lhsCors, rhsCors, (this.cors!= null), (that.cors!= null))) { return false; } } { List lhsService; lhsService = (((this.service!= null)&&(!this.service.isEmpty()))?this.getService():null); List rhsService; rhsService = (((that.service!= null)&&(!that.service.isEmpty()))?that.getService():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "service", lhsService), LocatorUtils.property(thatLocator, "service", rhsService), lhsService, rhsService, ((this.service!= null)&&(!this.service.isEmpty())), ((that.service!= null)&&(!that.service.isEmpty())))) { 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 lhsCertificate; lhsCertificate = (((this.certificate!= null)&&(!this.certificate.isEmpty()))?this.getCertificate():null); List rhsCertificate; rhsCertificate = (((that.certificate!= null)&&(!that.certificate.isEmpty()))?that.getCertificate():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "certificate", lhsCertificate), LocatorUtils.property(thatLocator, "certificate", rhsCertificate), lhsCertificate, rhsCertificate, ((this.certificate!= null)&&(!this.certificate.isEmpty())), ((that.certificate!= null)&&(!that.certificate.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); { Boolean theCors; theCors = this.getCors(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cors", theCors), currentHashCode, theCors, (this.cors!= null)); } { List theService; theService = (((this.service!= null)&&(!this.service.isEmpty()))?this.getService():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "service", theService), currentHashCode, theService, ((this.service!= null)&&(!this.service.isEmpty()))); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { List theCertificate; theCertificate = (((this.certificate!= null)&&(!this.certificate.isEmpty()))?this.getCertificate():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "certificate", theCertificate), currentHashCode, theCertificate, ((this.certificate!= null)&&(!this.certificate.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); { Boolean theCors; theCors = this.getCors(); strategy.appendField(locator, this, "cors", buffer, theCors, (this.cors!= null)); } { List theService; theService = (((this.service!= null)&&(!this.service.isEmpty()))?this.getService():null); strategy.appendField(locator, this, "service", buffer, theService, ((this.service!= null)&&(!this.service.isEmpty()))); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { List theCertificate; theCertificate = (((this.certificate!= null)&&(!this.certificate.isEmpty()))?this.getCertificate():null); strategy.appendField(locator, this, "certificate", buffer, theCertificate, ((this.certificate!= null)&&(!this.certificate.isEmpty()))); } return buffer; } public void setService(List value) { this.service = value; } public void setCertificate(List value) { this.certificate = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy