no.difi.begrep.sdp.schema_v10.SDPUtenlandskPostadresse 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 UtenlandskPostadresse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="UtenlandskPostadresse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="adresselinje1" type="{http://begrep.difi.no/sdp/schema_v10}Adresselinje"/>
* <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="adresselinje4" type="{http://begrep.difi.no/sdp/schema_v10}Adresselinje" minOccurs="0"/>
* <choice>
* <element name="land" type="{http://begrep.difi.no/sdp/schema_v10}Land"/>
* <element name="landkode" type="{http://begrep.difi.no/sdp/schema_v10}Landkode"/>
* </choice>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "UtenlandskPostadresse", propOrder = {
"adresselinje1",
"adresselinje2",
"adresselinje3",
"adresselinje4",
"landkode",
"land"
})
public class SDPUtenlandskPostadresse implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected String adresselinje1;
protected String adresselinje2;
protected String adresselinje3;
protected String adresselinje4;
protected String landkode;
protected String land;
/**
* Default no-arg constructor
*
*/
public SDPUtenlandskPostadresse() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SDPUtenlandskPostadresse(final String adresselinje1, final String adresselinje2, final String adresselinje3, final String adresselinje4, final String landkode, final String land) {
this.adresselinje1 = adresselinje1;
this.adresselinje2 = adresselinje2;
this.adresselinje3 = adresselinje3;
this.adresselinje4 = adresselinje4;
this.landkode = landkode;
this.land = land;
}
/**
* 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 adresselinje4 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAdresselinje4() {
return adresselinje4;
}
/**
* Sets the value of the adresselinje4 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAdresselinje4(String value) {
this.adresselinje4 = value;
}
/**
* Gets the value of the landkode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLandkode() {
return landkode;
}
/**
* Sets the value of the landkode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLandkode(String value) {
this.landkode = 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) {
{
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 theAdresselinje4;
theAdresselinje4 = this.getAdresselinje4();
strategy.appendField(locator, this, "adresselinje4", buffer, theAdresselinje4, (this.adresselinje4 != null));
}
{
String theLandkode;
theLandkode = this.getLandkode();
strategy.appendField(locator, this, "landkode", buffer, theLandkode, (this.landkode!= 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 SDPUtenlandskPostadresse that = ((SDPUtenlandskPostadresse) 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 lhsAdresselinje4;
lhsAdresselinje4 = this.getAdresselinje4();
String rhsAdresselinje4;
rhsAdresselinje4 = that.getAdresselinje4();
if (!strategy.equals(LocatorUtils.property(thisLocator, "adresselinje4", lhsAdresselinje4), LocatorUtils.property(thatLocator, "adresselinje4", rhsAdresselinje4), lhsAdresselinje4, rhsAdresselinje4, (this.adresselinje4 != null), (that.adresselinje4 != null))) {
return false;
}
}
{
String lhsLandkode;
lhsLandkode = this.getLandkode();
String rhsLandkode;
rhsLandkode = that.getLandkode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "landkode", lhsLandkode), LocatorUtils.property(thatLocator, "landkode", rhsLandkode), lhsLandkode, rhsLandkode, (this.landkode!= null), (that.landkode!= 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;
{
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 theAdresselinje4;
theAdresselinje4 = this.getAdresselinje4();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje4", theAdresselinje4), currentHashCode, theAdresselinje4, (this.adresselinje4 != null));
}
{
String theLandkode;
theLandkode = this.getLandkode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "landkode", theLandkode), currentHashCode, theLandkode, (this.landkode!= 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 SDPUtenlandskPostadresse withAdresselinje1(String value) {
setAdresselinje1(value);
return this;
}
public SDPUtenlandskPostadresse withAdresselinje2(String value) {
setAdresselinje2(value);
return this;
}
public SDPUtenlandskPostadresse withAdresselinje3(String value) {
setAdresselinje3(value);
return this;
}
public SDPUtenlandskPostadresse withAdresselinje4(String value) {
setAdresselinje4(value);
return this;
}
public SDPUtenlandskPostadresse withLandkode(String value) {
setLandkode(value);
return this;
}
public SDPUtenlandskPostadresse withLand(String value) {
setLand(value);
return this;
}
}