no.nav.hendelse.virksomhet.person.sammenslaatt.v1.XMLSammenslaatt Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.03.04 at 08:20:44 AM UTC
//
package no.nav.hendelse.virksomhet.person.sammenslaatt.v1;
import java.util.ArrayList;
import java.util.Collection;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for AktivPerson complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="AktivPerson">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="historiskListe" type="{http://nav.no/hendelse/virksomhet/person/sammenslaatt/v1}Person" maxOccurs="unbounded"/>
* <element name="aktiv" type="{http://nav.no/hendelse/virksomhet/person/sammenslaatt/v1}Person"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AktivPerson", propOrder = {
"historiskListes",
"aktiv"
})
@XmlRootElement(name = "sammenslaatt")
public class XMLSammenslaatt {
@XmlElement(name = "historiskListe", required = true)
protected List historiskListes;
@XmlElement(required = true)
protected XMLPerson aktiv;
/**
* Default no-arg constructor
*
*/
public XMLSammenslaatt() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public XMLSammenslaatt(final List historiskListes, final XMLPerson aktiv) {
this.historiskListes = historiskListes;
this.aktiv = aktiv;
}
/**
* Gets the value of the historiskListes 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 historiskListes property.
*
*
* For example, to add a new item, do as follows:
*
* getHistoriskListes().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link XMLPerson }
*
*
*/
public List getHistoriskListes() {
if (historiskListes == null) {
historiskListes = new ArrayList();
}
return this.historiskListes;
}
/**
* Gets the value of the aktiv property.
*
* @return
* possible object is
* {@link XMLPerson }
*
*/
public XMLPerson getAktiv() {
return aktiv;
}
/**
* Sets the value of the aktiv property.
*
* @param value
* allowed object is
* {@link XMLPerson }
*
*/
public void setAktiv(XMLPerson value) {
this.aktiv = value;
}
public XMLSammenslaatt withHistoriskListes(XMLPerson... values) {
if (values!= null) {
for (XMLPerson value: values) {
getHistoriskListes().add(value);
}
}
return this;
}
public XMLSammenslaatt withHistoriskListes(Collection values) {
if (values!= null) {
getHistoriskListes().addAll(values);
}
return this;
}
public XMLSammenslaatt withAktiv(XMLPerson value) {
setAktiv(value);
return this;
}
}