
no.difi.begrep.sdp.schema_v10.SDPUtenlandskPostadresse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-xsd Show documentation
Show all versions of sdp-xsd Show documentation
XSDer og genererte JAXB-klasser
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.05.30 at 01:15:57 PM CEST
//
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.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 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 Equals, HashCode, ToString
{
@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;
}
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) {
{
String theAdresselinje1;
theAdresselinje1 = this.getAdresselinje1();
strategy.appendField(locator, this, "adresselinje1", buffer, theAdresselinje1);
}
{
String theAdresselinje2;
theAdresselinje2 = this.getAdresselinje2();
strategy.appendField(locator, this, "adresselinje2", buffer, theAdresselinje2);
}
{
String theAdresselinje3;
theAdresselinje3 = this.getAdresselinje3();
strategy.appendField(locator, this, "adresselinje3", buffer, theAdresselinje3);
}
{
String theAdresselinje4;
theAdresselinje4 = this.getAdresselinje4();
strategy.appendField(locator, this, "adresselinje4", buffer, theAdresselinje4);
}
{
String theLandkode;
theLandkode = this.getLandkode();
strategy.appendField(locator, this, "landkode", buffer, theLandkode);
}
{
String theLand;
theLand = this.getLand();
strategy.appendField(locator, this, "land", buffer, theLand);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SDPUtenlandskPostadresse)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theAdresselinje1;
theAdresselinje1 = this.getAdresselinje1();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje1", theAdresselinje1), currentHashCode, theAdresselinje1);
}
{
String theAdresselinje2;
theAdresselinje2 = this.getAdresselinje2();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje2", theAdresselinje2), currentHashCode, theAdresselinje2);
}
{
String theAdresselinje3;
theAdresselinje3 = this.getAdresselinje3();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje3", theAdresselinje3), currentHashCode, theAdresselinje3);
}
{
String theAdresselinje4;
theAdresselinje4 = this.getAdresselinje4();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "adresselinje4", theAdresselinje4), currentHashCode, theAdresselinje4);
}
{
String theLandkode;
theLandkode = this.getLandkode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "landkode", theLandkode), currentHashCode, theLandkode);
}
{
String theLand;
theLand = this.getLand();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "land", theLand), currentHashCode, theLand);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy