no.difi.begrep.sdp.utvidelser.bevis.SDPMaanedstidspunkt 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.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.XmlSchemaType;
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 Maanedstidspunkt complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Maanedstidspunkt">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="maaned" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Maaned"/>
* <element name="dag" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Dag" minOccurs="0"/>
* <element name="time" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Time" minOccurs="0"/>
* <element name="minutt" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Minutt" minOccurs="0"/>
* <element name="tidssone" type="{http://begrep.difi.no/sdp/utvidelser/bevis}Tidssone" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Maanedstidspunkt", propOrder = {
"maaned",
"dag",
"time",
"minutt",
"tidssone"
})
public class SDPMaanedstidspunkt implements Equals2, HashCode2, ToString2
{
@XmlSchemaType(name = "integer")
protected int maaned;
@XmlElement(defaultValue = "1")
@XmlSchemaType(name = "integer")
protected Integer dag = 1;
@XmlElement(defaultValue = "0")
@XmlSchemaType(name = "integer")
protected Integer time = 0;
@XmlElement(defaultValue = "0")
@XmlSchemaType(name = "integer")
protected Integer minutt = 0;
@XmlElement(defaultValue = "+02:00")
protected String tidssone = "+02:00";
/**
* Default no-arg constructor
*
*/
public SDPMaanedstidspunkt() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SDPMaanedstidspunkt(final int maaned, final Integer dag, final Integer time, final Integer minutt, final String tidssone) {
this.maaned = maaned;
this.dag = dag;
this.time = time;
this.minutt = minutt;
this.tidssone = tidssone;
}
/**
* Gets the value of the maaned property.
*
*/
public int getMaaned() {
return maaned;
}
/**
* Sets the value of the maaned property.
*
*/
public void setMaaned(int value) {
this.maaned = value;
}
/**
* Gets the value of the dag property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getDag() {
return dag;
}
/**
* Sets the value of the dag property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setDag(Integer value) {
this.dag = value;
}
/**
* Gets the value of the time property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getTime() {
return time;
}
/**
* Sets the value of the time property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setTime(Integer value) {
this.time = value;
}
/**
* Gets the value of the minutt property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getMinutt() {
return minutt;
}
/**
* Sets the value of the minutt property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setMinutt(Integer value) {
this.minutt = value;
}
/**
* Gets the value of the tidssone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTidssone() {
return tidssone;
}
/**
* Sets the value of the tidssone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTidssone(String value) {
this.tidssone = 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) {
{
int theMaaned;
theMaaned = this.getMaaned();
strategy.appendField(locator, this, "maaned", buffer, theMaaned, true);
}
{
Integer theDag;
theDag = this.getDag();
strategy.appendField(locator, this, "dag", buffer, theDag, (this.dag!= null));
}
{
Integer theTime;
theTime = this.getTime();
strategy.appendField(locator, this, "time", buffer, theTime, (this.time!= null));
}
{
Integer theMinutt;
theMinutt = this.getMinutt();
strategy.appendField(locator, this, "minutt", buffer, theMinutt, (this.minutt!= null));
}
{
String theTidssone;
theTidssone = this.getTidssone();
strategy.appendField(locator, this, "tidssone", buffer, theTidssone, (this.tidssone!= 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 SDPMaanedstidspunkt that = ((SDPMaanedstidspunkt) object);
{
int lhsMaaned;
lhsMaaned = this.getMaaned();
int rhsMaaned;
rhsMaaned = that.getMaaned();
if (!strategy.equals(LocatorUtils.property(thisLocator, "maaned", lhsMaaned), LocatorUtils.property(thatLocator, "maaned", rhsMaaned), lhsMaaned, rhsMaaned, true, true)) {
return false;
}
}
{
Integer lhsDag;
lhsDag = this.getDag();
Integer rhsDag;
rhsDag = that.getDag();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dag", lhsDag), LocatorUtils.property(thatLocator, "dag", rhsDag), lhsDag, rhsDag, (this.dag!= null), (that.dag!= null))) {
return false;
}
}
{
Integer lhsTime;
lhsTime = this.getTime();
Integer rhsTime;
rhsTime = that.getTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "time", lhsTime), LocatorUtils.property(thatLocator, "time", rhsTime), lhsTime, rhsTime, (this.time!= null), (that.time!= null))) {
return false;
}
}
{
Integer lhsMinutt;
lhsMinutt = this.getMinutt();
Integer rhsMinutt;
rhsMinutt = that.getMinutt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "minutt", lhsMinutt), LocatorUtils.property(thatLocator, "minutt", rhsMinutt), lhsMinutt, rhsMinutt, (this.minutt!= null), (that.minutt!= null))) {
return false;
}
}
{
String lhsTidssone;
lhsTidssone = this.getTidssone();
String rhsTidssone;
rhsTidssone = that.getTidssone();
if (!strategy.equals(LocatorUtils.property(thisLocator, "tidssone", lhsTidssone), LocatorUtils.property(thatLocator, "tidssone", rhsTidssone), lhsTidssone, rhsTidssone, (this.tidssone!= null), (that.tidssone!= 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;
{
int theMaaned;
theMaaned = this.getMaaned();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maaned", theMaaned), currentHashCode, theMaaned, true);
}
{
Integer theDag;
theDag = this.getDag();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dag", theDag), currentHashCode, theDag, (this.dag!= null));
}
{
Integer theTime;
theTime = this.getTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "time", theTime), currentHashCode, theTime, (this.time!= null));
}
{
Integer theMinutt;
theMinutt = this.getMinutt();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "minutt", theMinutt), currentHashCode, theMinutt, (this.minutt!= null));
}
{
String theTidssone;
theTidssone = this.getTidssone();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tidssone", theTidssone), currentHashCode, theTidssone, (this.tidssone!= null));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
public SDPMaanedstidspunkt withMaaned(int value) {
setMaaned(value);
return this;
}
public SDPMaanedstidspunkt withDag(Integer value) {
setDag(value);
return this;
}
public SDPMaanedstidspunkt withTime(Integer value) {
setTime(value);
return this;
}
public SDPMaanedstidspunkt withMinutt(Integer value) {
setMinutt(value);
return this;
}
public SDPMaanedstidspunkt withTidssone(String value) {
setTidssone(value);
return this;
}
}