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

org.hl7.fhir.AuditEventEntity 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.10.07 at 09:31:25 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 record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
 * 
 * 

Java class for AuditEvent.Entity complex type. * *

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

 * <complexType name="AuditEvent.Entity">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
 *         <element name="reference" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="type" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <element name="role" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <element name="lifecycle" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <element name="securityLabel" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="name" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="query" type="{http://hl7.org/fhir}base64Binary" minOccurs="0"/>
 *         <element name="detail" type="{http://hl7.org/fhir}AuditEvent.Detail" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AuditEvent.Entity", propOrder = { "identifier", "reference", "type", "role", "lifecycle", "securityLabel", "name", "description", "query", "detail" }) public class AuditEventEntity extends BackboneElement implements Equals2, HashCode2, ToString2 { protected Identifier identifier; protected Reference reference; protected Coding type; protected Coding role; protected Coding lifecycle; protected List securityLabel; protected org.hl7.fhir.String name; protected org.hl7.fhir.String description; protected Base64Binary query; protected List detail; /** * Gets the value of the identifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getIdentifier() { return identifier; } /** * Sets the value of the identifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setIdentifier(Identifier value) { this.identifier = value; } /** * Gets the value of the reference property. * * @return * possible object is * {@link Reference } * */ public Reference getReference() { return reference; } /** * Sets the value of the reference property. * * @param value * allowed object is * {@link Reference } * */ public void setReference(Reference value) { this.reference = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link Coding } * */ public Coding getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link Coding } * */ public void setType(Coding value) { this.type = value; } /** * Gets the value of the role property. * * @return * possible object is * {@link Coding } * */ public Coding getRole() { return role; } /** * Sets the value of the role property. * * @param value * allowed object is * {@link Coding } * */ public void setRole(Coding value) { this.role = value; } /** * Gets the value of the lifecycle property. * * @return * possible object is * {@link Coding } * */ public Coding getLifecycle() { return lifecycle; } /** * Sets the value of the lifecycle property. * * @param value * allowed object is * {@link Coding } * */ public void setLifecycle(Coding value) { this.lifecycle = value; } /** * Gets the value of the securityLabel 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 securityLabel property. * *

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

     *    getSecurityLabel().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Coding } * * */ public List getSecurityLabel() { if (securityLabel == null) { securityLabel = new ArrayList(); } return this.securityLabel; } /** * Gets the value of the name property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setName(org.hl7.fhir.String value) { this.name = 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 query property. * * @return * possible object is * {@link Base64Binary } * */ public Base64Binary getQuery() { return query; } /** * Sets the value of the query property. * * @param value * allowed object is * {@link Base64Binary } * */ public void setQuery(Base64Binary value) { this.query = value; } /** * Gets the value of the detail 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 detail property. * *

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

     *    getDetail().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link AuditEventDetail } * * */ public List getDetail() { if (detail == null) { detail = new ArrayList(); } return this.detail; } public AuditEventEntity withIdentifier(Identifier value) { setIdentifier(value); return this; } public AuditEventEntity withReference(Reference value) { setReference(value); return this; } public AuditEventEntity withType(Coding value) { setType(value); return this; } public AuditEventEntity withRole(Coding value) { setRole(value); return this; } public AuditEventEntity withLifecycle(Coding value) { setLifecycle(value); return this; } public AuditEventEntity withSecurityLabel(Coding... values) { if (values!= null) { for (Coding value: values) { getSecurityLabel().add(value); } } return this; } public AuditEventEntity withSecurityLabel(Collection values) { if (values!= null) { getSecurityLabel().addAll(values); } return this; } public AuditEventEntity withName(org.hl7.fhir.String value) { setName(value); return this; } public AuditEventEntity withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public AuditEventEntity withQuery(Base64Binary value) { setQuery(value); return this; } public AuditEventEntity withDetail(AuditEventDetail... values) { if (values!= null) { for (AuditEventDetail value: values) { getDetail().add(value); } } return this; } public AuditEventEntity withDetail(Collection values) { if (values!= null) { getDetail().addAll(values); } return this; } @Override public AuditEventEntity withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public AuditEventEntity withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public AuditEventEntity withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public AuditEventEntity withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public AuditEventEntity 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 AuditEventEntity that = ((AuditEventEntity) object); { Identifier lhsIdentifier; lhsIdentifier = this.getIdentifier(); Identifier rhsIdentifier; rhsIdentifier = that.getIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, (this.identifier!= null), (that.identifier!= null))) { return false; } } { Reference lhsReference; lhsReference = this.getReference(); Reference rhsReference; rhsReference = that.getReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reference", lhsReference), LocatorUtils.property(thatLocator, "reference", rhsReference), lhsReference, rhsReference, (this.reference!= null), (that.reference!= null))) { return false; } } { Coding lhsType; lhsType = this.getType(); Coding rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { Coding lhsRole; lhsRole = this.getRole(); Coding rhsRole; rhsRole = that.getRole(); if (!strategy.equals(LocatorUtils.property(thisLocator, "role", lhsRole), LocatorUtils.property(thatLocator, "role", rhsRole), lhsRole, rhsRole, (this.role!= null), (that.role!= null))) { return false; } } { Coding lhsLifecycle; lhsLifecycle = this.getLifecycle(); Coding rhsLifecycle; rhsLifecycle = that.getLifecycle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lifecycle", lhsLifecycle), LocatorUtils.property(thatLocator, "lifecycle", rhsLifecycle), lhsLifecycle, rhsLifecycle, (this.lifecycle!= null), (that.lifecycle!= null))) { return false; } } { List lhsSecurityLabel; lhsSecurityLabel = (((this.securityLabel!= null)&&(!this.securityLabel.isEmpty()))?this.getSecurityLabel():null); List rhsSecurityLabel; rhsSecurityLabel = (((that.securityLabel!= null)&&(!that.securityLabel.isEmpty()))?that.getSecurityLabel():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "securityLabel", lhsSecurityLabel), LocatorUtils.property(thatLocator, "securityLabel", rhsSecurityLabel), lhsSecurityLabel, rhsSecurityLabel, ((this.securityLabel!= null)&&(!this.securityLabel.isEmpty())), ((that.securityLabel!= null)&&(!that.securityLabel.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsName; lhsName = this.getName(); org.hl7.fhir.String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= 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; } } { Base64Binary lhsQuery; lhsQuery = this.getQuery(); Base64Binary rhsQuery; rhsQuery = that.getQuery(); if (!strategy.equals(LocatorUtils.property(thisLocator, "query", lhsQuery), LocatorUtils.property(thatLocator, "query", rhsQuery), lhsQuery, rhsQuery, (this.query!= null), (that.query!= null))) { return false; } } { List lhsDetail; lhsDetail = (((this.detail!= null)&&(!this.detail.isEmpty()))?this.getDetail():null); List rhsDetail; rhsDetail = (((that.detail!= null)&&(!that.detail.isEmpty()))?that.getDetail():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "detail", lhsDetail), LocatorUtils.property(thatLocator, "detail", rhsDetail), lhsDetail, rhsDetail, ((this.detail!= null)&&(!this.detail.isEmpty())), ((that.detail!= null)&&(!that.detail.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); { Identifier theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, (this.identifier!= null)); } { Reference theReference; theReference = this.getReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reference", theReference), currentHashCode, theReference, (this.reference!= null)); } { Coding theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { Coding theRole; theRole = this.getRole(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "role", theRole), currentHashCode, theRole, (this.role!= null)); } { Coding theLifecycle; theLifecycle = this.getLifecycle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lifecycle", theLifecycle), currentHashCode, theLifecycle, (this.lifecycle!= null)); } { List theSecurityLabel; theSecurityLabel = (((this.securityLabel!= null)&&(!this.securityLabel.isEmpty()))?this.getSecurityLabel():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "securityLabel", theSecurityLabel), currentHashCode, theSecurityLabel, ((this.securityLabel!= null)&&(!this.securityLabel.isEmpty()))); } { org.hl7.fhir.String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { Base64Binary theQuery; theQuery = this.getQuery(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "query", theQuery), currentHashCode, theQuery, (this.query!= null)); } { List theDetail; theDetail = (((this.detail!= null)&&(!this.detail.isEmpty()))?this.getDetail():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "detail", theDetail), currentHashCode, theDetail, ((this.detail!= null)&&(!this.detail.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); { Identifier theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, (this.identifier!= null)); } { Reference theReference; theReference = this.getReference(); strategy.appendField(locator, this, "reference", buffer, theReference, (this.reference!= null)); } { Coding theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { Coding theRole; theRole = this.getRole(); strategy.appendField(locator, this, "role", buffer, theRole, (this.role!= null)); } { Coding theLifecycle; theLifecycle = this.getLifecycle(); strategy.appendField(locator, this, "lifecycle", buffer, theLifecycle, (this.lifecycle!= null)); } { List theSecurityLabel; theSecurityLabel = (((this.securityLabel!= null)&&(!this.securityLabel.isEmpty()))?this.getSecurityLabel():null); strategy.appendField(locator, this, "securityLabel", buffer, theSecurityLabel, ((this.securityLabel!= null)&&(!this.securityLabel.isEmpty()))); } { org.hl7.fhir.String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { Base64Binary theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery, (this.query!= null)); } { List theDetail; theDetail = (((this.detail!= null)&&(!this.detail.isEmpty()))?this.getDetail():null); strategy.appendField(locator, this, "detail", buffer, theDetail, ((this.detail!= null)&&(!this.detail.isEmpty()))); } return buffer; } public void setSecurityLabel(List value) { this.securityLabel = value; } public void setDetail(List value) { this.detail = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy