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

fish.focus.uvms.activity.model.schemas.FaIdsListWithTripIdMap Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.03.17 at 02:46:49 PM CET 
//


package fish.focus.uvms.activity.model.schemas;

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 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;


/**
 * 

Java class for FaIdsListWithTripIdMap complex type. * *

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

 * <complexType name="FaIdsListWithTripIdMap">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="tripId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="tripSchemeId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="faIdentifierList" type="{http://focus.fish/uvms/activity/model/schemas}FishingActivityWithIdentifiers" maxOccurs="unbounded"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FaIdsListWithTripIdMap", propOrder = { "tripId", "tripSchemeId", "faIdentifierLists" }) public class FaIdsListWithTripIdMap implements Serializable, Equals, HashCode, ToString { private final static long serialVersionUID = 1L; @XmlElement(required = true) protected String tripId; @XmlElement(required = true) protected String tripSchemeId; @XmlElement(name = "faIdentifierList", required = true) protected List faIdentifierLists; /** * Default no-arg constructor * */ public FaIdsListWithTripIdMap() { super(); } /** * Fully-initialising value constructor * */ public FaIdsListWithTripIdMap(final String tripId, final String tripSchemeId, final List faIdentifierLists) { this.tripId = tripId; this.tripSchemeId = tripSchemeId; this.faIdentifierLists = faIdentifierLists; } /** * Gets the value of the tripId property. * * @return * possible object is * {@link String } * */ public String getTripId() { return tripId; } /** * Sets the value of the tripId property. * * @param value * allowed object is * {@link String } * */ public void setTripId(String value) { this.tripId = value; } /** * Gets the value of the tripSchemeId property. * * @return * possible object is * {@link String } * */ public String getTripSchemeId() { return tripSchemeId; } /** * Sets the value of the tripSchemeId property. * * @param value * allowed object is * {@link String } * */ public void setTripSchemeId(String value) { this.tripSchemeId = value; } /** * Gets the value of the faIdentifierLists 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 faIdentifierLists property. * *

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

     *    getFaIdentifierLists().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FishingActivityWithIdentifiers } * * */ public List getFaIdentifierLists() { if (faIdentifierLists == null) { faIdentifierLists = new ArrayList(); } return this.faIdentifierLists; } public 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) { { String theTripId; theTripId = this.getTripId(); strategy.appendField(locator, this, "tripId", buffer, theTripId); } { String theTripSchemeId; theTripSchemeId = this.getTripSchemeId(); strategy.appendField(locator, this, "tripSchemeId", buffer, theTripSchemeId); } { List theFaIdentifierLists; theFaIdentifierLists = (((this.faIdentifierLists!= null)&&(!this.faIdentifierLists.isEmpty()))?this.getFaIdentifierLists():null); strategy.appendField(locator, this, "faIdentifierLists", buffer, theFaIdentifierLists); } return buffer; } public void setFaIdentifierLists(List value) { this.faIdentifierLists = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof FaIdsListWithTripIdMap)) { return false; } if (this == object) { return true; } final FaIdsListWithTripIdMap that = ((FaIdsListWithTripIdMap) object); { String lhsTripId; lhsTripId = this.getTripId(); String rhsTripId; rhsTripId = that.getTripId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tripId", lhsTripId), LocatorUtils.property(thatLocator, "tripId", rhsTripId), lhsTripId, rhsTripId)) { return false; } } { String lhsTripSchemeId; lhsTripSchemeId = this.getTripSchemeId(); String rhsTripSchemeId; rhsTripSchemeId = that.getTripSchemeId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tripSchemeId", lhsTripSchemeId), LocatorUtils.property(thatLocator, "tripSchemeId", rhsTripSchemeId), lhsTripSchemeId, rhsTripSchemeId)) { return false; } } { List lhsFaIdentifierLists; lhsFaIdentifierLists = (((this.faIdentifierLists!= null)&&(!this.faIdentifierLists.isEmpty()))?this.getFaIdentifierLists():null); List rhsFaIdentifierLists; rhsFaIdentifierLists = (((that.faIdentifierLists!= null)&&(!that.faIdentifierLists.isEmpty()))?that.getFaIdentifierLists():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "faIdentifierLists", lhsFaIdentifierLists), LocatorUtils.property(thatLocator, "faIdentifierLists", rhsFaIdentifierLists), lhsFaIdentifierLists, rhsFaIdentifierLists)) { 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 = 1; { String theTripId; theTripId = this.getTripId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tripId", theTripId), currentHashCode, theTripId); } { String theTripSchemeId; theTripSchemeId = this.getTripSchemeId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tripSchemeId", theTripSchemeId), currentHashCode, theTripSchemeId); } { List theFaIdentifierLists; theFaIdentifierLists = (((this.faIdentifierLists!= null)&&(!this.faIdentifierLists.isEmpty()))?this.getFaIdentifierLists():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faIdentifierLists", theFaIdentifierLists), currentHashCode, theFaIdentifierLists); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy