no.difi.begrep.sdp.utvidelser.bevis.SDPGyldighetsperiode 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
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.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 Gyldighetsperiode complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Gyldighetsperiode">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <element name="periode" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Periode"/>
* <element name="aarlig-repeterende-periode" type="{http://begrep.difi.no/sdp/utvidelser/bevis}AarligRepeterendePeriode"/>
* </choice>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Gyldighetsperiode", propOrder = {
"aarligRepeterendePeriode",
"periode"
})
public class SDPGyldighetsperiode implements Equals2, HashCode2, ToString2
{
@XmlElement(name = "aarlig-repeterende-periode")
protected SDPAarligRepeterendePeriode aarligRepeterendePeriode;
protected SDPPeriode periode;
/**
* Default no-arg constructor
*
*/
public SDPGyldighetsperiode() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SDPGyldighetsperiode(final SDPAarligRepeterendePeriode aarligRepeterendePeriode, final SDPPeriode periode) {
this.aarligRepeterendePeriode = aarligRepeterendePeriode;
this.periode = periode;
}
/**
* Gets the value of the aarligRepeterendePeriode property.
*
* @return
* possible object is
* {@link SDPAarligRepeterendePeriode }
*
*/
public SDPAarligRepeterendePeriode getAarligRepeterendePeriode() {
return aarligRepeterendePeriode;
}
/**
* Sets the value of the aarligRepeterendePeriode property.
*
* @param value
* allowed object is
* {@link SDPAarligRepeterendePeriode }
*
*/
public void setAarligRepeterendePeriode(SDPAarligRepeterendePeriode value) {
this.aarligRepeterendePeriode = value;
}
/**
* Gets the value of the periode property.
*
* @return
* possible object is
* {@link SDPPeriode }
*
*/
public SDPPeriode getPeriode() {
return periode;
}
/**
* Sets the value of the periode property.
*
* @param value
* allowed object is
* {@link SDPPeriode }
*
*/
public void setPeriode(SDPPeriode value) {
this.periode = 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) {
{
SDPAarligRepeterendePeriode theAarligRepeterendePeriode;
theAarligRepeterendePeriode = this.getAarligRepeterendePeriode();
strategy.appendField(locator, this, "aarligRepeterendePeriode", buffer, theAarligRepeterendePeriode, (this.aarligRepeterendePeriode!= null));
}
{
SDPPeriode thePeriode;
thePeriode = this.getPeriode();
strategy.appendField(locator, this, "periode", buffer, thePeriode, (this.periode!= 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 SDPGyldighetsperiode that = ((SDPGyldighetsperiode) object);
{
SDPAarligRepeterendePeriode lhsAarligRepeterendePeriode;
lhsAarligRepeterendePeriode = this.getAarligRepeterendePeriode();
SDPAarligRepeterendePeriode rhsAarligRepeterendePeriode;
rhsAarligRepeterendePeriode = that.getAarligRepeterendePeriode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "aarligRepeterendePeriode", lhsAarligRepeterendePeriode), LocatorUtils.property(thatLocator, "aarligRepeterendePeriode", rhsAarligRepeterendePeriode), lhsAarligRepeterendePeriode, rhsAarligRepeterendePeriode, (this.aarligRepeterendePeriode!= null), (that.aarligRepeterendePeriode!= null))) {
return false;
}
}
{
SDPPeriode lhsPeriode;
lhsPeriode = this.getPeriode();
SDPPeriode rhsPeriode;
rhsPeriode = that.getPeriode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "periode", lhsPeriode), LocatorUtils.property(thatLocator, "periode", rhsPeriode), lhsPeriode, rhsPeriode, (this.periode!= null), (that.periode!= 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;
{
SDPAarligRepeterendePeriode theAarligRepeterendePeriode;
theAarligRepeterendePeriode = this.getAarligRepeterendePeriode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "aarligRepeterendePeriode", theAarligRepeterendePeriode), currentHashCode, theAarligRepeterendePeriode, (this.aarligRepeterendePeriode!= null));
}
{
SDPPeriode thePeriode;
thePeriode = this.getPeriode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "periode", thePeriode), currentHashCode, thePeriode, (this.periode!= null));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
public SDPGyldighetsperiode withAarligRepeterendePeriode(SDPAarligRepeterendePeriode value) {
setAarligRepeterendePeriode(value);
return this;
}
public SDPGyldighetsperiode withPeriode(SDPPeriode value) {
setPeriode(value);
return this;
}
}