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