oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PersonnelHealthIncidentType Maven / Gradle / Ivy
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.11
// Visite http://java.sun.com/xml/jaxb
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2021.03.22 a las 07:02:09 PM CET
//
package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2;
import java.io.Serializable;
import java.util.ArrayList;
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 oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.BuriedAtSeaIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.DiedIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.EvacuatedIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.GivenTreatmentDescriptionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.JoinedShipDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NatureOfIllnessDescriptionType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NoteType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.OnsetDateType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.ReportedToMedicalOfficerIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.StillIllIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.StillOnBoardIndicatorType;
import oasis.names.specification.ubl.schema.xsd.commonextensioncomponents_2.UBLExtensionsType;
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;
/**
* Clase Java para PersonnelHealthIncidentType complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="PersonnelHealthIncidentType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2}UBLExtensions" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}JoinedShipDate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}NatureOfIllnessDescription" maxOccurs="unbounded"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}OnsetDate" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ReportedToMedicalOfficerIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}GivenTreatmentDescription" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}StillIllIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}DiedIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}StillOnBoardIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}EvacuatedIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}BuriedAtSeaIndicator" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Note" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}Person" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PersonnelHealthIncidentType", propOrder = {
"ublExtensions",
"id",
"joinedShipDate",
"natureOfIllnessDescription",
"onsetDate",
"reportedToMedicalOfficerIndicator",
"givenTreatmentDescription",
"stillIllIndicator",
"diedIndicator",
"stillOnBoardIndicator",
"evacuatedIndicator",
"buriedAtSeaIndicator",
"note",
"person"
})
public class PersonnelHealthIncidentType implements Serializable, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = 100L;
@XmlElement(name = "UBLExtensions", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2")
protected UBLExtensionsType ublExtensions;
@XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
protected IDType id;
@XmlElement(name = "JoinedShipDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected JoinedShipDateType joinedShipDate;
@XmlElement(name = "NatureOfIllnessDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", required = true)
protected List natureOfIllnessDescription;
@XmlElement(name = "OnsetDate", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected OnsetDateType onsetDate;
@XmlElement(name = "ReportedToMedicalOfficerIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected ReportedToMedicalOfficerIndicatorType reportedToMedicalOfficerIndicator;
@XmlElement(name = "GivenTreatmentDescription", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List givenTreatmentDescription;
@XmlElement(name = "StillIllIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected StillIllIndicatorType stillIllIndicator;
@XmlElement(name = "DiedIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected DiedIndicatorType diedIndicator;
@XmlElement(name = "StillOnBoardIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected StillOnBoardIndicatorType stillOnBoardIndicator;
@XmlElement(name = "EvacuatedIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected EvacuatedIndicatorType evacuatedIndicator;
@XmlElement(name = "BuriedAtSeaIndicator", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected BuriedAtSeaIndicatorType buriedAtSeaIndicator;
@XmlElement(name = "Note", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected List note;
@XmlElement(name = "Person")
protected PersonType person;
/**
* Obtiene el valor de la propiedad ublExtensions.
*
* @return
* possible object is
* {@link UBLExtensionsType }
*
*/
public UBLExtensionsType getUBLExtensions() {
return ublExtensions;
}
/**
* Define el valor de la propiedad ublExtensions.
*
* @param value
* allowed object is
* {@link UBLExtensionsType }
*
*/
public void setUBLExtensions(UBLExtensionsType value) {
this.ublExtensions = value;
}
/**
* Obtiene el valor de la propiedad id.
*
* @return
* possible object is
* {@link IDType }
*
*/
public IDType getID() {
return id;
}
/**
* Define el valor de la propiedad id.
*
* @param value
* allowed object is
* {@link IDType }
*
*/
public void setID(IDType value) {
this.id = value;
}
/**
* Obtiene el valor de la propiedad joinedShipDate.
*
* @return
* possible object is
* {@link JoinedShipDateType }
*
*/
public JoinedShipDateType getJoinedShipDate() {
return joinedShipDate;
}
/**
* Define el valor de la propiedad joinedShipDate.
*
* @param value
* allowed object is
* {@link JoinedShipDateType }
*
*/
public void setJoinedShipDate(JoinedShipDateType value) {
this.joinedShipDate = value;
}
/**
* Gets the value of the natureOfIllnessDescription 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 natureOfIllnessDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getNatureOfIllnessDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NatureOfIllnessDescriptionType }
*
*
*/
public List getNatureOfIllnessDescription() {
if (natureOfIllnessDescription == null) {
natureOfIllnessDescription = new ArrayList();
}
return this.natureOfIllnessDescription;
}
/**
* Obtiene el valor de la propiedad onsetDate.
*
* @return
* possible object is
* {@link OnsetDateType }
*
*/
public OnsetDateType getOnsetDate() {
return onsetDate;
}
/**
* Define el valor de la propiedad onsetDate.
*
* @param value
* allowed object is
* {@link OnsetDateType }
*
*/
public void setOnsetDate(OnsetDateType value) {
this.onsetDate = value;
}
/**
* Obtiene el valor de la propiedad reportedToMedicalOfficerIndicator.
*
* @return
* possible object is
* {@link ReportedToMedicalOfficerIndicatorType }
*
*/
public ReportedToMedicalOfficerIndicatorType getReportedToMedicalOfficerIndicator() {
return reportedToMedicalOfficerIndicator;
}
/**
* Define el valor de la propiedad reportedToMedicalOfficerIndicator.
*
* @param value
* allowed object is
* {@link ReportedToMedicalOfficerIndicatorType }
*
*/
public void setReportedToMedicalOfficerIndicator(ReportedToMedicalOfficerIndicatorType value) {
this.reportedToMedicalOfficerIndicator = value;
}
/**
* Gets the value of the givenTreatmentDescription 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 givenTreatmentDescription property.
*
*
* For example, to add a new item, do as follows:
*
* getGivenTreatmentDescription().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link GivenTreatmentDescriptionType }
*
*
*/
public List getGivenTreatmentDescription() {
if (givenTreatmentDescription == null) {
givenTreatmentDescription = new ArrayList();
}
return this.givenTreatmentDescription;
}
/**
* Obtiene el valor de la propiedad stillIllIndicator.
*
* @return
* possible object is
* {@link StillIllIndicatorType }
*
*/
public StillIllIndicatorType getStillIllIndicator() {
return stillIllIndicator;
}
/**
* Define el valor de la propiedad stillIllIndicator.
*
* @param value
* allowed object is
* {@link StillIllIndicatorType }
*
*/
public void setStillIllIndicator(StillIllIndicatorType value) {
this.stillIllIndicator = value;
}
/**
* Obtiene el valor de la propiedad diedIndicator.
*
* @return
* possible object is
* {@link DiedIndicatorType }
*
*/
public DiedIndicatorType getDiedIndicator() {
return diedIndicator;
}
/**
* Define el valor de la propiedad diedIndicator.
*
* @param value
* allowed object is
* {@link DiedIndicatorType }
*
*/
public void setDiedIndicator(DiedIndicatorType value) {
this.diedIndicator = value;
}
/**
* Obtiene el valor de la propiedad stillOnBoardIndicator.
*
* @return
* possible object is
* {@link StillOnBoardIndicatorType }
*
*/
public StillOnBoardIndicatorType getStillOnBoardIndicator() {
return stillOnBoardIndicator;
}
/**
* Define el valor de la propiedad stillOnBoardIndicator.
*
* @param value
* allowed object is
* {@link StillOnBoardIndicatorType }
*
*/
public void setStillOnBoardIndicator(StillOnBoardIndicatorType value) {
this.stillOnBoardIndicator = value;
}
/**
* Obtiene el valor de la propiedad evacuatedIndicator.
*
* @return
* possible object is
* {@link EvacuatedIndicatorType }
*
*/
public EvacuatedIndicatorType getEvacuatedIndicator() {
return evacuatedIndicator;
}
/**
* Define el valor de la propiedad evacuatedIndicator.
*
* @param value
* allowed object is
* {@link EvacuatedIndicatorType }
*
*/
public void setEvacuatedIndicator(EvacuatedIndicatorType value) {
this.evacuatedIndicator = value;
}
/**
* Obtiene el valor de la propiedad buriedAtSeaIndicator.
*
* @return
* possible object is
* {@link BuriedAtSeaIndicatorType }
*
*/
public BuriedAtSeaIndicatorType getBuriedAtSeaIndicator() {
return buriedAtSeaIndicator;
}
/**
* Define el valor de la propiedad buriedAtSeaIndicator.
*
* @param value
* allowed object is
* {@link BuriedAtSeaIndicatorType }
*
*/
public void setBuriedAtSeaIndicator(BuriedAtSeaIndicatorType value) {
this.buriedAtSeaIndicator = value;
}
/**
* Gets the value of the note 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 note property.
*
*
* For example, to add a new item, do as follows:
*
* getNote().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NoteType }
*
*
*/
public List getNote() {
if (note == null) {
note = new ArrayList();
}
return this.note;
}
/**
* Obtiene el valor de la propiedad person.
*
* @return
* possible object is
* {@link PersonType }
*
*/
public PersonType getPerson() {
return person;
}
/**
* Define el valor de la propiedad person.
*
* @param value
* allowed object is
* {@link PersonType }
*
*/
public void setPerson(PersonType value) {
this.person = value;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
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;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
UBLExtensionsType theUBLExtensions;
theUBLExtensions = this.getUBLExtensions();
strategy.appendField(locator, this, "ublExtensions", buffer, theUBLExtensions, (this.ublExtensions!= null));
}
{
IDType theID;
theID = this.getID();
strategy.appendField(locator, this, "id", buffer, theID, (this.id!= null));
}
{
JoinedShipDateType theJoinedShipDate;
theJoinedShipDate = this.getJoinedShipDate();
strategy.appendField(locator, this, "joinedShipDate", buffer, theJoinedShipDate, (this.joinedShipDate!= null));
}
{
List theNatureOfIllnessDescription;
theNatureOfIllnessDescription = (((this.natureOfIllnessDescription!= null)&&(!this.natureOfIllnessDescription.isEmpty()))?this.getNatureOfIllnessDescription():null);
strategy.appendField(locator, this, "natureOfIllnessDescription", buffer, theNatureOfIllnessDescription, ((this.natureOfIllnessDescription!= null)&&(!this.natureOfIllnessDescription.isEmpty())));
}
{
OnsetDateType theOnsetDate;
theOnsetDate = this.getOnsetDate();
strategy.appendField(locator, this, "onsetDate", buffer, theOnsetDate, (this.onsetDate!= null));
}
{
ReportedToMedicalOfficerIndicatorType theReportedToMedicalOfficerIndicator;
theReportedToMedicalOfficerIndicator = this.getReportedToMedicalOfficerIndicator();
strategy.appendField(locator, this, "reportedToMedicalOfficerIndicator", buffer, theReportedToMedicalOfficerIndicator, (this.reportedToMedicalOfficerIndicator!= null));
}
{
List theGivenTreatmentDescription;
theGivenTreatmentDescription = (((this.givenTreatmentDescription!= null)&&(!this.givenTreatmentDescription.isEmpty()))?this.getGivenTreatmentDescription():null);
strategy.appendField(locator, this, "givenTreatmentDescription", buffer, theGivenTreatmentDescription, ((this.givenTreatmentDescription!= null)&&(!this.givenTreatmentDescription.isEmpty())));
}
{
StillIllIndicatorType theStillIllIndicator;
theStillIllIndicator = this.getStillIllIndicator();
strategy.appendField(locator, this, "stillIllIndicator", buffer, theStillIllIndicator, (this.stillIllIndicator!= null));
}
{
DiedIndicatorType theDiedIndicator;
theDiedIndicator = this.getDiedIndicator();
strategy.appendField(locator, this, "diedIndicator", buffer, theDiedIndicator, (this.diedIndicator!= null));
}
{
StillOnBoardIndicatorType theStillOnBoardIndicator;
theStillOnBoardIndicator = this.getStillOnBoardIndicator();
strategy.appendField(locator, this, "stillOnBoardIndicator", buffer, theStillOnBoardIndicator, (this.stillOnBoardIndicator!= null));
}
{
EvacuatedIndicatorType theEvacuatedIndicator;
theEvacuatedIndicator = this.getEvacuatedIndicator();
strategy.appendField(locator, this, "evacuatedIndicator", buffer, theEvacuatedIndicator, (this.evacuatedIndicator!= null));
}
{
BuriedAtSeaIndicatorType theBuriedAtSeaIndicator;
theBuriedAtSeaIndicator = this.getBuriedAtSeaIndicator();
strategy.appendField(locator, this, "buriedAtSeaIndicator", buffer, theBuriedAtSeaIndicator, (this.buriedAtSeaIndicator!= null));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
strategy.appendField(locator, this, "note", buffer, theNote, ((this.note!= null)&&(!this.note.isEmpty())));
}
{
PersonType thePerson;
thePerson = this.getPerson();
strategy.appendField(locator, this, "person", buffer, thePerson, (this.person!= null));
}
return buffer;
}
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;
}
final PersonnelHealthIncidentType that = ((PersonnelHealthIncidentType) object);
{
UBLExtensionsType lhsUBLExtensions;
lhsUBLExtensions = this.getUBLExtensions();
UBLExtensionsType rhsUBLExtensions;
rhsUBLExtensions = that.getUBLExtensions();
if (!strategy.equals(LocatorUtils.property(thisLocator, "ublExtensions", lhsUBLExtensions), LocatorUtils.property(thatLocator, "ublExtensions", rhsUBLExtensions), lhsUBLExtensions, rhsUBLExtensions, (this.ublExtensions!= null), (that.ublExtensions!= null))) {
return false;
}
}
{
IDType lhsID;
lhsID = this.getID();
IDType rhsID;
rhsID = that.getID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsID), LocatorUtils.property(thatLocator, "id", rhsID), lhsID, rhsID, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
JoinedShipDateType lhsJoinedShipDate;
lhsJoinedShipDate = this.getJoinedShipDate();
JoinedShipDateType rhsJoinedShipDate;
rhsJoinedShipDate = that.getJoinedShipDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "joinedShipDate", lhsJoinedShipDate), LocatorUtils.property(thatLocator, "joinedShipDate", rhsJoinedShipDate), lhsJoinedShipDate, rhsJoinedShipDate, (this.joinedShipDate!= null), (that.joinedShipDate!= null))) {
return false;
}
}
{
List lhsNatureOfIllnessDescription;
lhsNatureOfIllnessDescription = (((this.natureOfIllnessDescription!= null)&&(!this.natureOfIllnessDescription.isEmpty()))?this.getNatureOfIllnessDescription():null);
List rhsNatureOfIllnessDescription;
rhsNatureOfIllnessDescription = (((that.natureOfIllnessDescription!= null)&&(!that.natureOfIllnessDescription.isEmpty()))?that.getNatureOfIllnessDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "natureOfIllnessDescription", lhsNatureOfIllnessDescription), LocatorUtils.property(thatLocator, "natureOfIllnessDescription", rhsNatureOfIllnessDescription), lhsNatureOfIllnessDescription, rhsNatureOfIllnessDescription, ((this.natureOfIllnessDescription!= null)&&(!this.natureOfIllnessDescription.isEmpty())), ((that.natureOfIllnessDescription!= null)&&(!that.natureOfIllnessDescription.isEmpty())))) {
return false;
}
}
{
OnsetDateType lhsOnsetDate;
lhsOnsetDate = this.getOnsetDate();
OnsetDateType rhsOnsetDate;
rhsOnsetDate = that.getOnsetDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetDate", lhsOnsetDate), LocatorUtils.property(thatLocator, "onsetDate", rhsOnsetDate), lhsOnsetDate, rhsOnsetDate, (this.onsetDate!= null), (that.onsetDate!= null))) {
return false;
}
}
{
ReportedToMedicalOfficerIndicatorType lhsReportedToMedicalOfficerIndicator;
lhsReportedToMedicalOfficerIndicator = this.getReportedToMedicalOfficerIndicator();
ReportedToMedicalOfficerIndicatorType rhsReportedToMedicalOfficerIndicator;
rhsReportedToMedicalOfficerIndicator = that.getReportedToMedicalOfficerIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reportedToMedicalOfficerIndicator", lhsReportedToMedicalOfficerIndicator), LocatorUtils.property(thatLocator, "reportedToMedicalOfficerIndicator", rhsReportedToMedicalOfficerIndicator), lhsReportedToMedicalOfficerIndicator, rhsReportedToMedicalOfficerIndicator, (this.reportedToMedicalOfficerIndicator!= null), (that.reportedToMedicalOfficerIndicator!= null))) {
return false;
}
}
{
List lhsGivenTreatmentDescription;
lhsGivenTreatmentDescription = (((this.givenTreatmentDescription!= null)&&(!this.givenTreatmentDescription.isEmpty()))?this.getGivenTreatmentDescription():null);
List rhsGivenTreatmentDescription;
rhsGivenTreatmentDescription = (((that.givenTreatmentDescription!= null)&&(!that.givenTreatmentDescription.isEmpty()))?that.getGivenTreatmentDescription():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "givenTreatmentDescription", lhsGivenTreatmentDescription), LocatorUtils.property(thatLocator, "givenTreatmentDescription", rhsGivenTreatmentDescription), lhsGivenTreatmentDescription, rhsGivenTreatmentDescription, ((this.givenTreatmentDescription!= null)&&(!this.givenTreatmentDescription.isEmpty())), ((that.givenTreatmentDescription!= null)&&(!that.givenTreatmentDescription.isEmpty())))) {
return false;
}
}
{
StillIllIndicatorType lhsStillIllIndicator;
lhsStillIllIndicator = this.getStillIllIndicator();
StillIllIndicatorType rhsStillIllIndicator;
rhsStillIllIndicator = that.getStillIllIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "stillIllIndicator", lhsStillIllIndicator), LocatorUtils.property(thatLocator, "stillIllIndicator", rhsStillIllIndicator), lhsStillIllIndicator, rhsStillIllIndicator, (this.stillIllIndicator!= null), (that.stillIllIndicator!= null))) {
return false;
}
}
{
DiedIndicatorType lhsDiedIndicator;
lhsDiedIndicator = this.getDiedIndicator();
DiedIndicatorType rhsDiedIndicator;
rhsDiedIndicator = that.getDiedIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "diedIndicator", lhsDiedIndicator), LocatorUtils.property(thatLocator, "diedIndicator", rhsDiedIndicator), lhsDiedIndicator, rhsDiedIndicator, (this.diedIndicator!= null), (that.diedIndicator!= null))) {
return false;
}
}
{
StillOnBoardIndicatorType lhsStillOnBoardIndicator;
lhsStillOnBoardIndicator = this.getStillOnBoardIndicator();
StillOnBoardIndicatorType rhsStillOnBoardIndicator;
rhsStillOnBoardIndicator = that.getStillOnBoardIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "stillOnBoardIndicator", lhsStillOnBoardIndicator), LocatorUtils.property(thatLocator, "stillOnBoardIndicator", rhsStillOnBoardIndicator), lhsStillOnBoardIndicator, rhsStillOnBoardIndicator, (this.stillOnBoardIndicator!= null), (that.stillOnBoardIndicator!= null))) {
return false;
}
}
{
EvacuatedIndicatorType lhsEvacuatedIndicator;
lhsEvacuatedIndicator = this.getEvacuatedIndicator();
EvacuatedIndicatorType rhsEvacuatedIndicator;
rhsEvacuatedIndicator = that.getEvacuatedIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "evacuatedIndicator", lhsEvacuatedIndicator), LocatorUtils.property(thatLocator, "evacuatedIndicator", rhsEvacuatedIndicator), lhsEvacuatedIndicator, rhsEvacuatedIndicator, (this.evacuatedIndicator!= null), (that.evacuatedIndicator!= null))) {
return false;
}
}
{
BuriedAtSeaIndicatorType lhsBuriedAtSeaIndicator;
lhsBuriedAtSeaIndicator = this.getBuriedAtSeaIndicator();
BuriedAtSeaIndicatorType rhsBuriedAtSeaIndicator;
rhsBuriedAtSeaIndicator = that.getBuriedAtSeaIndicator();
if (!strategy.equals(LocatorUtils.property(thisLocator, "buriedAtSeaIndicator", lhsBuriedAtSeaIndicator), LocatorUtils.property(thatLocator, "buriedAtSeaIndicator", rhsBuriedAtSeaIndicator), lhsBuriedAtSeaIndicator, rhsBuriedAtSeaIndicator, (this.buriedAtSeaIndicator!= null), (that.buriedAtSeaIndicator!= null))) {
return false;
}
}
{
List lhsNote;
lhsNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
List rhsNote;
rhsNote = (((that.note!= null)&&(!that.note.isEmpty()))?that.getNote():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote, ((this.note!= null)&&(!this.note.isEmpty())), ((that.note!= null)&&(!that.note.isEmpty())))) {
return false;
}
}
{
PersonType lhsPerson;
lhsPerson = this.getPerson();
PersonType rhsPerson;
rhsPerson = that.getPerson();
if (!strategy.equals(LocatorUtils.property(thisLocator, "person", lhsPerson), LocatorUtils.property(thatLocator, "person", rhsPerson), lhsPerson, rhsPerson, (this.person!= null), (that.person!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
UBLExtensionsType theUBLExtensions;
theUBLExtensions = this.getUBLExtensions();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ublExtensions", theUBLExtensions), currentHashCode, theUBLExtensions, (this.ublExtensions!= null));
}
{
IDType theID;
theID = this.getID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theID), currentHashCode, theID, (this.id!= null));
}
{
JoinedShipDateType theJoinedShipDate;
theJoinedShipDate = this.getJoinedShipDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "joinedShipDate", theJoinedShipDate), currentHashCode, theJoinedShipDate, (this.joinedShipDate!= null));
}
{
List theNatureOfIllnessDescription;
theNatureOfIllnessDescription = (((this.natureOfIllnessDescription!= null)&&(!this.natureOfIllnessDescription.isEmpty()))?this.getNatureOfIllnessDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "natureOfIllnessDescription", theNatureOfIllnessDescription), currentHashCode, theNatureOfIllnessDescription, ((this.natureOfIllnessDescription!= null)&&(!this.natureOfIllnessDescription.isEmpty())));
}
{
OnsetDateType theOnsetDate;
theOnsetDate = this.getOnsetDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetDate", theOnsetDate), currentHashCode, theOnsetDate, (this.onsetDate!= null));
}
{
ReportedToMedicalOfficerIndicatorType theReportedToMedicalOfficerIndicator;
theReportedToMedicalOfficerIndicator = this.getReportedToMedicalOfficerIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reportedToMedicalOfficerIndicator", theReportedToMedicalOfficerIndicator), currentHashCode, theReportedToMedicalOfficerIndicator, (this.reportedToMedicalOfficerIndicator!= null));
}
{
List theGivenTreatmentDescription;
theGivenTreatmentDescription = (((this.givenTreatmentDescription!= null)&&(!this.givenTreatmentDescription.isEmpty()))?this.getGivenTreatmentDescription():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "givenTreatmentDescription", theGivenTreatmentDescription), currentHashCode, theGivenTreatmentDescription, ((this.givenTreatmentDescription!= null)&&(!this.givenTreatmentDescription.isEmpty())));
}
{
StillIllIndicatorType theStillIllIndicator;
theStillIllIndicator = this.getStillIllIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stillIllIndicator", theStillIllIndicator), currentHashCode, theStillIllIndicator, (this.stillIllIndicator!= null));
}
{
DiedIndicatorType theDiedIndicator;
theDiedIndicator = this.getDiedIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "diedIndicator", theDiedIndicator), currentHashCode, theDiedIndicator, (this.diedIndicator!= null));
}
{
StillOnBoardIndicatorType theStillOnBoardIndicator;
theStillOnBoardIndicator = this.getStillOnBoardIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "stillOnBoardIndicator", theStillOnBoardIndicator), currentHashCode, theStillOnBoardIndicator, (this.stillOnBoardIndicator!= null));
}
{
EvacuatedIndicatorType theEvacuatedIndicator;
theEvacuatedIndicator = this.getEvacuatedIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "evacuatedIndicator", theEvacuatedIndicator), currentHashCode, theEvacuatedIndicator, (this.evacuatedIndicator!= null));
}
{
BuriedAtSeaIndicatorType theBuriedAtSeaIndicator;
theBuriedAtSeaIndicator = this.getBuriedAtSeaIndicator();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "buriedAtSeaIndicator", theBuriedAtSeaIndicator), currentHashCode, theBuriedAtSeaIndicator, (this.buriedAtSeaIndicator!= null));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, ((this.note!= null)&&(!this.note.isEmpty())));
}
{
PersonType thePerson;
thePerson = this.getPerson();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "person", thePerson), currentHashCode, thePerson, (this.person!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}