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

no.difi.begrep.sdp.schema_v10.SDPNorskPostadresse Maven / Gradle / Ivy

//
// 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.schema_v10;

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.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 NorskPostadresse complex type. * *

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

 * <complexType name="NorskPostadresse">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="adresselinje1" type="{http://begrep.difi.no/sdp/schema_v10}Adresselinje" minOccurs="0"/>
 *         <element name="adresselinje2" type="{http://begrep.difi.no/sdp/schema_v10}Adresselinje" minOccurs="0"/>
 *         <element name="adresselinje3" type="{http://begrep.difi.no/sdp/schema_v10}Adresselinje" minOccurs="0"/>
 *         <element name="postnummer" type="{http://begrep.difi.no/sdp/schema_v10}NorskPostnummer"/>
 *         <element name="poststed" type="{http://begrep.difi.no/sdp/schema_v10}Poststed"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "NorskPostadresse", propOrder = { "adresselinje1", "adresselinje2", "adresselinje3", "postnummer", "poststed" }) public class SDPNorskPostadresse implements Equals2, HashCode2, ToString2 { protected String adresselinje1; protected String adresselinje2; protected String adresselinje3; @XmlElement(required = true) protected String postnummer; @XmlElement(required = true) protected String poststed; /** * Default no-arg constructor * */ public SDPNorskPostadresse() { super(); } /** * Fully-initialising value constructor * */ public SDPNorskPostadresse(final String adresselinje1, final String adresselinje2, final String adresselinje3, final String postnummer, final String poststed) { this.adresselinje1 = adresselinje1; this.adresselinje2 = adresselinje2; this.adresselinje3 = adresselinje3; this.postnummer = postnummer; this.poststed = poststed; } /** * Gets the value of the adresselinje1 property. * * @return * possible object is * {@link String } * */ public String getAdresselinje1() { return adresselinje1; } /** * Sets the value of the adresselinje1 property. * * @param value * allowed object is * {@link String } * */ public void setAdresselinje1(String value) { this.adresselinje1 = value; } /** * Gets the value of the adresselinje2 property. * * @return * possible object is * {@link String } * */ public String getAdresselinje2() { return adresselinje2; } /** * Sets the value of the adresselinje2 property. * * @param value * allowed object is * {@link String } * */ public void setAdresselinje2(String value) { this.adresselinje2 = value; } /** * Gets the value of the adresselinje3 property. * * @return * possible object is * {@link String } * */ public String getAdresselinje3() { return adresselinje3; } /** * Sets the value of the adresselinje3 property. * * @param value * allowed object is * {@link String } * */ public void setAdresselinje3(String value) { this.adresselinje3 = value; } /** * Gets the value of the postnummer property. * * @return * possible object is * {@link String } * */ public String getPostnummer() { return postnummer; } /** * Sets the value of the postnummer property. * * @param value * allowed object is * {@link String } * */ public void setPostnummer(String value) { this.postnummer = value; } /** * Gets the value of the poststed property. * * @return * possible object is * {@link String } * */ public String getPoststed() { return poststed; } /** * Sets the value of the poststed property. * * @param value * allowed object is * {@link String } * */ public void setPoststed(String value) { this.poststed = 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) { { String theAdresselinje1; theAdresselinje1 = this.getAdresselinje1(); strategy.appendField(locator, this, "adresselinje1", buffer, theAdresselinje1, (this.adresselinje1 != null)); } { String theAdresselinje2; theAdresselinje2 = this.getAdresselinje2(); strategy.appendField(locator, this, "adresselinje2", buffer, theAdresselinje2, (this.adresselinje2 != null)); } { String theAdresselinje3; theAdresselinje3 = this.getAdresselinje3(); strategy.appendField(locator, this, "adresselinje3", buffer, theAdresselinje3, (this.adresselinje3 != null)); } { String thePostnummer; thePostnummer = this.getPostnummer(); strategy.appendField(locator, this, "postnummer", buffer, thePostnummer, (this.postnummer!= null)); } { String thePoststed; thePoststed = this.getPoststed(); strategy.appendField(locator, this, "poststed", buffer, thePoststed, (this.poststed!= 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 SDPNorskPostadresse that = ((SDPNorskPostadresse) object); { String lhsAdresselinje1; lhsAdresselinje1 = this.getAdresselinje1(); String rhsAdresselinje1; rhsAdresselinje1 = that.getAdresselinje1(); if (!strategy.equals(LocatorUtils.property(thisLocator, "adresselinje1", lhsAdresselinje1), LocatorUtils.property(thatLocator, "adresselinje1", rhsAdresselinje1), lhsAdresselinje1, rhsAdresselinje1, (this.adresselinje1 != null), (that.adresselinje1 != null))) { return false; } } { String lhsAdresselinje2; lhsAdresselinje2 = this.getAdresselinje2(); String rhsAdresselinje2; rhsAdresselinje2 = that.getAdresselinje2(); if (!strategy.equals(LocatorUtils.property(thisLocator, "adresselinje2", lhsAdresselinje2), LocatorUtils.property(thatLocator, "adresselinje2", rhsAdresselinje2), lhsAdresselinje2, rhsAdresselinje2, (this.adresselinje2 != null), (that.adresselinje2 != null))) { return false; } } { String lhsAdresselinje3; lhsAdresselinje3 = this.getAdresselinje3(); String rhsAdresselinje3; rhsAdresselinje3 = that.getAdresselinje3(); if (!strategy.equals(LocatorUtils.property(thisLocator, "adresselinje3", lhsAdresselinje3), LocatorUtils.property(thatLocator, "adresselinje3", rhsAdresselinje3), lhsAdresselinje3, rhsAdresselinje3, (this.adresselinje3 != null), (that.adresselinje3 != null))) { return false; } } { String lhsPostnummer; lhsPostnummer = this.getPostnummer(); String 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 lhsPoststed; lhsPoststed = this.getPoststed(); String rhsPoststed; rhsPoststed = that.getPoststed(); if (!strategy.equals(LocatorUtils.property(thisLocator, "poststed", lhsPoststed), LocatorUtils.property(thatLocator, "poststed", rhsPoststed), lhsPoststed, rhsPoststed, (this.poststed!= null), (that.poststed!= 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; { String theAdresselinje1; theAdresselinje1 = this.getAdresselinje1(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje1", theAdresselinje1), currentHashCode, theAdresselinje1, (this.adresselinje1 != null)); } { String theAdresselinje2; theAdresselinje2 = this.getAdresselinje2(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje2", theAdresselinje2), currentHashCode, theAdresselinje2, (this.adresselinje2 != null)); } { String theAdresselinje3; theAdresselinje3 = this.getAdresselinje3(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje3", theAdresselinje3), currentHashCode, theAdresselinje3, (this.adresselinje3 != null)); } { String thePostnummer; thePostnummer = this.getPostnummer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "postnummer", thePostnummer), currentHashCode, thePostnummer, (this.postnummer!= null)); } { String thePoststed; thePoststed = this.getPoststed(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "poststed", thePoststed), currentHashCode, thePoststed, (this.poststed!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPNorskPostadresse withAdresselinje1(String value) { setAdresselinje1(value); return this; } public SDPNorskPostadresse withAdresselinje2(String value) { setAdresselinje2(value); return this; } public SDPNorskPostadresse withAdresselinje3(String value) { setAdresselinje3(value); return this; } public SDPNorskPostadresse withPostnummer(String value) { setPostnummer(value); return this; } public SDPNorskPostadresse withPoststed(String value) { setPoststed(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy