no.nav.gosys.journal.meldinger.SokPaSak 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.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 SokPaSak complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SokPaSak">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="sokefilter" type="{http://nav.no/virksomhet/tjenester/arkiv/journal/meldinger/v2}SokPaSakFilter" minOccurs="0"/>
* <element name="sakIdListe" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
* <element name="fagsystemKode" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SokPaSak", propOrder = {
"sokefilter",
"sakIdListe",
"fagsystemKode"
})
public class SokPaSak
implements Equals, HashCode, ToString
{
protected SokPaSakFilter sokefilter;
@XmlElement(required = true)
protected String[] sakIdListe;
@XmlElement(required = true)
protected String fagsystemKode;
/**
* Gets the value of the sokefilter property.
*
* @return
* possible object is
* {@link SokPaSakFilter }
*
*/
public SokPaSakFilter getSokefilter() {
return sokefilter;
}
/**
* Sets the value of the sokefilter property.
*
* @param value
* allowed object is
* {@link SokPaSakFilter }
*
*/
public void setSokefilter(SokPaSakFilter value) {
this.sokefilter = value;
}
/**
*
*
* @return
* array of
* {@link String }
*
*/
public String[] getSakIdListe() {
if (this.sakIdListe == null) {
return new String[ 0 ] ;
}
String[] retVal = new String[this.sakIdListe.length] ;
System.arraycopy(this.sakIdListe, 0, retVal, 0, this.sakIdListe.length);
return (retVal);
}
/**
*
*
* @return
* one of
* {@link String }
*
*/
public String getSakIdListe(int idx) {
if (this.sakIdListe == null) {
throw new IndexOutOfBoundsException();
}
return this.sakIdListe[idx];
}
public int getSakIdListeLength() {
if (this.sakIdListe == null) {
return 0;
}
return this.sakIdListe.length;
}
/**
*
*
* @param values
* allowed objects are
* {@link String }
*
*/
public void setSakIdListe(String[] values) {
int len = values.length;
this.sakIdListe = ((String[]) new String[len] );
for (int i = 0; (i 0))?this.getSakIdListe():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sakIdListe", theSakIdListe), currentHashCode, theSakIdListe);
}
{
String theFagsystemKode;
theFagsystemKode = this.getFagsystemKode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fagsystemKode", theFagsystemKode), currentHashCode, theFagsystemKode);
}
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 SokPaSak)) {
return false;
}
if (this == object) {
return true;
}
final SokPaSak that = ((SokPaSak) object);
{
SokPaSakFilter lhsSokefilter;
lhsSokefilter = this.getSokefilter();
SokPaSakFilter rhsSokefilter;
rhsSokefilter = that.getSokefilter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sokefilter", lhsSokefilter), LocatorUtils.property(thatLocator, "sokefilter", rhsSokefilter), lhsSokefilter, rhsSokefilter)) {
return false;
}
}
{
String[] lhsSakIdListe;
lhsSakIdListe = (((this.sakIdListe!= null)&&(this.sakIdListe.length > 0))?this.getSakIdListe():null);
String[] rhsSakIdListe;
rhsSakIdListe = (((that.sakIdListe!= null)&&(that.sakIdListe.length > 0))?that.getSakIdListe():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "sakIdListe", lhsSakIdListe), LocatorUtils.property(thatLocator, "sakIdListe", rhsSakIdListe), lhsSakIdListe, rhsSakIdListe)) {
return false;
}
}
{
String lhsFagsystemKode;
lhsFagsystemKode = this.getFagsystemKode();
String rhsFagsystemKode;
rhsFagsystemKode = that.getFagsystemKode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "fagsystemKode", lhsFagsystemKode), LocatorUtils.property(thatLocator, "fagsystemKode", rhsFagsystemKode), lhsFagsystemKode, rhsFagsystemKode)) {
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) {
{
SokPaSakFilter theSokefilter;
theSokefilter = this.getSokefilter();
strategy.appendField(locator, this, "sokefilter", buffer, theSokefilter);
}
{
String[] theSakIdListe;
theSakIdListe = (((this.sakIdListe!= null)&&(this.sakIdListe.length > 0))?this.getSakIdListe():null);
strategy.appendField(locator, this, "sakIdListe", buffer, theSakIdListe);
}
{
String theFagsystemKode;
theFagsystemKode = this.getFagsystemKode();
strategy.appendField(locator, this, "fagsystemKode", buffer, theFagsystemKode);
}
return buffer;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy