no.nav.gosys.journal.meldinger.FinnJournalpostResponse Maven / Gradle / Ivy
package no.nav.gosys.journal.meldinger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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 FinnJournalpostResponse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="FinnJournalpostResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="journalpostListe" type="{http://nav.no/virksomhet/gjennomforing/arkiv/journal/v2}Journalpost" maxOccurs="unbounded" minOccurs="0"/>
* <element name="totaltAntallTreff" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="utvidelse" type="{http://nav.no/virksomhet/tjenester/arkiv/journal/meldinger/v2}FinnJournalpostUtvidelse1" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FinnJournalpostResponse", propOrder = {
"journalpostListe",
"totaltAntallTreff",
"utvidelse"
})
public class FinnJournalpostResponse
implements Equals, HashCode, ToString
{
protected no.nav.gosys.journal.Journalpost[] journalpostListe;
protected int totaltAntallTreff;
protected FinnJournalpostUtvidelse1 utvidelse;
/**
*
*
* @return
* array of
* {@link no.nav.gosys.journal.Journalpost }
*
*/
public no.nav.gosys.journal.Journalpost[] getJournalpostListe() {
if (this.journalpostListe == null) {
return new no.nav.gosys.journal.Journalpost[ 0 ] ;
}
no.nav.gosys.journal.Journalpost[] retVal = new no.nav.gosys.journal.Journalpost[this.journalpostListe.length] ;
System.arraycopy(this.journalpostListe, 0, retVal, 0, this.journalpostListe.length);
return (retVal);
}
/**
*
*
* @return
* one of
* {@link no.nav.gosys.journal.Journalpost }
*
*/
public no.nav.gosys.journal.Journalpost getJournalpostListe(int idx) {
if (this.journalpostListe == null) {
throw new IndexOutOfBoundsException();
}
return this.journalpostListe[idx];
}
public int getJournalpostListeLength() {
if (this.journalpostListe == null) {
return 0;
}
return this.journalpostListe.length;
}
/**
*
*
* @param values
* allowed objects are
* {@link no.nav.gosys.journal.Journalpost }
*
*/
public void setJournalpostListe(no.nav.gosys.journal.Journalpost[] values) {
int len = values.length;
this.journalpostListe = ((no.nav.gosys.journal.Journalpost[]) new no.nav.gosys.journal.Journalpost[len] );
for (int i = 0; (i 0))?this.getJournalpostListe():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "journalpostListe", theJournalpostListe), currentHashCode, theJournalpostListe);
}
{
int theTotaltAntallTreff;
theTotaltAntallTreff = (true?this.getTotaltAntallTreff(): 0);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totaltAntallTreff", theTotaltAntallTreff), currentHashCode, theTotaltAntallTreff);
}
{
FinnJournalpostUtvidelse1 theUtvidelse;
theUtvidelse = this.getUtvidelse();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "utvidelse", theUtvidelse), currentHashCode, theUtvidelse);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof FinnJournalpostResponse)) {
return false;
}
if (this == object) {
return true;
}
final FinnJournalpostResponse that = ((FinnJournalpostResponse) object);
{
no.nav.gosys.journal.Journalpost[] lhsJournalpostListe;
lhsJournalpostListe = (((this.journalpostListe!= null)&&(this.journalpostListe.length > 0))?this.getJournalpostListe():null);
no.nav.gosys.journal.Journalpost[] rhsJournalpostListe;
rhsJournalpostListe = (((that.journalpostListe!= null)&&(that.journalpostListe.length > 0))?that.getJournalpostListe():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "journalpostListe", lhsJournalpostListe), LocatorUtils.property(thatLocator, "journalpostListe", rhsJournalpostListe), lhsJournalpostListe, rhsJournalpostListe)) {
return false;
}
}
{
int lhsTotaltAntallTreff;
lhsTotaltAntallTreff = (true?this.getTotaltAntallTreff(): 0);
int rhsTotaltAntallTreff;
rhsTotaltAntallTreff = (true?that.getTotaltAntallTreff(): 0);
if (!strategy.equals(LocatorUtils.property(thisLocator, "totaltAntallTreff", lhsTotaltAntallTreff), LocatorUtils.property(thatLocator, "totaltAntallTreff", rhsTotaltAntallTreff), lhsTotaltAntallTreff, rhsTotaltAntallTreff)) {
return false;
}
}
{
FinnJournalpostUtvidelse1 lhsUtvidelse;
lhsUtvidelse = this.getUtvidelse();
FinnJournalpostUtvidelse1 rhsUtvidelse;
rhsUtvidelse = that.getUtvidelse();
if (!strategy.equals(LocatorUtils.property(thisLocator, "utvidelse", lhsUtvidelse), LocatorUtils.property(thatLocator, "utvidelse", rhsUtvidelse), lhsUtvidelse, rhsUtvidelse)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
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) {
{
no.nav.gosys.journal.Journalpost[] theJournalpostListe;
theJournalpostListe = (((this.journalpostListe!= null)&&(this.journalpostListe.length > 0))?this.getJournalpostListe():null);
strategy.appendField(locator, this, "journalpostListe", buffer, theJournalpostListe);
}
{
int theTotaltAntallTreff;
theTotaltAntallTreff = (true?this.getTotaltAntallTreff(): 0);
strategy.appendField(locator, this, "totaltAntallTreff", buffer, theTotaltAntallTreff);
}
{
FinnJournalpostUtvidelse1 theUtvidelse;
theUtvidelse = this.getUtvidelse();
strategy.appendField(locator, this, "utvidelse", buffer, theUtvidelse);
}
return buffer;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy