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

no.difi.begrep.sdp.utvidelser.arrangement.SDPArrangement Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.11.06 at 01:54:33 PM UTC 
//


package no.difi.begrep.sdp.utvidelser.arrangement;

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
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.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="tittel" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
 *         <element name="tidsrom-tittel" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel" minOccurs="0"/>
 *         <element name="tidsrom" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tidsrom" maxOccurs="10" minOccurs="0"/>
 *         <element name="oppmøte-informasjon" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Beskrivelse" minOccurs="0"/>
 *         <element name="møteplass">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="tittel" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
 *                   <element name="navn" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   <element name="gateadresse" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                   <element name="postnummer" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *                   <element name="sted" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                   <element name="land" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="strekkode" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Strekkode" minOccurs="0"/>
 *         <element name="info" maxOccurs="10" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="tittel" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
 *                   <element name="tekst" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Beskrivelse"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="lenker" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="lenke" maxOccurs="2">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element name="navn" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
 *                             <element name="url" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}HttpLenke"/>
 *                           </sequence>
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tittel", "tidsromTittel", "tidsroms", "oppm\u00f8teInformasjon", "m\u00f8teplass", "strekkode", "infos", "lenker" }) @XmlRootElement(name = "arrangement") public class SDPArrangement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected SDPTittel tittel; @XmlElement(name = "tidsrom-tittel") protected SDPTittel tidsromTittel; @XmlElement(name = "tidsrom") protected List tidsroms; @XmlElement(name = "oppm\u00f8te-informasjon") protected SDPBeskrivelse oppmøteInformasjon; @XmlElement(required = true) protected SDPArrangement.SDPMøteplass møteplass; protected SDPStrekkode strekkode; @XmlElement(name = "info") protected List infos; protected SDPArrangement.SDPLenker lenker; /** * Default no-arg constructor * */ public SDPArrangement() { super(); } /** * Fully-initialising value constructor * */ public SDPArrangement(final SDPTittel tittel, final SDPTittel tidsromTittel, final List tidsroms, final SDPBeskrivelse oppmøteInformasjon, final SDPArrangement.SDPMøteplass møteplass, final SDPStrekkode strekkode, final List infos, final SDPArrangement.SDPLenker lenker) { this.tittel = tittel; this.tidsromTittel = tidsromTittel; this.tidsroms = tidsroms; this.oppmøteInformasjon = oppmøteInformasjon; this.møteplass = møteplass; this.strekkode = strekkode; this.infos = infos; this.lenker = lenker; } /** * Gets the value of the tittel property. * * @return * possible object is * {@link SDPTittel } * */ public SDPTittel getTittel() { return tittel; } /** * Sets the value of the tittel property. * * @param value * allowed object is * {@link SDPTittel } * */ public void setTittel(SDPTittel value) { this.tittel = value; } /** * Gets the value of the tidsromTittel property. * * @return * possible object is * {@link SDPTittel } * */ public SDPTittel getTidsromTittel() { return tidsromTittel; } /** * Sets the value of the tidsromTittel property. * * @param value * allowed object is * {@link SDPTittel } * */ public void setTidsromTittel(SDPTittel value) { this.tidsromTittel = value; } /** * Gets the value of the tidsroms 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 tidsroms property. * *

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

     *    getTidsroms().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SDPTidsrom } * * */ public List getTidsroms() { if (tidsroms == null) { tidsroms = new ArrayList(); } return this.tidsroms; } /** * Gets the value of the oppmøteInformasjon property. * * @return * possible object is * {@link SDPBeskrivelse } * */ public SDPBeskrivelse getOppmøteInformasjon() { return oppmøteInformasjon; } /** * Sets the value of the oppmøteInformasjon property. * * @param value * allowed object is * {@link SDPBeskrivelse } * */ public void setOppmøteInformasjon(SDPBeskrivelse value) { this.oppmøteInformasjon = value; } /** * Gets the value of the møteplass property. * * @return * possible object is * {@link SDPArrangement.SDPMøteplass } * */ public SDPArrangement.SDPMøteplass getMøteplass() { return møteplass; } /** * Sets the value of the møteplass property. * * @param value * allowed object is * {@link SDPArrangement.SDPMøteplass } * */ public void setMøteplass(SDPArrangement.SDPMøteplass value) { this.møteplass = value; } /** * Gets the value of the strekkode property. * * @return * possible object is * {@link SDPStrekkode } * */ public SDPStrekkode getStrekkode() { return strekkode; } /** * Sets the value of the strekkode property. * * @param value * allowed object is * {@link SDPStrekkode } * */ public void setStrekkode(SDPStrekkode value) { this.strekkode = value; } /** * Gets the value of the infos 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 infos property. * *

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

     *    getInfos().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SDPArrangement.SDPInfo } * * */ public List getInfos() { if (infos == null) { infos = new ArrayList(); } return this.infos; } /** * Gets the value of the lenker property. * * @return * possible object is * {@link SDPArrangement.SDPLenker } * */ public SDPArrangement.SDPLenker getLenker() { return lenker; } /** * Sets the value of the lenker property. * * @param value * allowed object is * {@link SDPArrangement.SDPLenker } * */ public void setLenker(SDPArrangement.SDPLenker value) { this.lenker = value; } public void setTidsroms(List value) { this.tidsroms = null; if (value!= null) { List draftl = this.getTidsroms(); draftl.addAll(value); } } public void setInfos(List value) { this.infos = null; if (value!= null) { List draftl = this.getInfos(); draftl.addAll(value); } } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { SDPTittel theTittel; theTittel = this.getTittel(); strategy.appendField(locator, this, "tittel", buffer, theTittel, (this.tittel!= null)); } { SDPTittel theTidsromTittel; theTidsromTittel = this.getTidsromTittel(); strategy.appendField(locator, this, "tidsromTittel", buffer, theTidsromTittel, (this.tidsromTittel!= null)); } { List theTidsroms; theTidsroms = (((this.tidsroms!= null)&&(!this.tidsroms.isEmpty()))?this.getTidsroms():null); strategy.appendField(locator, this, "tidsroms", buffer, theTidsroms, ((this.tidsroms!= null)&&(!this.tidsroms.isEmpty()))); } { SDPBeskrivelse theOppmøteInformasjon; theOppmøteInformasjon = this.getOppmøteInformasjon(); strategy.appendField(locator, this, "oppm\u00f8teInformasjon", buffer, theOppmøteInformasjon, (this.oppmøteInformasjon!= null)); } { SDPArrangement.SDPMøteplass theMøteplass; theMøteplass = this.getMøteplass(); strategy.appendField(locator, this, "m\u00f8teplass", buffer, theMøteplass, (this.møteplass!= null)); } { SDPStrekkode theStrekkode; theStrekkode = this.getStrekkode(); strategy.appendField(locator, this, "strekkode", buffer, theStrekkode, (this.strekkode!= null)); } { List theInfos; theInfos = (((this.infos!= null)&&(!this.infos.isEmpty()))?this.getInfos():null); strategy.appendField(locator, this, "infos", buffer, theInfos, ((this.infos!= null)&&(!this.infos.isEmpty()))); } { SDPArrangement.SDPLenker theLenker; theLenker = this.getLenker(); strategy.appendField(locator, this, "lenker", buffer, theLenker, (this.lenker!= null)); } return buffer; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SDPArrangement that = ((SDPArrangement) object); { SDPTittel lhsTittel; lhsTittel = this.getTittel(); SDPTittel rhsTittel; rhsTittel = that.getTittel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tittel", lhsTittel), LocatorUtils.property(thatLocator, "tittel", rhsTittel), lhsTittel, rhsTittel, (this.tittel!= null), (that.tittel!= null))) { return false; } } { SDPTittel lhsTidsromTittel; lhsTidsromTittel = this.getTidsromTittel(); SDPTittel rhsTidsromTittel; rhsTidsromTittel = that.getTidsromTittel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tidsromTittel", lhsTidsromTittel), LocatorUtils.property(thatLocator, "tidsromTittel", rhsTidsromTittel), lhsTidsromTittel, rhsTidsromTittel, (this.tidsromTittel!= null), (that.tidsromTittel!= null))) { return false; } } { List lhsTidsroms; lhsTidsroms = (((this.tidsroms!= null)&&(!this.tidsroms.isEmpty()))?this.getTidsroms():null); List rhsTidsroms; rhsTidsroms = (((that.tidsroms!= null)&&(!that.tidsroms.isEmpty()))?that.getTidsroms():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "tidsroms", lhsTidsroms), LocatorUtils.property(thatLocator, "tidsroms", rhsTidsroms), lhsTidsroms, rhsTidsroms, ((this.tidsroms!= null)&&(!this.tidsroms.isEmpty())), ((that.tidsroms!= null)&&(!that.tidsroms.isEmpty())))) { return false; } } { SDPBeskrivelse lhsOppmøteInformasjon; lhsOppmøteInformasjon = this.getOppmøteInformasjon(); SDPBeskrivelse rhsOppmøteInformasjon; rhsOppmøteInformasjon = that.getOppmøteInformasjon(); if (!strategy.equals(LocatorUtils.property(thisLocator, "oppm\u00f8teInformasjon", lhsOppmøteInformasjon), LocatorUtils.property(thatLocator, "oppm\u00f8teInformasjon", rhsOppmøteInformasjon), lhsOppmøteInformasjon, rhsOppmøteInformasjon, (this.oppmøteInformasjon!= null), (that.oppmøteInformasjon!= null))) { return false; } } { SDPArrangement.SDPMøteplass lhsMøteplass; lhsMøteplass = this.getMøteplass(); SDPArrangement.SDPMøteplass rhsMøteplass; rhsMøteplass = that.getMøteplass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "m\u00f8teplass", lhsMøteplass), LocatorUtils.property(thatLocator, "m\u00f8teplass", rhsMøteplass), lhsMøteplass, rhsMøteplass, (this.møteplass!= null), (that.møteplass!= null))) { return false; } } { SDPStrekkode lhsStrekkode; lhsStrekkode = this.getStrekkode(); SDPStrekkode rhsStrekkode; rhsStrekkode = that.getStrekkode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "strekkode", lhsStrekkode), LocatorUtils.property(thatLocator, "strekkode", rhsStrekkode), lhsStrekkode, rhsStrekkode, (this.strekkode!= null), (that.strekkode!= null))) { return false; } } { List lhsInfos; lhsInfos = (((this.infos!= null)&&(!this.infos.isEmpty()))?this.getInfos():null); List rhsInfos; rhsInfos = (((that.infos!= null)&&(!that.infos.isEmpty()))?that.getInfos():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "infos", lhsInfos), LocatorUtils.property(thatLocator, "infos", rhsInfos), lhsInfos, rhsInfos, ((this.infos!= null)&&(!this.infos.isEmpty())), ((that.infos!= null)&&(!that.infos.isEmpty())))) { return false; } } { SDPArrangement.SDPLenker lhsLenker; lhsLenker = this.getLenker(); SDPArrangement.SDPLenker rhsLenker; rhsLenker = that.getLenker(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lenker", lhsLenker), LocatorUtils.property(thatLocator, "lenker", rhsLenker), lhsLenker, rhsLenker, (this.lenker!= null), (that.lenker!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { SDPTittel theTittel; theTittel = this.getTittel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tittel", theTittel), currentHashCode, theTittel, (this.tittel!= null)); } { SDPTittel theTidsromTittel; theTidsromTittel = this.getTidsromTittel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tidsromTittel", theTidsromTittel), currentHashCode, theTidsromTittel, (this.tidsromTittel!= null)); } { List theTidsroms; theTidsroms = (((this.tidsroms!= null)&&(!this.tidsroms.isEmpty()))?this.getTidsroms():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tidsroms", theTidsroms), currentHashCode, theTidsroms, ((this.tidsroms!= null)&&(!this.tidsroms.isEmpty()))); } { SDPBeskrivelse theOppmøteInformasjon; theOppmøteInformasjon = this.getOppmøteInformasjon(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oppm\u00f8teInformasjon", theOppmøteInformasjon), currentHashCode, theOppmøteInformasjon, (this.oppmøteInformasjon!= null)); } { SDPArrangement.SDPMøteplass theMøteplass; theMøteplass = this.getMøteplass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "m\u00f8teplass", theMøteplass), currentHashCode, theMøteplass, (this.møteplass!= null)); } { SDPStrekkode theStrekkode; theStrekkode = this.getStrekkode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "strekkode", theStrekkode), currentHashCode, theStrekkode, (this.strekkode!= null)); } { List theInfos; theInfos = (((this.infos!= null)&&(!this.infos.isEmpty()))?this.getInfos():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "infos", theInfos), currentHashCode, theInfos, ((this.infos!= null)&&(!this.infos.isEmpty()))); } { SDPArrangement.SDPLenker theLenker; theLenker = this.getLenker(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lenker", theLenker), currentHashCode, theLenker, (this.lenker!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPArrangement withTittel(SDPTittel value) { setTittel(value); return this; } public SDPArrangement withTidsromTittel(SDPTittel value) { setTidsromTittel(value); return this; } public SDPArrangement withTidsroms(SDPTidsrom... values) { if (values!= null) { for (SDPTidsrom value: values) { getTidsroms().add(value); } } return this; } public SDPArrangement withTidsroms(Collection values) { if (values!= null) { getTidsroms().addAll(values); } return this; } public SDPArrangement withOppmøteInformasjon(SDPBeskrivelse value) { setOppmøteInformasjon(value); return this; } public SDPArrangement withMøteplass(SDPArrangement.SDPMøteplass value) { setMøteplass(value); return this; } public SDPArrangement withStrekkode(SDPStrekkode value) { setStrekkode(value); return this; } public SDPArrangement withInfos(SDPArrangement.SDPInfo... values) { if (values!= null) { for (SDPArrangement.SDPInfo value: values) { getInfos().add(value); } } return this; } public SDPArrangement withInfos(Collection values) { if (values!= null) { getInfos().addAll(values); } return this; } public SDPArrangement withLenker(SDPArrangement.SDPLenker value) { setLenker(value); return this; } public SDPArrangement withTidsroms(List value) { setTidsroms(value); return this; } public SDPArrangement withInfos(List value) { setInfos(value); return this; } /** *

Java class for anonymous complex type. * *

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="tittel" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
     *         <element name="tekst" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Beskrivelse"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tittel", "tekst" }) public static class SDPInfo implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected SDPTittel tittel; @XmlElement(required = true) protected SDPBeskrivelse tekst; /** * Default no-arg constructor * */ public SDPInfo() { super(); } /** * Fully-initialising value constructor * */ public SDPInfo(final SDPTittel tittel, final SDPBeskrivelse tekst) { this.tittel = tittel; this.tekst = tekst; } /** * Gets the value of the tittel property. * * @return * possible object is * {@link SDPTittel } * */ public SDPTittel getTittel() { return tittel; } /** * Sets the value of the tittel property. * * @param value * allowed object is * {@link SDPTittel } * */ public void setTittel(SDPTittel value) { this.tittel = value; } /** * Gets the value of the tekst property. * * @return * possible object is * {@link SDPBeskrivelse } * */ public SDPBeskrivelse getTekst() { return tekst; } /** * Sets the value of the tekst property. * * @param value * allowed object is * {@link SDPBeskrivelse } * */ public void setTekst(SDPBeskrivelse value) { this.tekst = value; } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { SDPTittel theTittel; theTittel = this.getTittel(); strategy.appendField(locator, this, "tittel", buffer, theTittel, (this.tittel!= null)); } { SDPBeskrivelse theTekst; theTekst = this.getTekst(); strategy.appendField(locator, this, "tekst", buffer, theTekst, (this.tekst!= null)); } return buffer; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SDPArrangement.SDPInfo that = ((SDPArrangement.SDPInfo) object); { SDPTittel lhsTittel; lhsTittel = this.getTittel(); SDPTittel rhsTittel; rhsTittel = that.getTittel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tittel", lhsTittel), LocatorUtils.property(thatLocator, "tittel", rhsTittel), lhsTittel, rhsTittel, (this.tittel!= null), (that.tittel!= null))) { return false; } } { SDPBeskrivelse lhsTekst; lhsTekst = this.getTekst(); SDPBeskrivelse rhsTekst; rhsTekst = that.getTekst(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tekst", lhsTekst), LocatorUtils.property(thatLocator, "tekst", rhsTekst), lhsTekst, rhsTekst, (this.tekst!= null), (that.tekst!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { SDPTittel theTittel; theTittel = this.getTittel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tittel", theTittel), currentHashCode, theTittel, (this.tittel!= null)); } { SDPBeskrivelse theTekst; theTekst = this.getTekst(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tekst", theTekst), currentHashCode, theTekst, (this.tekst!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPArrangement.SDPInfo withTittel(SDPTittel value) { setTittel(value); return this; } public SDPArrangement.SDPInfo withTekst(SDPBeskrivelse value) { setTekst(value); return this; } } /** *

Java class for anonymous complex type. * *

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="lenke" maxOccurs="2">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <sequence>
     *                   <element name="navn" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
     *                   <element name="url" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}HttpLenke"/>
     *                 </sequence>
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "lenkes" }) public static class SDPLenker implements Equals2, HashCode2, ToString2 { @XmlElement(name = "lenke", required = true) protected List lenkes; /** * Default no-arg constructor * */ public SDPLenker() { super(); } /** * Fully-initialising value constructor * */ public SDPLenker(final List lenkes) { this.lenkes = lenkes; } /** * Gets the value of the lenkes 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 lenkes property. * *

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

         *    getLenkes().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SDPArrangement.SDPLenker.SDPLenke } * * */ public List getLenkes() { if (lenkes == null) { lenkes = new ArrayList(); } return this.lenkes; } public void setLenkes(List value) { this.lenkes = null; if (value!= null) { List draftl = this.getLenkes(); draftl.addAll(value); } } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List theLenkes; theLenkes = (((this.lenkes!= null)&&(!this.lenkes.isEmpty()))?this.getLenkes():null); strategy.appendField(locator, this, "lenkes", buffer, theLenkes, ((this.lenkes!= null)&&(!this.lenkes.isEmpty()))); } return buffer; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SDPArrangement.SDPLenker that = ((SDPArrangement.SDPLenker) object); { List lhsLenkes; lhsLenkes = (((this.lenkes!= null)&&(!this.lenkes.isEmpty()))?this.getLenkes():null); List rhsLenkes; rhsLenkes = (((that.lenkes!= null)&&(!that.lenkes.isEmpty()))?that.getLenkes():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "lenkes", lhsLenkes), LocatorUtils.property(thatLocator, "lenkes", rhsLenkes), lhsLenkes, rhsLenkes, ((this.lenkes!= null)&&(!this.lenkes.isEmpty())), ((that.lenkes!= null)&&(!that.lenkes.isEmpty())))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List theLenkes; theLenkes = (((this.lenkes!= null)&&(!this.lenkes.isEmpty()))?this.getLenkes():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lenkes", theLenkes), currentHashCode, theLenkes, ((this.lenkes!= null)&&(!this.lenkes.isEmpty()))); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPArrangement.SDPLenker withLenkes(SDPArrangement.SDPLenker.SDPLenke... values) { if (values!= null) { for (SDPArrangement.SDPLenker.SDPLenke value: values) { getLenkes().add(value); } } return this; } public SDPArrangement.SDPLenker withLenkes(Collection values) { if (values!= null) { getLenkes().addAll(values); } return this; } public SDPArrangement.SDPLenker withLenkes(List value) { setLenkes(value); return this; } /** *

Java class for anonymous complex type. * *

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

         * <complexType>
         *   <complexContent>
         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       <sequence>
         *         <element name="navn" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
         *         <element name="url" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}HttpLenke"/>
         *       </sequence>
         *     </restriction>
         *   </complexContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "navn", "url" }) public static class SDPLenke implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected SDPTittel navn; @XmlElement(required = true) @XmlSchemaType(name = "anyURI") protected String url; /** * Default no-arg constructor * */ public SDPLenke() { super(); } /** * Fully-initialising value constructor * */ public SDPLenke(final SDPTittel navn, final String url) { this.navn = navn; this.url = url; } /** * Gets the value of the navn property. * * @return * possible object is * {@link SDPTittel } * */ public SDPTittel getNavn() { return navn; } /** * Sets the value of the navn property. * * @param value * allowed object is * {@link SDPTittel } * */ public void setNavn(SDPTittel value) { this.navn = value; } /** * Gets the value of the url property. * * @return * possible object is * {@link String } * */ public String getUrl() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is * {@link String } * */ public void setUrl(String value) { this.url = value; } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { SDPTittel theNavn; theNavn = this.getNavn(); strategy.appendField(locator, this, "navn", buffer, theNavn, (this.navn!= null)); } { String theUrl; theUrl = this.getUrl(); strategy.appendField(locator, this, "url", buffer, theUrl, (this.url!= null)); } return buffer; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SDPArrangement.SDPLenker.SDPLenke that = ((SDPArrangement.SDPLenker.SDPLenke) object); { SDPTittel lhsNavn; lhsNavn = this.getNavn(); SDPTittel rhsNavn; rhsNavn = that.getNavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "navn", lhsNavn), LocatorUtils.property(thatLocator, "navn", rhsNavn), lhsNavn, rhsNavn, (this.navn!= null), (that.navn!= null))) { return false; } } { String lhsUrl; lhsUrl = this.getUrl(); String rhsUrl; rhsUrl = that.getUrl(); if (!strategy.equals(LocatorUtils.property(thisLocator, "url", lhsUrl), LocatorUtils.property(thatLocator, "url", rhsUrl), lhsUrl, rhsUrl, (this.url!= null), (that.url!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { SDPTittel theNavn; theNavn = this.getNavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "navn", theNavn), currentHashCode, theNavn, (this.navn!= null)); } { String theUrl; theUrl = this.getUrl(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theUrl), currentHashCode, theUrl, (this.url!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPArrangement.SDPLenker.SDPLenke withNavn(SDPTittel value) { setNavn(value); return this; } public SDPArrangement.SDPLenker.SDPLenke withUrl(String value) { setUrl(value); return this; } } } /** *

Java class for anonymous complex type. * *

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="tittel" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel"/>
     *         <element name="navn" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         <element name="gateadresse" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
     *         <element name="postnummer" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
     *         <element name="sted" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
     *         <element name="land" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "tittel", "navn", "gateadresse", "postnummer", "sted", "land" }) public static class SDPMøteplass implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected SDPTittel tittel; @XmlElement(required = true) protected String navn; protected String gateadresse; protected Integer postnummer; protected String sted; protected String land; /** * Default no-arg constructor * */ public SDPMøteplass() { super(); } /** * Fully-initialising value constructor * */ public SDPMøteplass(final SDPTittel tittel, final String navn, final String gateadresse, final Integer postnummer, final String sted, final String land) { this.tittel = tittel; this.navn = navn; this.gateadresse = gateadresse; this.postnummer = postnummer; this.sted = sted; this.land = land; } /** * Gets the value of the tittel property. * * @return * possible object is * {@link SDPTittel } * */ public SDPTittel getTittel() { return tittel; } /** * Sets the value of the tittel property. * * @param value * allowed object is * {@link SDPTittel } * */ public void setTittel(SDPTittel value) { this.tittel = value; } /** * Gets the value of the navn property. * * @return * possible object is * {@link String } * */ public String getNavn() { return navn; } /** * Sets the value of the navn property. * * @param value * allowed object is * {@link String } * */ public void setNavn(String value) { this.navn = value; } /** * Gets the value of the gateadresse property. * * @return * possible object is * {@link String } * */ public String getGateadresse() { return gateadresse; } /** * Sets the value of the gateadresse property. * * @param value * allowed object is * {@link String } * */ public void setGateadresse(String value) { this.gateadresse = value; } /** * Gets the value of the postnummer property. * * @return * possible object is * {@link Integer } * */ public Integer getPostnummer() { return postnummer; } /** * Sets the value of the postnummer property. * * @param value * allowed object is * {@link Integer } * */ public void setPostnummer(Integer value) { this.postnummer = value; } /** * Gets the value of the sted property. * * @return * possible object is * {@link String } * */ public String getSted() { return sted; } /** * Sets the value of the sted property. * * @param value * allowed object is * {@link String } * */ public void setSted(String value) { this.sted = value; } /** * Gets the value of the land property. * * @return * possible object is * {@link String } * */ public String getLand() { return land; } /** * Sets the value of the land property. * * @param value * allowed object is * {@link String } * */ public void setLand(String value) { this.land = value; } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { SDPTittel theTittel; theTittel = this.getTittel(); strategy.appendField(locator, this, "tittel", buffer, theTittel, (this.tittel!= null)); } { String theNavn; theNavn = this.getNavn(); strategy.appendField(locator, this, "navn", buffer, theNavn, (this.navn!= null)); } { String theGateadresse; theGateadresse = this.getGateadresse(); strategy.appendField(locator, this, "gateadresse", buffer, theGateadresse, (this.gateadresse!= null)); } { Integer thePostnummer; thePostnummer = this.getPostnummer(); strategy.appendField(locator, this, "postnummer", buffer, thePostnummer, (this.postnummer!= null)); } { String theSted; theSted = this.getSted(); strategy.appendField(locator, this, "sted", buffer, theSted, (this.sted!= null)); } { String theLand; theLand = this.getLand(); strategy.appendField(locator, this, "land", buffer, theLand, (this.land!= null)); } return buffer; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final SDPArrangement.SDPMøteplass that = ((SDPArrangement.SDPMøteplass) object); { SDPTittel lhsTittel; lhsTittel = this.getTittel(); SDPTittel rhsTittel; rhsTittel = that.getTittel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tittel", lhsTittel), LocatorUtils.property(thatLocator, "tittel", rhsTittel), lhsTittel, rhsTittel, (this.tittel!= null), (that.tittel!= null))) { return false; } } { String lhsNavn; lhsNavn = this.getNavn(); String rhsNavn; rhsNavn = that.getNavn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "navn", lhsNavn), LocatorUtils.property(thatLocator, "navn", rhsNavn), lhsNavn, rhsNavn, (this.navn!= null), (that.navn!= null))) { return false; } } { String lhsGateadresse; lhsGateadresse = this.getGateadresse(); String rhsGateadresse; rhsGateadresse = that.getGateadresse(); if (!strategy.equals(LocatorUtils.property(thisLocator, "gateadresse", lhsGateadresse), LocatorUtils.property(thatLocator, "gateadresse", rhsGateadresse), lhsGateadresse, rhsGateadresse, (this.gateadresse!= null), (that.gateadresse!= null))) { return false; } } { Integer lhsPostnummer; lhsPostnummer = this.getPostnummer(); Integer rhsPostnummer; rhsPostnummer = that.getPostnummer(); if (!strategy.equals(LocatorUtils.property(thisLocator, "postnummer", lhsPostnummer), LocatorUtils.property(thatLocator, "postnummer", rhsPostnummer), lhsPostnummer, rhsPostnummer, (this.postnummer!= null), (that.postnummer!= null))) { return false; } } { String lhsSted; lhsSted = this.getSted(); String rhsSted; rhsSted = that.getSted(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sted", lhsSted), LocatorUtils.property(thatLocator, "sted", rhsSted), lhsSted, rhsSted, (this.sted!= null), (that.sted!= null))) { return false; } } { String lhsLand; lhsLand = this.getLand(); String rhsLand; rhsLand = that.getLand(); if (!strategy.equals(LocatorUtils.property(thisLocator, "land", lhsLand), LocatorUtils.property(thatLocator, "land", rhsLand), lhsLand, rhsLand, (this.land!= null), (that.land!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { SDPTittel theTittel; theTittel = this.getTittel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tittel", theTittel), currentHashCode, theTittel, (this.tittel!= null)); } { String theNavn; theNavn = this.getNavn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "navn", theNavn), currentHashCode, theNavn, (this.navn!= null)); } { String theGateadresse; theGateadresse = this.getGateadresse(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gateadresse", theGateadresse), currentHashCode, theGateadresse, (this.gateadresse!= null)); } { Integer thePostnummer; thePostnummer = this.getPostnummer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postnummer", thePostnummer), currentHashCode, thePostnummer, (this.postnummer!= null)); } { String theSted; theSted = this.getSted(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sted", theSted), currentHashCode, theSted, (this.sted!= null)); } { String theLand; theLand = this.getLand(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "land", theLand), currentHashCode, theLand, (this.land!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPArrangement.SDPMøteplass withTittel(SDPTittel value) { setTittel(value); return this; } public SDPArrangement.SDPMøteplass withNavn(String value) { setNavn(value); return this; } public SDPArrangement.SDPMøteplass withGateadresse(String value) { setGateadresse(value); return this; } public SDPArrangement.SDPMøteplass withPostnummer(Integer value) { setPostnummer(value); return this; } public SDPArrangement.SDPMøteplass withSted(String value) { setSted(value); return this; } public SDPArrangement.SDPMøteplass withLand(String value) { setLand(value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy