![JAR search and dependency download from the Maven repository](/logo.png)
no.difi.begrep.sdp.utvidelser.bevis.SDPAdresse 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: 2025.01.02 at 04:02:59 PM UTC
//
package no.difi.begrep.sdp.utvidelser.bevis;
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 Adresse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Adresse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="gate" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="postnummer" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="sted" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="land" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Adresse", propOrder = {
"gate",
"postnummer",
"sted",
"land"
})
public class SDPAdresse implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected String gate;
@XmlElement(required = true)
protected String postnummer;
@XmlElement(required = true)
protected String sted;
protected String land;
/**
* Default no-arg constructor
*
*/
public SDPAdresse() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SDPAdresse(final String gate, final String postnummer, final String sted, final String land) {
this.gate = gate;
this.postnummer = postnummer;
this.sted = sted;
this.land = land;
}
/**
* Gets the value of the gate property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGate() {
return gate;
}
/**
* Sets the value of the gate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGate(String value) {
this.gate = 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 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) {
{
String theGate;
theGate = this.getGate();
strategy.appendField(locator, this, "gate", buffer, theGate, (this.gate!= null));
}
{
String 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 SDPAdresse that = ((SDPAdresse) object);
{
String lhsGate;
lhsGate = this.getGate();
String rhsGate;
rhsGate = that.getGate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "gate", lhsGate), LocatorUtils.property(thatLocator, "gate", rhsGate), lhsGate, rhsGate, (this.gate!= null), (that.gate!= 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 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;
{
String theGate;
theGate = this.getGate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gate", theGate), currentHashCode, theGate, (this.gate!= null));
}
{
String 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 SDPAdresse withGate(String value) {
setGate(value);
return this;
}
public SDPAdresse withPostnummer(String value) {
setPostnummer(value);
return this;
}
public SDPAdresse withSted(String value) {
setSted(value);
return this;
}
public SDPAdresse withLand(String value) {
setLand(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy